[SCM] mapserver branch, upstream, updated. upstream/6.2.1-3-gd3dd19a

Bas Couwenberg sebastic at xs4all.nl
Wed Sep 11 15:53:43 UTC 2013


The following commit has been merged in the upstream branch:
commit 56a0ab5ee8105ce243b174d3223e645c4322b0b8
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Sep 11 14:59:53 2013 +0200

    Imported Upstream version 6.4.0-beta2

diff --git a/.gitignore b/.gitignore
index 348bad4..741a9e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@ build
 *.swp
 nbproject
 tags
+tests/map.png
 
diff --git a/.travis.yml b/.travis.yml
index 7a3891f..c31ed27 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -61,7 +61,7 @@ after_success:
   - echo "$TRAVIS_SECURE_ENV_VARS"
   - echo "$TRAVIS_BRANCH"
   - sh -c 'if test "$TRAVIS_SECURE_ENV_VARS" = "true" -a "$TRAVIS_BRANCH" = "master"; then echo "run coverage"; ./run_code_coverage_upload.sh; fi'
-  - coveralls --exclude renderers --exclude mapscript --exclude apache --exclude build/mapscript/mapscriptPYTHON_wrap.c --exclude shp2img.c --exclude legend.c --exclude scalebar.c --exclude msencrypt.c --exclude sortshp.c --exclude shptreevis.c --exclude shptree.c --exclude testexpr.c --exclude sym2img.c --exclude testcopy.c --exclude shptreetst.c --exclude tile4ms.c --extension .c --extension .cpp
+  - coveralls --exclude renderers --exclude mapscript --exclude apache --exclude build/mapscript/mapscriptJAVA_wrap.c --exclude build/mapscript/mapscriptPYTHON_wrap.c --exclude shp2img.c --exclude legend.c --exclude scalebar.c --exclude msencrypt.c --exclude sortshp.c --exclude shptreevis.c --exclude shptree.c --exclude testexpr.c --exclude sym2img.c --exclude testcopy.c --exclude shptreetst.c --exclude tile4ms.c --extension .c --extension .cpp
 
 notifications:
   email:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 615b5df..bfaa22d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ include(CheckCSourceCompiles)
 set (MapServer_VERSION_MAJOR 6)
 set (MapServer_VERSION_MINOR 4)
 set (MapServer_VERSION_REVISION 0)
-set (MapServer_VERSION_SUFFIX "-beta1")
+set (MapServer_VERSION_SUFFIX "-beta2")
 
 set(TARGET_VERSION_MAJOR ${MapServer_VERSION_MAJOR})
 set(TARGET_VERSION_MINOR ${MapServer_VERSION_MINOR})
@@ -236,6 +236,8 @@ add_executable(msencrypt msencrypt.c)
 target_link_libraries(msencrypt ${MAPSERVER_LIBMAPSERVER})
 add_executable(tile4ms tile4ms.c)
 target_link_libraries(tile4ms ${MAPSERVER_LIBMAPSERVER})
+add_executable(shptreetst shptreetst.c)
+target_link_libraries(shptreetst ${MAPSERVER_LIBMAPSERVER})
 
 
 find_package(PNG)
@@ -883,7 +885,7 @@ if(USE_SDE92)
    INSTALL(TARGETS msplugin_sde92 DESTINATION lib)
 endif(USE_SDE92)
 
-INSTALL(TARGETS sortshp shptree shptreevis msencrypt tile4ms shp2img mapserv mapserver RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
+INSTALL(TARGETS sortshp shptree shptreevis msencrypt legend scalebar tile4ms shptreetst shp2img mapserv mapserver RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
 if(BUILD_STATIC)
    INSTALL(TARGETS mapserver_static DESTINATION lib)
 endif(BUILD_STATIC)
diff --git a/HISTORY.TXT b/HISTORY.TXT
index 497c520..ee0c74e 100644
--- a/HISTORY.TXT
+++ b/HISTORY.TXT
@@ -15,6 +15,10 @@ For a complete change history, please see the Git log comments.
 6.4 release (2013/09/xx)
 ---------------------------
 
+- RFC 101: Support for Content Dependant Legend Rendering
+
+- Add Support for librsvg as an alternative to libsvg-cairo
+
 - RFC100: Add support for raster tile index with tiles of mixed SRS (TILESRS keyword)
 
 - RFC94: Shape Smoothing
diff --git a/INSTALL.CMAKE b/INSTALL.CMAKE
index 2319ada..4a1c42e 100644
--- a/INSTALL.CMAKE
+++ b/INSTALL.CMAKE
@@ -100,9 +100,9 @@ or not.
    Cmake expects these nonstandard prefixes to contain standard subdirectories, i.e.
    /opt/cairo-1.18.2/include/cairo.h and /opt/cairo-1.18.2/lib/libcairo.so.
    You can specify multiple prefixes on the cmake command line by separating them with
-   a semi-colon, e.g.
+   the platform specific separator (e.g. ":" on unixes), e.g.
 
-   $ cmake .. -DCMAKE_PREFIX_PATH=/opt/cairo-1.18.2;/opt/freeware
+   $ cmake .. -DCMAKE_PREFIX_PATH=/opt/cairo-1.18.2:/opt/freeware
 
  3 If you're certain that the packages development headers are installed, and/or that
    you pointed to a valid installation prefix, but cmake is still failing, then there's
@@ -170,8 +170,8 @@ The following are some common CMake options not specific to MapServer itself:
 
  - CMAKE_INSTALL_PREFIX : path where mapserver binaries and libraries should be installed. Defaults
    to /usr/local on unix.
- - CMAKE_PREFIX_PATH : semi-colon separted list of prefixes where dependencies will be looked for, e.g.
-   "-DCMAKE_PREFIX_PATH=/opt/freeware;/opt/jdk-1.5.6"
+ - CMAKE_PREFIX_PATH : platform-specific separator separated list of prefixes where dependencies will be looked for, e.g.
+   "-DCMAKE_PREFIX_PATH=/opt/freeware:/opt/jdk-1.5.6"
  - CMAKE_BUILD_TYPE : Specify the build type. Usually one of 'Debug' or 'Release', e.g.
    "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Debug"
 
diff --git a/mapfile.c b/mapfile.c
index f1b818d..18c1c27 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -2171,7 +2171,7 @@ static void writeLabel(FILE *stream, int indent, labelObj *label)
     else writeNumber(stream, indent, "SIZE", -1, label->size);
   }
 
-  writeKeyword(stream, indent, "ALIGN", label->align, MS_ALIGN_CENTER, "CENTER", MS_ALIGN_RIGHT, "RIGHT");
+  writeKeyword(stream, indent, "ALIGN", label->align, 2, MS_ALIGN_CENTER, "CENTER", MS_ALIGN_RIGHT, "RIGHT");
   writeNumber(stream, indent, "BUFFER", 0, label->buffer);
 
   if(label->numbindings > 0 && label->bindings[MS_LABEL_BINDING_COLOR].item)
diff --git a/mapgeos.c b/mapgeos.c
index 767ad59..c319a66 100644
--- a/mapgeos.c
+++ b/mapgeos.c
@@ -52,17 +52,99 @@ static void msGEOSNotice(const char *fmt, ...)
   return; /* do nothing with notices at this point */
 }
 
+#ifndef USE_THREAD
+static GEOSContextHandle_t geos_handle;
+
+static inline GEOSContextHandle_t msGetGeosContextHandle()
+{
+  return geos_handle;
+}
+
+#else
+#include "mapthread.h"
+typedef struct geos_thread_info {
+  struct geos_thread_info *next;
+  int             thread_id;
+  GEOSContextHandle_t        geos_handle;
+} geos_thread_info_t;
+
+static geos_thread_info_t *geos_list = NULL;
+
+static GEOSContextHandle_t msGetGeosContextHandle()
+{
+  geos_thread_info_t *link;
+  GEOSContextHandle_t ret_obj;
+  int        thread_id;
+
+  msAcquireLock( TLOCK_GEOS );
+
+  thread_id = msGetThreadId();
+
+  /* find link for this thread */
+
+  for( link = geos_list;
+       link != NULL && link->thread_id != thread_id
+       && link->next != NULL && link->next->thread_id != thread_id;
+       link = link->next ) {}
+
+  /* If the target thread link is already at the head of the list were ok */
+  if( geos_list != NULL && geos_list->thread_id == thread_id ) {
+  }
+
+  /* We don't have one ... initialize one. */
+  else if( link == NULL || link->next == NULL ) {
+    geos_thread_info_t *new_link;
+    new_link = (geos_thread_info_t *) malloc(sizeof(geos_thread_info_t));
+    new_link->next = geos_list;
+    new_link->thread_id = thread_id;
+    new_link->geos_handle = initGEOS_r(msGEOSNotice, msGEOSError);
+
+    geos_list = new_link;
+  }
+
+  /* If the link is not already at the head of the list, promote it */
+  else if( link != NULL && link->next != NULL ) {
+    geos_thread_info_t *target = link->next;
+
+    link->next = link->next->next;
+    target->next = geos_list;
+    geos_list = target;
+  }
+
+  ret_obj = geos_list->geos_handle;
+
+  msReleaseLock( TLOCK_GEOS );
+
+  return ret_obj;
+}
+#endif
+
 /*
 ** Setup/Cleanup wrappers
 */
 void msGEOSSetup()
 {
-  initGEOS(msGEOSNotice, msGEOSError);
+#ifndef USE_THREAD
+  geos_handle = initGEOS_r(msGEOSNotice, msGEOSError);
+#endif
 }
 
 void msGEOSCleanup()
 {
-  finishGEOS();
+#ifndef USE_THREAD
+  finishGEOS_r(geos_handle);
+#else
+  geos_thread_info_t *link;
+  msAcquireLock( TLOCK_GEOS );
+  for( link = geos_list; link != NULL;) {
+    geos_thread_info_t *cur = link;
+    link = link->next;
+    finishGEOS_r(cur->geos_handle);
+    free(cur);
+  }
+  geos_list = NULL;
+  msReleaseLock( TLOCK_GEOS );
+#endif
 }
 
 /*
@@ -72,17 +154,18 @@ static GEOSGeom msGEOSShape2Geometry_point(pointObj *point)
 {
   GEOSCoordSeq coords;
   GEOSGeom g;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!point) return NULL;
 
-  coords = GEOSCoordSeq_create(1, 2); /* todo handle z's */
+  coords = GEOSCoordSeq_create_r(handle,1, 2); /* todo handle z's */
   if(!coords) return NULL;
 
-  GEOSCoordSeq_setX(coords, 0, point->x);
-  GEOSCoordSeq_setY(coords, 0, point->y);
+  GEOSCoordSeq_setX_r(handle,coords, 0, point->x);
+  GEOSCoordSeq_setY_r(handle,coords, 0, point->y);
   /* GEOSCoordSeq_setY(coords, 0, point->z); */
 
-  g = GEOSGeom_createPoint(coords); /* g owns the coordinate in coords */
+  g = GEOSGeom_createPoint_r(handle,coords); /* g owns the coordinate in coords */
 
   return g;
 }
@@ -92,6 +175,7 @@ static GEOSGeom msGEOSShape2Geometry_multipoint(lineObj *multipoint)
   int i;
   GEOSGeom g;
   GEOSGeom *points;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!multipoint) return NULL;
 
@@ -101,7 +185,7 @@ static GEOSGeom msGEOSShape2Geometry_multipoint(lineObj *multipoint)
   for(i=0; i<multipoint->numpoints; i++)
     points[i] = msGEOSShape2Geometry_point(&(multipoint->point[i]));
 
-  g = GEOSGeom_createCollection(GEOS_MULTIPOINT, points, multipoint->numpoints);
+  g = GEOSGeom_createCollection_r(handle,GEOS_MULTIPOINT, points, multipoint->numpoints);
 
   free(points);
 
@@ -113,19 +197,20 @@ static GEOSGeom msGEOSShape2Geometry_line(lineObj *line)
   int i;
   GEOSGeom g;
   GEOSCoordSeq coords;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!line) return NULL;
 
-  coords = GEOSCoordSeq_create(line->numpoints, 2); /* todo handle z's */
+  coords = GEOSCoordSeq_create_r(handle,line->numpoints, 2); /* todo handle z's */
   if(!coords) return NULL;
 
   for(i=0; i<line->numpoints; i++) {
-    GEOSCoordSeq_setX(coords, i, line->point[i].x);
-    GEOSCoordSeq_setY(coords, i, line->point[i].y);
+    GEOSCoordSeq_setX_r(handle,coords, i, line->point[i].x);
+    GEOSCoordSeq_setY_r(handle,coords, i, line->point[i].y);
     /* GEOSCoordSeq_setZ(coords, i, line->point[i].z); */
   }
 
-  g = GEOSGeom_createLineString(coords); /* g owns the coordinates in coords */
+  g = GEOSGeom_createLineString_r(handle,coords); /* g owns the coordinates in coords */
 
   return g;
 }
@@ -135,6 +220,7 @@ static GEOSGeom msGEOSShape2Geometry_multiline(shapeObj *multiline)
   int i;
   GEOSGeom g;
   GEOSGeom *lines;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!multiline) return NULL;
 
@@ -144,7 +230,7 @@ static GEOSGeom msGEOSShape2Geometry_multiline(shapeObj *multiline)
   for(i=0; i<multiline->numlines; i++)
     lines[i] = msGEOSShape2Geometry_line(&(multiline->line[i]));
 
-  g = GEOSGeom_createCollection(GEOS_MULTILINESTRING, lines, multiline->numlines);
+  g = GEOSGeom_createCollection_r(handle,GEOS_MULTILINESTRING, lines, multiline->numlines);
 
   free(lines);
 
@@ -159,20 +245,21 @@ static GEOSGeom msGEOSShape2Geometry_simplepolygon(shapeObj *shape, int r, int *
   GEOSGeom outerRing;
   GEOSGeom *innerRings=NULL;
   int numInnerRings=0, *innerList;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape || !outerList) return NULL;
 
   /* build the outer shell */
-  coords = GEOSCoordSeq_create(shape->line[r].numpoints, 2); /* todo handle z's */
+  coords = GEOSCoordSeq_create_r(handle,shape->line[r].numpoints, 2); /* todo handle z's */
   if(!coords) return NULL;
 
   for(i=0; i<shape->line[r].numpoints; i++) {
-    GEOSCoordSeq_setX(coords, i, shape->line[r].point[i].x);
-    GEOSCoordSeq_setY(coords, i, shape->line[r].point[i].y);
+    GEOSCoordSeq_setX_r(handle,coords, i, shape->line[r].point[i].x);
+    GEOSCoordSeq_setY_r(handle,coords, i, shape->line[r].point[i].y);
     /* GEOSCoordSeq_setZ(coords, i, shape->line[r].point[i].z); */
   }
 
-  outerRing = GEOSGeom_createLinearRing(coords); /* outerRing owns the coordinates in coords */
+  outerRing = GEOSGeom_createLinearRing_r(handle,coords); /* outerRing owns the coordinates in coords */
 
   /* build the holes */
   innerList = msGetInnerList(shape, r, outerList);
@@ -188,21 +275,21 @@ static GEOSGeom msGEOSShape2Geometry_simplepolygon(shapeObj *shape, int r, int *
     for(j=0; j<shape->numlines; j++) {
       if(innerList[j] == MS_FALSE) continue;
 
-      coords = GEOSCoordSeq_create(shape->line[j].numpoints, 2); /* todo handle z's */
+      coords = GEOSCoordSeq_create_r(handle,shape->line[j].numpoints, 2); /* todo handle z's */
       if(!coords) return NULL; /* todo, this will leak memory (shell + allocated holes) */
 
       for(i=0; i<shape->line[j].numpoints; i++) {
-        GEOSCoordSeq_setX(coords, i, shape->line[j].point[i].x);
-        GEOSCoordSeq_setY(coords, i, shape->line[j].point[i].y);
+        GEOSCoordSeq_setX_r(handle,coords, i, shape->line[j].point[i].x);
+        GEOSCoordSeq_setY_r(handle,coords, i, shape->line[j].point[i].y);
         /* GEOSCoordSeq_setZ(coords, i, shape->line[j].point[i].z); */
       }
 
-      innerRings[k] = GEOSGeom_createLinearRing(coords); /* innerRings[k] owns the coordinates in coords */
+      innerRings[k] = GEOSGeom_createLinearRing_r(handle,coords); /* innerRings[k] owns the coordinates in coords */
       k++;
     }
   }
 
-  g = GEOSGeom_createPolygon(outerRing, innerRings, numInnerRings);
+  g = GEOSGeom_createPolygon_r(handle,outerRing, innerRings, numInnerRings);
 
   free(innerList); /* clean up */
   free(innerRings); /* clean up */
@@ -216,6 +303,7 @@ static GEOSGeom msGEOSShape2Geometry_polygon(shapeObj *shape)
   GEOSGeom *polygons;
   int *outerList, numOuterRings=0, lastOuterRing=0;
   GEOSGeom g;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   outerList = msGetOuterList(shape);
   for(i=0; i<shape->numlines; i++) {
@@ -238,7 +326,7 @@ static GEOSGeom msGEOSShape2Geometry_polygon(shapeObj *shape)
       j++;
     }
 
-    g = GEOSGeom_createCollection(GEOS_MULTIPOLYGON, polygons, numOuterRings);
+    g = GEOSGeom_createCollection_r(handle,GEOS_MULTIPOLYGON, polygons, numOuterRings);
     free(polygons);
   }
 
@@ -287,6 +375,7 @@ static shapeObj *msGEOSGeometry2Shape_point(GEOSGeom g)
 {
   GEOSCoordSeq coords;
   shapeObj *shape=NULL;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g) return NULL;
 
@@ -300,10 +389,10 @@ static shapeObj *msGEOSGeometry2Shape_point(GEOSGeom g)
   shape->line[0].numpoints = 1;
   shape->geometry = (GEOSGeom) g;
 
-  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(g);
+  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,g);
 
-  GEOSCoordSeq_getX(coords, 0, &(shape->line[0].point[0].x));
-  GEOSCoordSeq_getY(coords, 0, &(shape->line[0].point[0].y));
+  GEOSCoordSeq_getX_r(handle,coords, 0, &(shape->line[0].point[0].x));
+  GEOSCoordSeq_getY_r(handle,coords, 0, &(shape->line[0].point[0].y));
   /* GEOSCoordSeq_getZ(coords, 0, &(shape->line[0].point[0].z)); */
 
   shape->bounds.minx = shape->bounds.maxx = shape->line[0].point[0].x;
@@ -320,9 +409,10 @@ static shapeObj *msGEOSGeometry2Shape_multipoint(GEOSGeom g)
   GEOSGeom point;
 
   shapeObj *shape=NULL;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g) return NULL;
-  numPoints = GEOSGetNumGeometries(g); /* each geometry has 1 point */
+  numPoints = GEOSGetNumGeometries_r(handle,g); /* each geometry has 1 point */
 
   shape = (shapeObj *) malloc(sizeof(shapeObj));
   msInitShape(shape);
@@ -335,11 +425,11 @@ static shapeObj *msGEOSGeometry2Shape_multipoint(GEOSGeom g)
   shape->geometry = (GEOSGeom) g;
 
   for(i=0; i<numPoints; i++) {
-    point = (GEOSGeom) GEOSGetGeometryN(g, i);
-    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(point);
+    point = (GEOSGeom) GEOSGetGeometryN_r(handle,g, i);
+    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,point);
 
-    GEOSCoordSeq_getX(coords, 0, &(shape->line[0].point[i].x));
-    GEOSCoordSeq_getY(coords, 0, &(shape->line[0].point[i].y));
+    GEOSCoordSeq_getX_r(handle,coords, 0, &(shape->line[0].point[i].x));
+    GEOSCoordSeq_getY_r(handle,coords, 0, &(shape->line[0].point[i].y));
     /* GEOSCoordSeq_getZ(coords, 0, &(shape->line[0].point[i].z)); */
   }
 
@@ -351,14 +441,15 @@ static shapeObj *msGEOSGeometry2Shape_multipoint(GEOSGeom g)
 static shapeObj *msGEOSGeometry2Shape_line(GEOSGeom g)
 {
   shapeObj *shape=NULL;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   int i;
   int numPoints;
   GEOSCoordSeq coords;
 
   if(!g) return NULL;
-  numPoints = GEOSGetNumCoordinates(g);
-  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(g);
+  numPoints = GEOSGetNumCoordinates_r(handle,g);
+  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,g);
 
   shape = (shapeObj *) malloc(sizeof(shapeObj));
   msInitShape(shape);
@@ -371,8 +462,8 @@ static shapeObj *msGEOSGeometry2Shape_line(GEOSGeom g)
   shape->geometry = (GEOSGeom) g;
 
   for(i=0; i<numPoints; i++) {
-    GEOSCoordSeq_getX(coords, i, &(shape->line[0].point[i].x));
-    GEOSCoordSeq_getY(coords, i, &(shape->line[0].point[i].y));
+    GEOSCoordSeq_getX_r(handle,coords, i, &(shape->line[0].point[i].x));
+    GEOSCoordSeq_getY_r(handle,coords, i, &(shape->line[0].point[i].y));
     /* GEOSCoordSeq_getZ(coords, i, &(shape->line[0].point[i].z)); */
   }
 
@@ -390,9 +481,10 @@ static shapeObj *msGEOSGeometry2Shape_multiline(GEOSGeom g)
 
   shapeObj *shape=NULL;
   lineObj line;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g) return NULL;
-  numLines = GEOSGetNumGeometries(g);
+  numLines = GEOSGetNumGeometries_r(handle,g);
 
   shape = (shapeObj *) malloc(sizeof(shapeObj));
   msInitShape(shape);
@@ -401,16 +493,16 @@ static shapeObj *msGEOSGeometry2Shape_multiline(GEOSGeom g)
   shape->geometry = (GEOSGeom) g;
 
   for(j=0; j<numLines; j++) {
-    lineString = (GEOSGeom) GEOSGetGeometryN(g, j);
-    numPoints = GEOSGetNumCoordinates(lineString);
-    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(lineString);
+    lineString = (GEOSGeom) GEOSGetGeometryN_r(handle,g, j);
+    numPoints = GEOSGetNumCoordinates_r(handle,lineString);
+    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,lineString);
 
     line.point = (pointObj *) malloc(sizeof(pointObj)*numPoints);
     line.numpoints = numPoints;
 
     for(i=0; i<numPoints; i++) {
-      GEOSCoordSeq_getX(coords, i, &(line.point[i].x));
-      GEOSCoordSeq_getY(coords, i, &(line.point[i].y));
+      GEOSCoordSeq_getX_r(handle,coords, i, &(line.point[i].x));
+      GEOSCoordSeq_getY_r(handle,coords, i, &(line.point[i].y));
       /* GEOSCoordSeq_getZ(coords, i, &(line.point[i].z)); */
     }
 
@@ -431,6 +523,7 @@ static shapeObj *msGEOSGeometry2Shape_polygon(GEOSGeom g)
 
   GEOSCoordSeq coords;
   GEOSGeom ring;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g) return NULL;
 
@@ -440,35 +533,35 @@ static shapeObj *msGEOSGeometry2Shape_polygon(GEOSGeom g)
   shape->geometry = (GEOSGeom) g;
 
   /* exterior ring */
-  ring = (GEOSGeom) GEOSGetExteriorRing(g);
-  numPoints = GEOSGetNumCoordinates(ring);
-  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(ring);
+  ring = (GEOSGeom) GEOSGetExteriorRing_r(handle,g);
+  numPoints = GEOSGetNumCoordinates_r(handle,ring);
+  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,ring);
 
   line.point = (pointObj *) malloc(sizeof(pointObj)*numPoints);
   line.numpoints = numPoints;
 
   for(i=0; i<numPoints; i++) {
-    GEOSCoordSeq_getX(coords, i, &(line.point[i].x));
-    GEOSCoordSeq_getY(coords, i, &(line.point[i].y));
+    GEOSCoordSeq_getX_r(handle,coords, i, &(line.point[i].x));
+    GEOSCoordSeq_getY_r(handle,coords, i, &(line.point[i].y));
     /* GEOSCoordSeq_getZ(coords, i, &(line.point[i].z)); */
   }
   msAddLineDirectly(shape, &line);
 
   /* interior rings */
-  numRings = GEOSGetNumInteriorRings(g);
+  numRings = GEOSGetNumInteriorRings_r(handle,g);
   for(j=0; j<numRings; j++) {
-    ring = (GEOSGeom) GEOSGetInteriorRingN(g, j);
-    if(GEOSisRing(ring) != 1) continue; /* skip it */
+    ring = (GEOSGeom) GEOSGetInteriorRingN_r(handle,g, j);
+    if(GEOSisRing_r(handle,ring) != 1) continue; /* skip it */
 
-    numPoints = GEOSGetNumCoordinates(ring);
-    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(ring);
+    numPoints = GEOSGetNumCoordinates_r(handle,ring);
+    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,ring);
 
     line.point = (pointObj *) malloc(sizeof(pointObj)*numPoints);
     line.numpoints = numPoints;
 
     for(i=0; i<numPoints; i++) {
-      GEOSCoordSeq_getX(coords, i, &(line.point[i].x));
-      GEOSCoordSeq_getY(coords, i, &(line.point[i].y));
+      GEOSCoordSeq_getX_r(handle,coords, i, &(line.point[i].x));
+      GEOSCoordSeq_getY_r(handle,coords, i, &(line.point[i].y));
       /* GEOSCoordSeq_getZ(coords, i, &(line.point[i].z)); */
     }
     msAddLineDirectly(shape, &line);
@@ -488,9 +581,10 @@ static shapeObj *msGEOSGeometry2Shape_multipolygon(GEOSGeom g)
 
   GEOSCoordSeq coords;
   GEOSGeom polygon, ring;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g) return NULL;
-  numPolygons = GEOSGetNumGeometries(g);
+  numPolygons = GEOSGetNumGeometries_r(handle,g);
 
   shape = (shapeObj *) malloc(sizeof(shapeObj));
   msInitShape(shape);
@@ -498,39 +592,39 @@ static shapeObj *msGEOSGeometry2Shape_multipolygon(GEOSGeom g)
   shape->geometry = (GEOSGeom) g;
 
   for(k=0; k<numPolygons; k++) { /* for each polygon */
-    polygon = (GEOSGeom) GEOSGetGeometryN(g, k);
+    polygon = (GEOSGeom) GEOSGetGeometryN_r(handle,g, k);
 
     /* exterior ring */
-    ring = (GEOSGeom) GEOSGetExteriorRing(polygon);
-    numPoints = GEOSGetNumCoordinates(ring);
-    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(ring);
+    ring = (GEOSGeom) GEOSGetExteriorRing_r(handle,polygon);
+    numPoints = GEOSGetNumCoordinates_r(handle,ring);
+    coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,ring);
 
     line.point = (pointObj *) malloc(sizeof(pointObj)*numPoints);
     line.numpoints = numPoints;
 
     for(i=0; i<numPoints; i++) {
-      GEOSCoordSeq_getX(coords, i, &(line.point[i].x));
-      GEOSCoordSeq_getY(coords, i, &(line.point[i].y));
+      GEOSCoordSeq_getX_r(handle,coords, i, &(line.point[i].x));
+      GEOSCoordSeq_getY_r(handle,coords, i, &(line.point[i].y));
       /* GEOSCoordSeq_getZ(coords, i, &(line.point[i].z)); */
     }
     msAddLineDirectly(shape, &line);
 
     /* interior rings */
-    numRings = GEOSGetNumInteriorRings(polygon);
+    numRings = GEOSGetNumInteriorRings_r(handle,polygon);
 
     for(j=0; j<numRings; j++) {
-      ring = (GEOSGeom) GEOSGetInteriorRingN(polygon, j);
-      if(GEOSisRing(ring) != 1) continue; /* skip it */
+      ring = (GEOSGeom) GEOSGetInteriorRingN_r(handle,polygon, j);
+      if(GEOSisRing_r(handle,ring) != 1) continue; /* skip it */
 
-      numPoints = GEOSGetNumCoordinates(ring);
-      coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(ring);
+      numPoints = GEOSGetNumCoordinates_r(handle,ring);
+      coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,ring);
 
       line.point = (pointObj *) malloc(sizeof(pointObj)*numPoints);
       line.numpoints = numPoints;
 
       for(i=0; i<numPoints; i++) {
-        GEOSCoordSeq_getX(coords, i, &(line.point[i].x));
-        GEOSCoordSeq_getY(coords, i, &(line.point[i].y));
+        GEOSCoordSeq_getX_r(handle,coords, i, &(line.point[i].x));
+        GEOSCoordSeq_getY_r(handle,coords, i, &(line.point[i].y));
         /* GEOSCoordSeq_getZ(coords, i, &(line.point[i].z)); */
       }
       msAddLineDirectly(shape, &line);
@@ -545,11 +639,12 @@ static shapeObj *msGEOSGeometry2Shape_multipolygon(GEOSGeom g)
 shapeObj *msGEOSGeometry2Shape(GEOSGeom g)
 {
   int type;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!g)
     return NULL; /* a NULL geometry generates a NULL shape */
 
-  type = GEOSGeomTypeId(g);
+  type = GEOSGeomTypeId_r(handle,g);
   switch(type) {
     case GEOS_POINT:
       return msGEOSGeometry2Shape_point(g);
@@ -570,21 +665,21 @@ shapeObj *msGEOSGeometry2Shape(GEOSGeom g)
       return msGEOSGeometry2Shape_multipolygon(g);
       break;
     case GEOS_GEOMETRYCOLLECTION:
-      if (!GEOSisEmpty(g))
+      if (!GEOSisEmpty_r(handle,g))
       {
         int i, j, numGeoms;
         shapeObj* shape;
 
-        numGeoms = GEOSGetNumGeometries(g);
+        numGeoms = GEOSGetNumGeometries_r(handle,g);
 
         shape = (shapeObj *) malloc(sizeof(shapeObj));
         msInitShape(shape);
         shape->type = MS_SHAPE_LINE;
         shape->geometry = (GEOSGeom) g;
         
-        numGeoms = GEOSGetNumGeometries(g);
+        numGeoms = GEOSGetNumGeometries_r(handle,g);
         for(i = 0; i < numGeoms; i++) { /* for each geometry */
-           shapeObj* shape2 = msGEOSGeometry2Shape((GEOSGeom)GEOSGetGeometryN(g, i));
+           shapeObj* shape2 = msGEOSGeometry2Shape((GEOSGeom)GEOSGetGeometryN_r(handle,g, i));
            if (shape2) {
               for (j = 0; j < shape2->numlines; j++)
                  msAddLineDirectly(shape, &shape2->line[j]);
@@ -612,12 +707,13 @@ void msGEOSFreeGeometry(shapeObj *shape)
 {
 #ifdef USE_GEOS
   GEOSGeom g=NULL;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape || !shape->geometry)
     return;
 
   g = (GEOSGeom) shape->geometry;
-  GEOSGeom_destroy(g);
+  GEOSGeom_destroy_r(handle,g);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSFreeGEOSGeom()");
   return;
@@ -631,11 +727,12 @@ shapeObj *msGEOSShapeFromWKT(const char *wkt)
 {
 #ifdef USE_GEOS
   GEOSGeom g;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!wkt)
     return NULL;
 
-  g = GEOSGeomFromWKT(wkt);
+  g = GEOSGeomFromWKT_r(handle,wkt);
   if(!g) {
     msSetError(MS_GEOSERR, "Error reading WKT geometry \"%s\".", "msGEOSShapeFromWKT()", wkt);
     return NULL;
@@ -654,6 +751,7 @@ char *msGEOSShapeToWKT(shapeObj *shape)
 {
 #ifdef USE_GEOS
   GEOSGeom g;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape)
     return NULL;
@@ -665,7 +763,7 @@ char *msGEOSShapeToWKT(shapeObj *shape)
   g = (GEOSGeom) shape->geometry;
   if(!g) return NULL;
 
-  return GEOSGeomToWKT(g);
+  return GEOSGeomToWKT_r(handle,g);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSShapeToWKT()");
   return NULL;
@@ -675,8 +773,9 @@ char *msGEOSShapeToWKT(shapeObj *shape)
 void msGEOSFreeWKT(char* pszGEOSWKT)
 {
 #ifdef USE_GEOS
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 #if GEOS_VERSION_MAJOR > 3 || (GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR >= 2)
-  GEOSFree(pszGEOSWKT);
+  GEOSFree_r(handle,pszGEOSWKT);
 #endif
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSFreeWKT()");
@@ -685,7 +784,8 @@ void msGEOSFreeWKT(char* pszGEOSWKT)
 
 shapeObj *msGEOSOffsetCurve(shapeObj *p, double offset) {
 #if defined USE_GEOS && (GEOS_VERSION_MAJOR > 3 || (GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR >= 3))
-   GEOSGeom g1, g2; 
+  GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!p) 
     return NULL;
@@ -696,7 +796,7 @@ shapeObj *msGEOSOffsetCurve(shapeObj *p, double offset) {
   g1 = (GEOSGeom) p->geometry;
   if(!g1) return NULL;
   
-  g2 = GEOSOffsetCurve(g1, offset, 4, GEOSBUF_JOIN_MITRE, fabs(offset*1.5));
+  g2 = GEOSOffsetCurve_r(handle,g1, offset, 4, GEOSBUF_JOIN_MITRE, fabs(offset*1.5));
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS Offset Curve support is not available.", "msGEOSingleSidedBuffer()");
@@ -712,6 +812,7 @@ shapeObj *msGEOSBuffer(shapeObj *shape, double width)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape)
     return NULL;
@@ -722,7 +823,7 @@ shapeObj *msGEOSBuffer(shapeObj *shape, double width)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSBuffer(g1, width, 30);
+  g2 = GEOSBuffer_r(handle,g1, width, 30);
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSBuffer()");
@@ -734,6 +835,7 @@ shapeObj *msGEOSSimplify(shapeObj *shape, double tolerance)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape)
     return NULL;
@@ -744,7 +846,7 @@ shapeObj *msGEOSSimplify(shapeObj *shape, double tolerance)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSSimplify(g1, tolerance);
+  g2 = GEOSSimplify_r(handle,g1, tolerance);
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS Simplify support is not available.", "msGEOSSimplify()");
@@ -756,6 +858,7 @@ shapeObj *msGEOSTopologyPreservingSimplify(shapeObj *shape, double tolerance)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape)
     return NULL;
@@ -766,7 +869,7 @@ shapeObj *msGEOSTopologyPreservingSimplify(shapeObj *shape, double tolerance)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSTopologyPreserveSimplify(g1, tolerance);
+  g2 = GEOSTopologyPreserveSimplify_r(handle,g1, tolerance);
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS Simplify support is not available.", "msGEOSTopologyPreservingSimplify()");
@@ -778,6 +881,7 @@ shapeObj *msGEOSConvexHull(shapeObj *shape)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape) return NULL;
 
@@ -786,7 +890,7 @@ shapeObj *msGEOSConvexHull(shapeObj *shape)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSConvexHull(g1);
+  g2 = GEOSConvexHull_r(handle,g1);
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSConvexHull()");
@@ -798,6 +902,7 @@ shapeObj *msGEOSBoundary(shapeObj *shape)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape) return NULL;
 
@@ -806,7 +911,7 @@ shapeObj *msGEOSBoundary(shapeObj *shape)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSBoundary(g1);
+  g2 = GEOSBoundary_r(handle,g1);
   return msGEOSGeometry2Shape(g2);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSBoundary()");
@@ -820,6 +925,7 @@ pointObj *msGEOSGetCentroid(shapeObj *shape)
   GEOSGeom g1, g2;
   GEOSCoordSeq coords;
   pointObj *point;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape) return NULL;
 
@@ -828,17 +934,17 @@ pointObj *msGEOSGetCentroid(shapeObj *shape)
   g1 = (GEOSGeom) shape->geometry;
   if(!g1) return NULL;
 
-  g2 = GEOSGetCentroid(g1);
+  g2 = GEOSGetCentroid_r(handle,g1);
 
   point = (pointObj *) malloc(sizeof(pointObj));
 
-  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq(g2);
+  coords = (GEOSCoordSeq) GEOSGeom_getCoordSeq_r(handle,g2);
 
-  GEOSCoordSeq_getX(coords, 0, &(point->x));
-  GEOSCoordSeq_getY(coords, 0, &(point->y));
+  GEOSCoordSeq_getX_r(handle,coords, 0, &(point->x));
+  GEOSCoordSeq_getY_r(handle,coords, 0, &(point->y));
   /* GEOSCoordSeq_getZ(coords, 0, &(point->z)); */
 
-  GEOSCoordSeq_destroy(coords);
+  GEOSCoordSeq_destroy_r(handle,coords);
 
   return point;
 #else
@@ -851,6 +957,7 @@ shapeObj *msGEOSUnion(shapeObj *shape1, shapeObj *shape2)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2, g3;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return NULL;
@@ -865,7 +972,7 @@ shapeObj *msGEOSUnion(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return NULL;
 
-  g3 = GEOSUnion(g1, g2);
+  g3 = GEOSUnion_r(handle,g1, g2);
   return msGEOSGeometry2Shape(g3);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSUnion()");
@@ -877,6 +984,7 @@ shapeObj *msGEOSIntersection(shapeObj *shape1, shapeObj *shape2)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2, g3;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return NULL;
@@ -891,7 +999,7 @@ shapeObj *msGEOSIntersection(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return NULL;
 
-  g3 = GEOSIntersection(g1, g2);
+  g3 = GEOSIntersection_r(handle,g1, g2);
   return msGEOSGeometry2Shape(g3);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSIntersection()");
@@ -903,6 +1011,7 @@ shapeObj *msGEOSDifference(shapeObj *shape1, shapeObj *shape2)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2, g3;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return NULL;
@@ -917,7 +1026,7 @@ shapeObj *msGEOSDifference(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return NULL;
 
-  g3 = GEOSDifference(g1, g2);
+  g3 = GEOSDifference_r(handle,g1, g2);
   return msGEOSGeometry2Shape(g3);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSDifference()");
@@ -929,6 +1038,7 @@ shapeObj *msGEOSSymDifference(shapeObj *shape1, shapeObj *shape2)
 {
 #ifdef USE_GEOS
   GEOSGeom g1, g2, g3;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return NULL;
@@ -943,7 +1053,7 @@ shapeObj *msGEOSSymDifference(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return NULL;
 
-  g3 = GEOSSymDifference(g1, g2);
+  g3 = GEOSSymDifference_r(handle,g1, g2);
   return msGEOSGeometry2Shape(g3);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSSymDifference()");
@@ -963,6 +1073,7 @@ int msGEOSContains(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -977,7 +1088,7 @@ int msGEOSContains(shapeObj *shape1, shapeObj *shape2)
   g2 = shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSContains(g1, g2);
+  result = GEOSContains_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSContains()");
@@ -993,6 +1104,7 @@ int msGEOSOverlaps(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1007,7 +1119,7 @@ int msGEOSOverlaps(shapeObj *shape1, shapeObj *shape2)
   g2 = shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSOverlaps(g1, g2);
+  result = GEOSOverlaps_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSOverlaps()");
@@ -1023,6 +1135,7 @@ int msGEOSWithin(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1037,7 +1150,7 @@ int msGEOSWithin(shapeObj *shape1, shapeObj *shape2)
   g2 = shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSWithin(g1, g2);
+  result = GEOSWithin_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSWithin()");
@@ -1053,6 +1166,7 @@ int msGEOSCrosses(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1067,7 +1181,7 @@ int msGEOSCrosses(shapeObj *shape1, shapeObj *shape2)
   g2 = shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSCrosses(g1, g2);
+  result = GEOSCrosses_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSCrosses()");
@@ -1083,6 +1197,7 @@ int msGEOSIntersects(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1097,7 +1212,7 @@ int msGEOSIntersects(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSIntersects(g1, g2);
+  result = GEOSIntersects_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   if(!shape1 || !shape2)
@@ -1134,6 +1249,7 @@ int msGEOSTouches(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1148,7 +1264,7 @@ int msGEOSTouches(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSTouches(g1, g2);
+  result = GEOSTouches_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSTouches()");
@@ -1164,6 +1280,7 @@ int msGEOSEquals(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1178,7 +1295,7 @@ int msGEOSEquals(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSEquals(g1, g2);
+  result = GEOSEquals_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSEquals()");
@@ -1194,6 +1311,7 @@ int msGEOSDisjoint(shapeObj *shape1, shapeObj *shape2)
 #ifdef USE_GEOS
   GEOSGeom g1, g2;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1208,7 +1326,7 @@ int msGEOSDisjoint(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSDisjoint(g1, g2);
+  result = GEOSDisjoint_r(handle,g1, g2);
   return ((result==2) ? -1 : result);
 #else
   msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSDisjoint()");
@@ -1225,6 +1343,7 @@ double msGEOSArea(shapeObj *shape)
   GEOSGeom g;
   double area;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape) return -1;
 
@@ -1233,7 +1352,7 @@ double msGEOSArea(shapeObj *shape)
   g = (GEOSGeom) shape->geometry;
   if(!g) return -1;
 
-  result = GEOSArea(g, &area);
+  result = GEOSArea_r(handle,g, &area);
   return  ((result==0) ? -1 : area);
 #elif defined(USE_GEOS)
   msSetError(MS_GEOSERR, "GEOS support enabled, but old version lacks GEOSArea().", "msGEOSArea()");
@@ -1251,6 +1370,7 @@ double msGEOSLength(shapeObj *shape)
   GEOSGeom g;
   double length;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape) return -1;
 
@@ -1259,7 +1379,7 @@ double msGEOSLength(shapeObj *shape)
   g = (GEOSGeom) shape->geometry;
   if(!g) return -1;
 
-  result = GEOSLength(g, &length);
+  result = GEOSLength_r(handle,g, &length);
   return  ((result==0) ? -1 : length);
 #elif defined(USE_GEOS)
   msSetError(MS_GEOSERR, "GEOS support enabled, but old version lacks GEOSLength().", "msGEOSLength()");
@@ -1276,6 +1396,7 @@ double msGEOSDistance(shapeObj *shape1, shapeObj *shape2)
   GEOSGeom g1, g2;
   double distance;
   int result;
+  GEOSContextHandle_t handle = msGetGeosContextHandle();
 
   if(!shape1 || !shape2)
     return -1;
@@ -1290,7 +1411,7 @@ double msGEOSDistance(shapeObj *shape1, shapeObj *shape2)
   g2 = (GEOSGeom) shape2->geometry;
   if(!g2) return -1;
 
-  result = GEOSDistance(g1, g2, &distance);
+  result = GEOSDistance_r(handle,g1, g2, &distance);
   return ((result==0) ? -1 : distance);
 #else
   return msDistanceShapeToShape(shape1, shape2); /* fall back on brute force method (for MapScript) */
diff --git a/maplayer.c b/maplayer.c
index d792523..93c562f 100644
--- a/maplayer.c
+++ b/maplayer.c
@@ -979,6 +979,7 @@ int msLayerGetMaxFeaturesToDraw(layerObj *layer, outputFormatObj *format)
   int nMaxFeatures = -1;
   const char *pszTmp = NULL;
   if (layer) {
+    nMaxFeatures = layer->maxfeatures;
     pszTmp = msLookupHashTable(&layer->metadata, "maxfeaturestodraw");
     if (pszTmp)
       nMaxFeatures = atoi(pszTmp);
diff --git a/mapows.c b/mapows.c
index 9bcc985..cdacbb3 100644
--- a/mapows.c
+++ b/mapows.c
@@ -557,7 +557,7 @@ int msOWSRequestIsEnabled(mapObj *map, layerObj *layer,
       return MS_FALSE;
   }
 
-  if (map && check_all_layers == MS_FALSE) {
+  if (map && (check_all_layers == MS_FALSE || map->numlayers == 0)) {
     /* then we check in the map metadata */
     enable_request = msOWSLookupMetadata(&map->web.metadata, namespaces, "enable_request");
     if (msOWSParseRequestMetadata(enable_request, request, &disabled))
diff --git a/mapowscommon.c b/mapowscommon.c
index eba2d02..652c8f5 100644
--- a/mapowscommon.c
+++ b/mapowscommon.c
@@ -394,7 +394,7 @@ xmlNodePtr msOWSCommonOperationsMetadataOperation(xmlNsPtr psNsOws, xmlNsPtr psX
  * @param version the integerized x.y.z version of OWS Common to use
  * @param elname name of the element (Parameter | Constraint)
  * @param name name of the Parameter
- * @param values list of values (comma seperated list) or NULL if none
+ * @param values list of values (comma separated list) or NULL if none
  *
  * @return psRootNode xmlNodePtr pointer of XML construct
  *
diff --git a/mapscript/csharp/DBFFieldType.cs b/mapscript/csharp/DBFFieldType.cs
deleted file mode 100644
index 4109888..0000000
--- a/mapscript/csharp/DBFFieldType.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum DBFFieldType {
-  FTString,
-  FTInteger,
-  FTDouble,
-  FTInvalid
-}
diff --git a/mapscript/csharp/DBFInfo.cs b/mapscript/csharp/DBFInfo.cs
deleted file mode 100644
index 64e7b56..0000000
--- a/mapscript/csharp/DBFInfo.cs
+++ /dev/null
@@ -1,246 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class DBFInfo : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal DBFInfo(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(DBFInfo obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(DBFInfo obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(DBFInfo obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~DBFInfo() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_DBFInfo(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(DBFInfo.getCPtr((DBFInfo)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int nRecords {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_nRecords_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public uint nRecordLength {
-    get {
-      uint ret = mapscriptPINVOKE.DBFInfo_nRecordLength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int nHeaderLength {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_nHeaderLength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int nFields {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_nFields_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_int panFieldOffset {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.DBFInfo_panFieldOffset_get(swigCPtr);
-      SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_int panFieldSize {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.DBFInfo_panFieldSize_get(swigCPtr);
-      SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_int panFieldDecimals {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.DBFInfo_panFieldDecimals_get(swigCPtr);
-      SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string pachFieldType {
-    get {
-      string ret = mapscriptPINVOKE.DBFInfo_pachFieldType_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string pszHeader {
-    get {
-      string ret = mapscriptPINVOKE.DBFInfo_pszHeader_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int nCurrentRecord {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_nCurrentRecord_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int bCurrentRecordModified {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_bCurrentRecordModified_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string pszCurrentRecord {
-    get {
-      string ret = mapscriptPINVOKE.DBFInfo_pszCurrentRecord_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int bNoHeader {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_bNoHeader_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int bUpdated {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_bUpdated_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string pszStringField {
-    get {
-      string ret = mapscriptPINVOKE.DBFInfo_pszStringField_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int nStringFieldLen {
-    get {
-      int ret = mapscriptPINVOKE.DBFInfo_nStringFieldLen_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string getFieldName(int iField) {
-    string ret = mapscriptPINVOKE.DBFInfo_getFieldName(swigCPtr, iField);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getFieldWidth(int iField) {
-    int ret = mapscriptPINVOKE.DBFInfo_getFieldWidth(swigCPtr, iField);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getFieldDecimals(int iField) {
-    int ret = mapscriptPINVOKE.DBFInfo_getFieldDecimals(swigCPtr, iField);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getFieldType(int iField) {
-    int ret = mapscriptPINVOKE.DBFInfo_getFieldType(swigCPtr, iField);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public DBFInfo() : this(mapscriptPINVOKE.new_DBFInfo(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/MS_ALIGN_VALUE.cs b/mapscript/csharp/MS_ALIGN_VALUE.cs
deleted file mode 100644
index 9ae292f..0000000
--- a/mapscript/csharp/MS_ALIGN_VALUE.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_ALIGN_VALUE {
-  MS_ALIGN_LEFT,
-  MS_ALIGN_CENTER,
-  MS_ALIGN_RIGHT
-}
diff --git a/mapscript/csharp/MS_BITMAP_FONT_SIZES.cs b/mapscript/csharp/MS_BITMAP_FONT_SIZES.cs
deleted file mode 100644
index c77823c..0000000
--- a/mapscript/csharp/MS_BITMAP_FONT_SIZES.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_BITMAP_FONT_SIZES {
-  MS_TINY,
-  MS_SMALL,
-  MS_MEDIUM,
-  MS_LARGE,
-  MS_GIANT
-}
diff --git a/mapscript/csharp/MS_CAPS_JOINS_AND_CORNERS.cs b/mapscript/csharp/MS_CAPS_JOINS_AND_CORNERS.cs
deleted file mode 100644
index b69a530..0000000
--- a/mapscript/csharp/MS_CAPS_JOINS_AND_CORNERS.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_CAPS_JOINS_AND_CORNERS {
-  MS_CJC_NONE,
-  MS_CJC_BEVEL,
-  MS_CJC_BUTT,
-  MS_CJC_MITER,
-  MS_CJC_ROUND,
-  MS_CJC_SQUARE,
-  MS_CJC_TRIANGLE
-}
diff --git a/mapscript/csharp/MS_CONNECTION_TYPE.cs b/mapscript/csharp/MS_CONNECTION_TYPE.cs
deleted file mode 100644
index 412692a..0000000
--- a/mapscript/csharp/MS_CONNECTION_TYPE.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_CONNECTION_TYPE {
-  MS_INLINE,
-  MS_SHAPEFILE,
-  MS_TILED_SHAPEFILE,
-  MS_SDE,
-  MS_OGR,
-  MS_UNUSED_1,
-  MS_POSTGIS,
-  MS_WMS,
-  MS_ORACLESPATIAL,
-  MS_WFS,
-  MS_GRATICULE,
-  MS_MYSQL,
-  MS_RASTER,
-  MS_PLUGIN,
-  MS_UNION,
-  MS_UVRASTER,
-  MS_CONTOUR
-}
diff --git a/mapscript/csharp/MS_FILE_TYPE.cs b/mapscript/csharp/MS_FILE_TYPE.cs
deleted file mode 100644
index 688dd2d..0000000
--- a/mapscript/csharp/MS_FILE_TYPE.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_FILE_TYPE {
-  MS_FILE_MAP,
-  MS_FILE_SYMBOL
-}
diff --git a/mapscript/csharp/MS_FONT_TYPE.cs b/mapscript/csharp/MS_FONT_TYPE.cs
deleted file mode 100644
index e9a9acd..0000000
--- a/mapscript/csharp/MS_FONT_TYPE.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_FONT_TYPE {
-  MS_TRUETYPE,
-  MS_BITMAP
-}
diff --git a/mapscript/csharp/MS_GEOS_OPERATOR.cs b/mapscript/csharp/MS_GEOS_OPERATOR.cs
deleted file mode 100644
index 04b5909..0000000
--- a/mapscript/csharp/MS_GEOS_OPERATOR.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_GEOS_OPERATOR {
-  MS_GEOS_EQUALS,
-  MS_GEOS_DISJOINT,
-  MS_GEOS_TOUCHES,
-  MS_GEOS_OVERLAPS,
-  MS_GEOS_CROSSES,
-  MS_GEOS_INTERSECTS,
-  MS_GEOS_WITHIN,
-  MS_GEOS_CONTAINS,
-  MS_GEOS_BEYOND,
-  MS_GEOS_DWITHIN
-}
diff --git a/mapscript/csharp/MS_IMAGEMODE.cs b/mapscript/csharp/MS_IMAGEMODE.cs
deleted file mode 100644
index 3871ebd..0000000
--- a/mapscript/csharp/MS_IMAGEMODE.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_IMAGEMODE {
-  MS_IMAGEMODE_PC256,
-  MS_IMAGEMODE_RGB,
-  MS_IMAGEMODE_RGBA,
-  MS_IMAGEMODE_INT16,
-  MS_IMAGEMODE_FLOAT32,
-  MS_IMAGEMODE_BYTE,
-  MS_IMAGEMODE_FEATURE,
-  MS_IMAGEMODE_NULL
-}
diff --git a/mapscript/csharp/MS_JOIN_CONNECTION_TYPE.cs b/mapscript/csharp/MS_JOIN_CONNECTION_TYPE.cs
deleted file mode 100644
index 4010942..0000000
--- a/mapscript/csharp/MS_JOIN_CONNECTION_TYPE.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_JOIN_CONNECTION_TYPE {
-  MS_DB_XBASE,
-  MS_DB_CSV,
-  MS_DB_MYSQL,
-  MS_DB_ORACLE,
-  MS_DB_POSTGRES
-}
diff --git a/mapscript/csharp/MS_JOIN_TYPE.cs b/mapscript/csharp/MS_JOIN_TYPE.cs
deleted file mode 100644
index 1705acc..0000000
--- a/mapscript/csharp/MS_JOIN_TYPE.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_JOIN_TYPE {
-  MS_JOIN_ONE_TO_ONE,
-  MS_JOIN_ONE_TO_MANY
-}
diff --git a/mapscript/csharp/MS_LABEL_BINDING_ENUM.cs b/mapscript/csharp/MS_LABEL_BINDING_ENUM.cs
deleted file mode 100644
index 9e7061c..0000000
--- a/mapscript/csharp/MS_LABEL_BINDING_ENUM.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_LABEL_BINDING_ENUM {
-  MS_LABEL_BINDING_SIZE,
-  MS_LABEL_BINDING_ANGLE,
-  MS_LABEL_BINDING_COLOR,
-  MS_LABEL_BINDING_OUTLINECOLOR,
-  MS_LABEL_BINDING_FONT,
-  MS_LABEL_BINDING_PRIORITY,
-  MS_LABEL_BINDING_POSITION,
-  MS_LABEL_BINDING_SHADOWSIZEX,
-  MS_LABEL_BINDING_SHADOWSIZEY
-}
diff --git a/mapscript/csharp/MS_LAYER_TYPE.cs b/mapscript/csharp/MS_LAYER_TYPE.cs
deleted file mode 100644
index 13b4f66..0000000
--- a/mapscript/csharp/MS_LAYER_TYPE.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_LAYER_TYPE {
-  MS_LAYER_POINT,
-  MS_LAYER_LINE,
-  MS_LAYER_POLYGON,
-  MS_LAYER_RASTER,
-  MS_LAYER_ANNOTATION,
-  MS_LAYER_QUERY,
-  MS_LAYER_CIRCLE,
-  MS_LAYER_TILEINDEX,
-  MS_LAYER_CHART
-}
diff --git a/mapscript/csharp/MS_PARSE_TYPE_ENUM.cs b/mapscript/csharp/MS_PARSE_TYPE_ENUM.cs
deleted file mode 100644
index 68fc3df..0000000
--- a/mapscript/csharp/MS_PARSE_TYPE_ENUM.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_PARSE_TYPE_ENUM {
-  MS_PARSE_TYPE_BOOLEAN,
-  MS_PARSE_TYPE_STRING,
-  MS_PARSE_TYPE_SHAPE
-}
diff --git a/mapscript/csharp/MS_POSITIONS_ENUM.cs b/mapscript/csharp/MS_POSITIONS_ENUM.cs
deleted file mode 100644
index 8cd48d7..0000000
--- a/mapscript/csharp/MS_POSITIONS_ENUM.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_POSITIONS_ENUM {
-  MS_UL = 101,
-  MS_LR,
-  MS_UR,
-  MS_LL,
-  MS_CR,
-  MS_CL,
-  MS_UC,
-  MS_LC,
-  MS_CC,
-  MS_AUTO,
-  MS_XY,
-  MS_FOLLOW,
-  MS_NONE,
-  MS_AUTO2
-}
diff --git a/mapscript/csharp/MS_QUERYMAP_STYLES.cs b/mapscript/csharp/MS_QUERYMAP_STYLES.cs
deleted file mode 100644
index f3bfd8a..0000000
--- a/mapscript/csharp/MS_QUERYMAP_STYLES.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_QUERYMAP_STYLES {
-  MS_NORMAL,
-  MS_HILITE,
-  MS_SELECTED
-}
diff --git a/mapscript/csharp/MS_QUERY_MODE.cs b/mapscript/csharp/MS_QUERY_MODE.cs
deleted file mode 100644
index beadeb8..0000000
--- a/mapscript/csharp/MS_QUERY_MODE.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_QUERY_MODE {
-  MS_QUERY_SINGLE,
-  MS_QUERY_MULTIPLE
-}
diff --git a/mapscript/csharp/MS_QUERY_TYPE.cs b/mapscript/csharp/MS_QUERY_TYPE.cs
deleted file mode 100644
index ff11551..0000000
--- a/mapscript/csharp/MS_QUERY_TYPE.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_QUERY_TYPE {
-  MS_QUERY_IS_NULL,
-  MS_QUERY_BY_POINT,
-  MS_QUERY_BY_RECT,
-  MS_QUERY_BY_SHAPE,
-  MS_QUERY_BY_ATTRIBUTE,
-  MS_QUERY_BY_INDEX,
-  MS_QUERY_BY_FILTER
-}
diff --git a/mapscript/csharp/MS_REQUEST_TYPE.cs b/mapscript/csharp/MS_REQUEST_TYPE.cs
deleted file mode 100644
index 34a0fcf..0000000
--- a/mapscript/csharp/MS_REQUEST_TYPE.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_REQUEST_TYPE {
-  MS_GET_REQUEST,
-  MS_POST_REQUEST
-}
diff --git a/mapscript/csharp/MS_RETURN_VALUE.cs b/mapscript/csharp/MS_RETURN_VALUE.cs
deleted file mode 100644
index 15399b8..0000000
--- a/mapscript/csharp/MS_RETURN_VALUE.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_RETURN_VALUE {
-  MS_SUCCESS,
-  MS_FAILURE,
-  MS_DONE
-}
diff --git a/mapscript/csharp/MS_SHAPE_TYPE.cs b/mapscript/csharp/MS_SHAPE_TYPE.cs
deleted file mode 100644
index 593fc92..0000000
--- a/mapscript/csharp/MS_SHAPE_TYPE.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_SHAPE_TYPE {
-  MS_SHAPE_POINT,
-  MS_SHAPE_LINE,
-  MS_SHAPE_POLYGON,
-  MS_SHAPE_NULL
-}
diff --git a/mapscript/csharp/MS_STYLE_BINDING_ENUM.cs b/mapscript/csharp/MS_STYLE_BINDING_ENUM.cs
deleted file mode 100644
index 8611b48..0000000
--- a/mapscript/csharp/MS_STYLE_BINDING_ENUM.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_STYLE_BINDING_ENUM {
-  MS_STYLE_BINDING_SIZE,
-  MS_STYLE_BINDING_WIDTH,
-  MS_STYLE_BINDING_ANGLE,
-  MS_STYLE_BINDING_COLOR,
-  MS_STYLE_BINDING_OUTLINECOLOR,
-  MS_STYLE_BINDING_SYMBOL,
-  MS_STYLE_BINDING_OUTLINEWIDTH,
-  MS_STYLE_BINDING_OPACITY,
-  MS_STYLE_BINDING_OFFSET_X,
-  MS_STYLE_BINDING_OFFSET_Y,
-  MS_STYLE_BINDING_POLAROFFSET_PIXEL,
-  MS_STYLE_BINDING_POLAROFFSET_ANGLE
-}
diff --git a/mapscript/csharp/MS_SYMBOL_TYPE.cs b/mapscript/csharp/MS_SYMBOL_TYPE.cs
deleted file mode 100644
index 2ed08bb..0000000
--- a/mapscript/csharp/MS_SYMBOL_TYPE.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_SYMBOL_TYPE {
-  MS_SYMBOL_SIMPLE = 1000,
-  MS_SYMBOL_VECTOR,
-  MS_SYMBOL_ELLIPSE,
-  MS_SYMBOL_PIXMAP,
-  MS_SYMBOL_TRUETYPE,
-  MS_SYMBOL_HATCH,
-  MS_SYMBOL_SVG
-}
diff --git a/mapscript/csharp/MS_TOKEN_BINDING_ENUM.cs b/mapscript/csharp/MS_TOKEN_BINDING_ENUM.cs
deleted file mode 100644
index b6b84b8..0000000
--- a/mapscript/csharp/MS_TOKEN_BINDING_ENUM.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TOKEN_BINDING_ENUM {
-  MS_TOKEN_BINDING_DOUBLE = 360,
-  MS_TOKEN_BINDING_INTEGER,
-  MS_TOKEN_BINDING_STRING,
-  MS_TOKEN_BINDING_TIME,
-  MS_TOKEN_BINDING_SHAPE,
-  MS_TOKEN_BINDING_MAP_CELLSIZE,
-  MS_TOKEN_BINDING_DATA_CELLSIZE
-}
diff --git a/mapscript/csharp/MS_TOKEN_COMPARISON_ENUM.cs b/mapscript/csharp/MS_TOKEN_COMPARISON_ENUM.cs
deleted file mode 100644
index bf3d13a..0000000
--- a/mapscript/csharp/MS_TOKEN_COMPARISON_ENUM.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TOKEN_COMPARISON_ENUM {
-  MS_TOKEN_COMPARISON_EQ = 320,
-  MS_TOKEN_COMPARISON_NE,
-  MS_TOKEN_COMPARISON_GT,
-  MS_TOKEN_COMPARISON_LT,
-  MS_TOKEN_COMPARISON_LE,
-  MS_TOKEN_COMPARISON_GE,
-  MS_TOKEN_COMPARISON_IEQ,
-  MS_TOKEN_COMPARISON_RE,
-  MS_TOKEN_COMPARISON_IRE,
-  MS_TOKEN_COMPARISON_IN,
-  MS_TOKEN_COMPARISON_LIKE,
-  MS_TOKEN_COMPARISON_INTERSECTS,
-  MS_TOKEN_COMPARISON_DISJOINT,
-  MS_TOKEN_COMPARISON_TOUCHES,
-  MS_TOKEN_COMPARISON_OVERLAPS,
-  MS_TOKEN_COMPARISON_CROSSES,
-  MS_TOKEN_COMPARISON_WITHIN,
-  MS_TOKEN_COMPARISON_CONTAINS,
-  MS_TOKEN_COMPARISON_BEYOND,
-  MS_TOKEN_COMPARISON_DWITHIN
-}
diff --git a/mapscript/csharp/MS_TOKEN_FUNCTION_ENUM.cs b/mapscript/csharp/MS_TOKEN_FUNCTION_ENUM.cs
deleted file mode 100644
index afa3fcb..0000000
--- a/mapscript/csharp/MS_TOKEN_FUNCTION_ENUM.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TOKEN_FUNCTION_ENUM {
-  MS_TOKEN_FUNCTION_LENGTH = 340,
-  MS_TOKEN_FUNCTION_TOSTRING,
-  MS_TOKEN_FUNCTION_COMMIFY,
-  MS_TOKEN_FUNCTION_AREA,
-  MS_TOKEN_FUNCTION_ROUND,
-  MS_TOKEN_FUNCTION_FROMTEXT,
-  MS_TOKEN_FUNCTION_BUFFER,
-  MS_TOKEN_FUNCTION_DIFFERENCE,
-  MS_TOKEN_FUNCTION_SIMPLIFY,
-  MS_TOKEN_FUNCTION_SIMPLIFYPT,
-  MS_TOKEN_FUNCTION_GENERALIZE,
-  MS_TOKEN_FUNCTION_SMOOTHSIA
-}
diff --git a/mapscript/csharp/MS_TOKEN_LITERAL_ENUM.cs b/mapscript/csharp/MS_TOKEN_LITERAL_ENUM.cs
deleted file mode 100644
index 0591c7c..0000000
--- a/mapscript/csharp/MS_TOKEN_LITERAL_ENUM.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TOKEN_LITERAL_ENUM {
-  MS_TOKEN_LITERAL_NUMBER = 310,
-  MS_TOKEN_LITERAL_STRING,
-  MS_TOKEN_LITERAL_TIME,
-  MS_TOKEN_LITERAL_SHAPE
-}
diff --git a/mapscript/csharp/MS_TOKEN_LOGICAL_ENUM.cs b/mapscript/csharp/MS_TOKEN_LOGICAL_ENUM.cs
deleted file mode 100644
index 831fc05..0000000
--- a/mapscript/csharp/MS_TOKEN_LOGICAL_ENUM.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TOKEN_LOGICAL_ENUM {
-  MS_TOKEN_LOGICAL_AND = 300,
-  MS_TOKEN_LOGICAL_OR,
-  MS_TOKEN_LOGICAL_NOT
-}
diff --git a/mapscript/csharp/MS_TRANSFORM_MODE.cs b/mapscript/csharp/MS_TRANSFORM_MODE.cs
deleted file mode 100644
index 4a66508..0000000
--- a/mapscript/csharp/MS_TRANSFORM_MODE.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_TRANSFORM_MODE {
-  MS_TRANSFORM_NONE,
-  MS_TRANSFORM_ROUND,
-  MS_TRANSFORM_SNAPTOGRID,
-  MS_TRANSFORM_FULLRESOLUTION,
-  MS_TRANSFORM_SIMPLIFY
-}
diff --git a/mapscript/csharp/MS_UNITS.cs b/mapscript/csharp/MS_UNITS.cs
deleted file mode 100644
index cde7210..0000000
--- a/mapscript/csharp/MS_UNITS.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum MS_UNITS {
-  MS_INCHES,
-  MS_FEET,
-  MS_MILES,
-  MS_METERS,
-  MS_KILOMETERS,
-  MS_DD,
-  MS_PIXELS,
-  MS_PERCENTAGES,
-  MS_NAUTICALMILES
-}
diff --git a/mapscript/csharp/OWSRequest.cs b/mapscript/csharp/OWSRequest.cs
deleted file mode 100644
index 0631709..0000000
--- a/mapscript/csharp/OWSRequest.cs
+++ /dev/null
@@ -1,184 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class OWSRequest : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal OWSRequest(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(OWSRequest obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(OWSRequest obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(OWSRequest obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~OWSRequest() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_OWSRequest(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(OWSRequest.getCPtr((OWSRequest)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int NumParams {
-    get {
-      int ret = mapscriptPINVOKE.OWSRequest_NumParams_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public MS_REQUEST_TYPE type {
-    set {
-      mapscriptPINVOKE.OWSRequest_type_set(swigCPtr, (int)value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      MS_REQUEST_TYPE ret = (MS_REQUEST_TYPE)mapscriptPINVOKE.OWSRequest_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string contenttype {
-    set {
-      mapscriptPINVOKE.OWSRequest_contenttype_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.OWSRequest_contenttype_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string postrequest {
-    set {
-      mapscriptPINVOKE.OWSRequest_postrequest_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.OWSRequest_postrequest_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string httpcookiedata {
-    set {
-      mapscriptPINVOKE.OWSRequest_httpcookiedata_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.OWSRequest_httpcookiedata_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public OWSRequest() : this(mapscriptPINVOKE.new_OWSRequest(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int loadParams() {
-    int ret = mapscriptPINVOKE.OWSRequest_loadParams(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int loadParamsFromURL(string url) {
-    int ret = mapscriptPINVOKE.OWSRequest_loadParamsFromURL(swigCPtr, url);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setParameter(string name, string value) {
-    mapscriptPINVOKE.OWSRequest_setParameter(swigCPtr, name, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void addParameter(string name, string value) {
-    mapscriptPINVOKE.OWSRequest_addParameter(swigCPtr, name, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public string getName(int index) {
-    string ret = mapscriptPINVOKE.OWSRequest_getName(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getValue(int index) {
-    string ret = mapscriptPINVOKE.OWSRequest_getValue(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getValueByName(string name) {
-    string ret = mapscriptPINVOKE.OWSRequest_getValueByName(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/SWIGTYPE_p_double.cs b/mapscript/csharp/SWIGTYPE_p_double.cs
deleted file mode 100644
index 848fb57..0000000
--- a/mapscript/csharp/SWIGTYPE_p_double.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class SWIGTYPE_p_double {
-  /* %typemap(csbody) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-  private HandleRef swigCPtr;
-
-  internal SWIGTYPE_p_double(IntPtr cPtr, bool futureUse, object parent) {
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  protected SWIGTYPE_p_double() {
-    swigCPtr = new HandleRef(null, IntPtr.Zero);
-  }
-
-  internal static HandleRef getCPtr(SWIGTYPE_p_double obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-}
diff --git a/mapscript/csharp/SWIGTYPE_p_int.cs b/mapscript/csharp/SWIGTYPE_p_int.cs
deleted file mode 100644
index 339fb3d..0000000
--- a/mapscript/csharp/SWIGTYPE_p_int.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class SWIGTYPE_p_int {
-  /* %typemap(csbody) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-  private HandleRef swigCPtr;
-
-  internal SWIGTYPE_p_int(IntPtr cPtr, bool futureUse, object parent) {
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  protected SWIGTYPE_p_int() {
-    swigCPtr = new HandleRef(null, IntPtr.Zero);
-  }
-
-  internal static HandleRef getCPtr(SWIGTYPE_p_int obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-}
diff --git a/mapscript/csharp/SWIGTYPE_p_p_char.cs b/mapscript/csharp/SWIGTYPE_p_p_char.cs
deleted file mode 100644
index 63415d4..0000000
--- a/mapscript/csharp/SWIGTYPE_p_p_char.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class SWIGTYPE_p_p_char {
-  /* %typemap(csbody) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-  private HandleRef swigCPtr;
-
-  internal SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse, object parent) {
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  protected SWIGTYPE_p_p_char() {
-    swigCPtr = new HandleRef(null, IntPtr.Zero);
-  }
-
-  internal static HandleRef getCPtr(SWIGTYPE_p_p_char obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-}
diff --git a/mapscript/csharp/SWIGTYPE_p_tileCacheObj.cs b/mapscript/csharp/SWIGTYPE_p_tileCacheObj.cs
deleted file mode 100644
index 53f43ce..0000000
--- a/mapscript/csharp/SWIGTYPE_p_tileCacheObj.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class SWIGTYPE_p_tileCacheObj {
-  /* %typemap(csbody) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-  private HandleRef swigCPtr;
-
-  internal SWIGTYPE_p_tileCacheObj(IntPtr cPtr, bool futureUse, object parent) {
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  protected SWIGTYPE_p_tileCacheObj() {
-    swigCPtr = new HandleRef(null, IntPtr.Zero);
-  }
-
-  internal static HandleRef getCPtr(SWIGTYPE_p_tileCacheObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-}
diff --git a/mapscript/csharp/SWIGTYPE_p_uint32_t.cs b/mapscript/csharp/SWIGTYPE_p_uint32_t.cs
deleted file mode 100644
index a7ac84d..0000000
--- a/mapscript/csharp/SWIGTYPE_p_uint32_t.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class SWIGTYPE_p_uint32_t {
-  /* %typemap(csbody) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-  private HandleRef swigCPtr;
-
-  internal SWIGTYPE_p_uint32_t(IntPtr cPtr, bool futureUse, object parent) {
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  protected SWIGTYPE_p_uint32_t() {
-    swigCPtr = new HandleRef(null, IntPtr.Zero);
-  }
-
-  internal static HandleRef getCPtr(SWIGTYPE_p_uint32_t obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-}
diff --git a/mapscript/csharp/classObj.cs b/mapscript/csharp/classObj.cs
deleted file mode 100644
index 3bc65aa..0000000
--- a/mapscript/csharp/classObj.cs
+++ /dev/null
@@ -1,430 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class classObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal classObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(classObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(classObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(classObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~classObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_classObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(classObj.getCPtr((classObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.classObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.classObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numstyles {
-    get {
-      int ret = mapscriptPINVOKE.classObj_numstyles_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numlabels {
-    set {
-      mapscriptPINVOKE.classObj_numlabels_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.classObj_numlabels_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.classObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.classObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string title {
-    set {
-      mapscriptPINVOKE.classObj_title_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.classObj_title_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string template {
-    set {
-      mapscriptPINVOKE.classObj_template_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.classObj_template_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int type {
-    set {
-      mapscriptPINVOKE.classObj_type_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.classObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj metadata {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.classObj_metadata_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj validation {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.classObj_validation_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minscaledenom {
-    set {
-      mapscriptPINVOKE.classObj_minscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.classObj_minscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscaledenom {
-    set {
-      mapscriptPINVOKE.classObj_maxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.classObj_maxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int minfeaturesize {
-    set {
-      mapscriptPINVOKE.classObj_minfeaturesize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.classObj_minfeaturesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.classObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public layerObj layer {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.classObj_layer_get(swigCPtr);
-      layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int debug {
-    set {
-      mapscriptPINVOKE.classObj_debug_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.classObj_debug_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string keyimage {
-    set {
-      mapscriptPINVOKE.classObj_keyimage_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.classObj_keyimage_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string group {
-    set {
-      mapscriptPINVOKE.classObj_group_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.classObj_group_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelLeaderObj leader {
-    set {
-      mapscriptPINVOKE.classObj_leader_set(swigCPtr, labelLeaderObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.classObj_leader_get(swigCPtr);
-      labelLeaderObj ret = (cPtr == IntPtr.Zero) ? null : new labelLeaderObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public classObj(layerObj layer) : this(mapscriptPINVOKE.new_classObj(layerObj.getCPtr(layer)), true, layer) {
-  
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-}
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.classObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.classObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public classObj clone() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.classObj_clone(swigCPtr);
-    classObj ret = (cPtr == IntPtr.Zero) ? null : new classObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setExpression(string expression) {
-    int ret = mapscriptPINVOKE.classObj_setExpression(swigCPtr, expression);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getExpressionString() {
-    string ret = mapscriptPINVOKE.classObj_getExpressionString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setText(string text) {
-    int ret = mapscriptPINVOKE.classObj_setText(swigCPtr, text);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getTextString() {
-    string ret = mapscriptPINVOKE.classObj_getTextString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getMetaData(string name) {
-    string ret = mapscriptPINVOKE.classObj_getMetaData(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setMetaData(string name, string value) {
-    int ret = mapscriptPINVOKE.classObj_setMetaData(swigCPtr, name, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getFirstMetaDataKey() {
-    string ret = mapscriptPINVOKE.classObj_getFirstMetaDataKey(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getNextMetaDataKey(string lastkey) {
-    string ret = mapscriptPINVOKE.classObj_getNextMetaDataKey(swigCPtr, lastkey);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int drawLegendIcon(mapObj map, layerObj layer, int width, int height, imageObj dstImage, int dstX, int dstY) {
-    int ret = mapscriptPINVOKE.classObj_drawLegendIcon(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), width, height, imageObj.getCPtr(dstImage), dstX, dstY);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj createLegendIcon(mapObj map, layerObj layer, int width, int height) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.classObj_createLegendIcon(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), width, height);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public labelObj getLabel(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.classObj_getLabel(swigCPtr, i);
-    labelObj ret = (cPtr == IntPtr.Zero) ? null : new labelObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int addLabel(labelObj label) {
-    int ret = mapscriptPINVOKE.classObj_addLabel(swigCPtr, labelObj.getCPtrAndSetReference(label, ThisOwn_false()));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public labelObj removeLabel(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.classObj_removeLabel(swigCPtr, index);
-    labelObj ret = (cPtr == IntPtr.Zero) ? null : new labelObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public styleObj getStyle(int i) {
-    IntPtr cPtr = mapscriptPINVOKE.classObj_getStyle(swigCPtr, i);
-    styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, true, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int insertStyle(styleObj style, int index) {
-    int ret = mapscriptPINVOKE.classObj_insertStyle(swigCPtr, styleObj.getCPtrAndSetReference(style, ThisOwn_false()), index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public styleObj removeStyle(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.classObj_removeStyle(swigCPtr, index);
-    styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveStyleUp(int index) {
-    int ret = mapscriptPINVOKE.classObj_moveStyleUp(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveStyleDown(int index) {
-    int ret = mapscriptPINVOKE.classObj_moveStyleDown(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/clusterObj.cs b/mapscript/csharp/clusterObj.cs
deleted file mode 100644
index 232b2cb..0000000
--- a/mapscript/csharp/clusterObj.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class clusterObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal clusterObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(clusterObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(clusterObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(clusterObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~clusterObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_clusterObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(clusterObj.getCPtr((clusterObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double maxdistance {
-    set {
-      mapscriptPINVOKE.clusterObj_maxdistance_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.clusterObj_maxdistance_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double buffer {
-    set {
-      mapscriptPINVOKE.clusterObj_buffer_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.clusterObj_buffer_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string region {
-    set {
-      mapscriptPINVOKE.clusterObj_region_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.clusterObj_region_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.clusterObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.clusterObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setGroup(string group) {
-    int ret = mapscriptPINVOKE.clusterObj_setGroup(swigCPtr, group);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getGroupString() {
-    string ret = mapscriptPINVOKE.clusterObj_getGroupString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setFilter(string filter) {
-    int ret = mapscriptPINVOKE.clusterObj_setFilter(swigCPtr, filter);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getFilterString() {
-    string ret = mapscriptPINVOKE.clusterObj_getFilterString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public clusterObj() : this(mapscriptPINVOKE.new_clusterObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/colorObj.cs b/mapscript/csharp/colorObj.cs
deleted file mode 100644
index f9af9ec..0000000
--- a/mapscript/csharp/colorObj.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class colorObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal colorObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(colorObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(colorObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(colorObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~colorObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_colorObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(colorObj.getCPtr((colorObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int red {
-    set {
-      mapscriptPINVOKE.colorObj_red_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.colorObj_red_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int green {
-    set {
-      mapscriptPINVOKE.colorObj_green_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.colorObj_green_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int blue {
-    set {
-      mapscriptPINVOKE.colorObj_blue_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.colorObj_blue_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int alpha {
-    set {
-      mapscriptPINVOKE.colorObj_alpha_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.colorObj_alpha_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj(int red, int green, int blue, int pen) : this(mapscriptPINVOKE.new_colorObj(red, green, blue, pen), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int setRGB(int red, int green, int blue) {
-    int ret = mapscriptPINVOKE.colorObj_setRGB(swigCPtr, red, green, blue);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setHex(string psHexColor) {
-    int ret = mapscriptPINVOKE.colorObj_setHex(swigCPtr, psHexColor);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string toHex() {
-    string ret = mapscriptPINVOKE.colorObj_toHex(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/debugLevel.cs b/mapscript/csharp/debugLevel.cs
deleted file mode 100644
index 69103d6..0000000
--- a/mapscript/csharp/debugLevel.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-public enum debugLevel {
-  MS_DEBUGLEVEL_ERRORSONLY = 0,
-  MS_DEBUGLEVEL_DEBUG = 1,
-  MS_DEBUGLEVEL_TUNING = 2,
-  MS_DEBUGLEVEL_V = 3,
-  MS_DEBUGLEVEL_VV = 4,
-  MS_DEBUGLEVEL_VVV = 5
-}
diff --git a/mapscript/csharp/errorObj.cs b/mapscript/csharp/errorObj.cs
deleted file mode 100644
index e07686b..0000000
--- a/mapscript/csharp/errorObj.cs
+++ /dev/null
@@ -1,144 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class errorObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal errorObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(errorObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(errorObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(errorObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~errorObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_errorObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(errorObj.getCPtr((errorObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int code {
-    set {
-      mapscriptPINVOKE.errorObj_code_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.errorObj_code_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string routine {
-    set {
-      mapscriptPINVOKE.errorObj_routine_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.errorObj_routine_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string message {
-    set {
-      mapscriptPINVOKE.errorObj_message_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.errorObj_message_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int isreported {
-    set {
-      mapscriptPINVOKE.errorObj_isreported_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.errorObj_isreported_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public errorObj() : this(mapscriptPINVOKE.new_errorObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public errorObj next() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.errorObj_next(swigCPtr);
-    errorObj ret = (cPtr == IntPtr.Zero) ? null : new errorObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/fontSetObj.cs b/mapscript/csharp/fontSetObj.cs
deleted file mode 100644
index d967183..0000000
--- a/mapscript/csharp/fontSetObj.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class fontSetObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal fontSetObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(fontSetObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(fontSetObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(fontSetObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~fontSetObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_fontSetObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(fontSetObj.getCPtr((fontSetObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string filename {
-    get {
-      string ret = mapscriptPINVOKE.fontSetObj_filename_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numfonts {
-    get {
-      int ret = mapscriptPINVOKE.fontSetObj_numfonts_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj fonts {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.fontSetObj_fonts_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public fontSetObj() : this(mapscriptPINVOKE.new_fontSetObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/hashTableObj.cs b/mapscript/csharp/hashTableObj.cs
deleted file mode 100644
index 8f84c86..0000000
--- a/mapscript/csharp/hashTableObj.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class hashTableObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal hashTableObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(hashTableObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(hashTableObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(hashTableObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~hashTableObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_hashTableObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(hashTableObj.getCPtr((hashTableObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numitems {
-    get {
-      int ret = mapscriptPINVOKE.hashTableObj_numitems_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj() : this(mapscriptPINVOKE.new_hashTableObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int set(string key, string value) {
-    int ret = mapscriptPINVOKE.hashTableObj_set(swigCPtr, key, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string get(string key, string default_value) {
-    string ret = mapscriptPINVOKE.hashTableObj_get(swigCPtr, key, default_value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int remove(string key) {
-    int ret = mapscriptPINVOKE.hashTableObj_remove(swigCPtr, key);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void clear() {
-    mapscriptPINVOKE.hashTableObj_clear(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public string nextKey(string prevkey) {
-    string ret = mapscriptPINVOKE.hashTableObj_nextKey(swigCPtr, prevkey);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/imageObj.cs b/mapscript/csharp/imageObj.cs
deleted file mode 100644
index e2d0e88..0000000
--- a/mapscript/csharp/imageObj.cs
+++ /dev/null
@@ -1,169 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class imageObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal imageObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(imageObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(imageObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(imageObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~imageObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_imageObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  private byte[] gdbuffer;
-  private void CreateByteArray(IntPtr data, int size)
-  {
-      gdbuffer = new byte[size];
-      Marshal.Copy(data, gdbuffer, 0, size);
-  }
-  
-  public byte[] getBytes()
-  {
-	getBytes(new mapscriptPINVOKE.SWIGByteArrayDelegate(this.CreateByteArray));
-	return gdbuffer;
-  }
-  
-  public void write(System.IO.Stream stream)
-  {
-	getBytes(new mapscriptPINVOKE.SWIGByteArrayDelegate(this.CreateByteArray));
-	stream.Write(gdbuffer, 0, gdbuffer.Length);
-  }
-
-  public int width {
-    get {
-      int ret = mapscriptPINVOKE.imageObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    get {
-      int ret = mapscriptPINVOKE.imageObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double resolution {
-    get {
-      double ret = mapscriptPINVOKE.imageObj_resolution_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double resolutionfactor {
-    get {
-      double ret = mapscriptPINVOKE.imageObj_resolutionfactor_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imagepath {
-    get {
-      string ret = mapscriptPINVOKE.imageObj_imagepath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imageurl {
-    get {
-      string ret = mapscriptPINVOKE.imageObj_imageurl_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public outputFormatObj format {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.imageObj_format_get(swigCPtr);
-      outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  private void getBytes(mapscriptPINVOKE.SWIGByteArrayDelegate callback) {
-    mapscriptPINVOKE.imageObj_getBytes(swigCPtr, callback);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public imageObj(int width, int height, outputFormatObj input_format, string file, double resolution, double defresolution) : this(mapscriptPINVOKE.new_imageObj(width, height, outputFormatObj.getCPtr(input_format), file, resolution, defresolution), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void save(string filename, mapObj map) {
-    mapscriptPINVOKE.imageObj_save(swigCPtr, filename, mapObj.getCPtr(map));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int getSize() {
-    int ret = mapscriptPINVOKE.imageObj_getSize(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/intarray.cs b/mapscript/csharp/intarray.cs
deleted file mode 100644
index e902d83..0000000
--- a/mapscript/csharp/intarray.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class intarray : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal intarray(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(intarray obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(intarray obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(intarray obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~intarray() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_intarray(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public intarray(int nelements) : this(mapscriptPINVOKE.new_intarray(nelements), true, null) {
-  }
-
-  public int getitem(int index) {
-    int ret = mapscriptPINVOKE.intarray_getitem(swigCPtr, index);
-    return ret;
-  }
-
-  public void setitem(int index, int value) {
-    mapscriptPINVOKE.intarray_setitem(swigCPtr, index, value);
-  }
-
-  public SWIGTYPE_p_int cast() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.intarray_cast(swigCPtr);
-    SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/labelCacheMemberObj.cs b/mapscript/csharp/labelCacheMemberObj.cs
deleted file mode 100644
index 740196a..0000000
--- a/mapscript/csharp/labelCacheMemberObj.cs
+++ /dev/null
@@ -1,212 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelCacheMemberObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelCacheMemberObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelCacheMemberObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelCacheMemberObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelCacheMemberObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelCacheMemberObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelCacheMemberObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelCacheMemberObj.getCPtr((labelCacheMemberObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double featuresize {
-    get {
-      double ret = mapscriptPINVOKE.labelCacheMemberObj_featuresize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public styleObj styles {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_styles_get(swigCPtr);
-      styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numstyles {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_numstyles_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelObj labels {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_labels_get(swigCPtr);
-      labelObj ret = (cPtr == IntPtr.Zero) ? null : new labelObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numlabels {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_numlabels_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int layerindex {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_layerindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int classindex {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_classindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int shapetype {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_shapetype_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public pointObj point {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_point_get(swigCPtr);
-      pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public shapeObj poly {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_poly_get(swigCPtr);
-      shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int markerid {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheMemberObj_markerid_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public lineObj leaderline {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_leaderline_get(swigCPtr);
-      lineObj ret = (cPtr == IntPtr.Zero) ? null : new lineObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj leaderbbox {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheMemberObj_leaderbbox_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelCacheMemberObj() : this(mapscriptPINVOKE.new_labelCacheMemberObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/labelCacheObj.cs b/mapscript/csharp/labelCacheObj.cs
deleted file mode 100644
index 5fb60a0..0000000
--- a/mapscript/csharp/labelCacheObj.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelCacheObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelCacheObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelCacheObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelCacheObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelCacheObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelCacheObj.getCPtr((labelCacheObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public labelCacheSlotObj slots {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheObj_slots_get(swigCPtr);
-      labelCacheSlotObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheSlotObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numlabels {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheObj_numlabels_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int gutter {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheObj_gutter_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public void freeCache() {
-    mapscriptPINVOKE.labelCacheObj_freeCache(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public labelCacheObj() : this(mapscriptPINVOKE.new_labelCacheObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/labelCacheSlotObj.cs b/mapscript/csharp/labelCacheSlotObj.cs
deleted file mode 100644
index 25b1285..0000000
--- a/mapscript/csharp/labelCacheSlotObj.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelCacheSlotObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelCacheSlotObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelCacheSlotObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelCacheSlotObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelCacheSlotObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelCacheSlotObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelCacheSlotObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelCacheSlotObj.getCPtr((labelCacheSlotObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public labelCacheMemberObj labels {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheSlotObj_labels_get(swigCPtr);
-      labelCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheMemberObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numlabels {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheSlotObj_numlabels_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int cachesize {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheSlotObj_cachesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public markerCacheMemberObj markers {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelCacheSlotObj_markers_get(swigCPtr);
-      markerCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new markerCacheMemberObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int nummarkers {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheSlotObj_nummarkers_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int markercachesize {
-    get {
-      int ret = mapscriptPINVOKE.labelCacheSlotObj_markercachesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelCacheSlotObj() : this(mapscriptPINVOKE.new_labelCacheSlotObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/labelLeaderObj.cs b/mapscript/csharp/labelLeaderObj.cs
deleted file mode 100644
index f3b9ce7..0000000
--- a/mapscript/csharp/labelLeaderObj.cs
+++ /dev/null
@@ -1,120 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelLeaderObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelLeaderObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelLeaderObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelLeaderObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelLeaderObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelLeaderObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelLeaderObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelLeaderObj.getCPtr((labelLeaderObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int maxdistance {
-    set {
-      mapscriptPINVOKE.labelLeaderObj_maxdistance_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelLeaderObj_maxdistance_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int gridstep {
-    set {
-      mapscriptPINVOKE.labelLeaderObj_gridstep_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelLeaderObj_gridstep_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numstyles {
-    get {
-      int ret = mapscriptPINVOKE.labelLeaderObj_numstyles_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelLeaderObj() : this(mapscriptPINVOKE.new_labelLeaderObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/labelObj.cs b/mapscript/csharp/labelObj.cs
deleted file mode 100644
index 0452cd0..0000000
--- a/mapscript/csharp/labelObj.cs
+++ /dev/null
@@ -1,675 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelObj.getCPtr((labelObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.labelObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string font {
-    set {
-      mapscriptPINVOKE.labelObj_font_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.labelObj_font_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public MS_FONT_TYPE type {
-    set {
-      mapscriptPINVOKE.labelObj_type_set(swigCPtr, (int)value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      MS_FONT_TYPE ret = (MS_FONT_TYPE)mapscriptPINVOKE.labelObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.labelObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.labelObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int outlinewidth {
-    set {
-      mapscriptPINVOKE.labelObj_outlinewidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_outlinewidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj shadowcolor {
-    set {
-      mapscriptPINVOKE.labelObj_shadowcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_shadowcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int shadowsizex {
-    set {
-      mapscriptPINVOKE.labelObj_shadowsizex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_shadowsizex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int shadowsizey {
-    set {
-      mapscriptPINVOKE.labelObj_shadowsizey_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_shadowsizey_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double size {
-    set {
-      mapscriptPINVOKE.labelObj_size_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_size_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minsize {
-    set {
-      mapscriptPINVOKE.labelObj_minsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_minsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxsize {
-    set {
-      mapscriptPINVOKE.labelObj_maxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_maxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int position {
-    set {
-      mapscriptPINVOKE.labelObj_position_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_position_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int offsetx {
-    set {
-      mapscriptPINVOKE.labelObj_offsetx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_offsetx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int offsety {
-    set {
-      mapscriptPINVOKE.labelObj_offsety_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_offsety_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double angle {
-    set {
-      mapscriptPINVOKE.labelObj_angle_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_angle_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int anglemode {
-    set {
-      mapscriptPINVOKE.labelObj_anglemode_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_anglemode_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int buffer {
-    set {
-      mapscriptPINVOKE.labelObj_buffer_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_buffer_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int antialias {
-    set {
-      mapscriptPINVOKE.labelObj_antialias_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_antialias_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int align {
-    set {
-      mapscriptPINVOKE.labelObj_align_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_align_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public char wrap {
-    set {
-      mapscriptPINVOKE.labelObj_wrap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      char ret = mapscriptPINVOKE.labelObj_wrap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxlength {
-    set {
-      mapscriptPINVOKE.labelObj_maxlength_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_maxlength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int minlength {
-    set {
-      mapscriptPINVOKE.labelObj_minlength_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_minlength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double space_size_10 {
-    set {
-      mapscriptPINVOKE.labelObj_space_size_10_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_space_size_10_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int minfeaturesize {
-    set {
-      mapscriptPINVOKE.labelObj_minfeaturesize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_minfeaturesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int autominfeaturesize {
-    set {
-      mapscriptPINVOKE.labelObj_autominfeaturesize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_autominfeaturesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minscaledenom {
-    set {
-      mapscriptPINVOKE.labelObj_minscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_minscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscaledenom {
-    set {
-      mapscriptPINVOKE.labelObj_maxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_maxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int mindistance {
-    set {
-      mapscriptPINVOKE.labelObj_mindistance_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_mindistance_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int repeatdistance {
-    set {
-      mapscriptPINVOKE.labelObj_repeatdistance_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_repeatdistance_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxoverlapangle {
-    set {
-      mapscriptPINVOKE.labelObj_maxoverlapangle_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelObj_maxoverlapangle_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int partials {
-    set {
-      mapscriptPINVOKE.labelObj_partials_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_partials_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int force {
-    set {
-      mapscriptPINVOKE.labelObj_force_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_force_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string encoding {
-    set {
-      mapscriptPINVOKE.labelObj_encoding_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.labelObj_encoding_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int priority {
-    set {
-      mapscriptPINVOKE.labelObj_priority_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_priority_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.labelObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numstyles {
-    set {
-      mapscriptPINVOKE.labelObj_numstyles_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelObj_numstyles_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string annotext {
-    set {
-      mapscriptPINVOKE.labelObj_annotext_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.labelObj_annotext_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public pointObj annopoint {
-    set {
-      mapscriptPINVOKE.labelObj_annopoint_set(swigCPtr, pointObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_annopoint_get(swigCPtr);
-      pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public shapeObj annopoly {
-    set {
-      mapscriptPINVOKE.labelObj_annopoly_set(swigCPtr, shapeObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_annopoly_get(swigCPtr);
-      shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelLeaderObj leader {
-    set {
-      mapscriptPINVOKE.labelObj_leader_set(swigCPtr, labelLeaderObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelObj_leader_get(swigCPtr);
-      labelLeaderObj ret = (cPtr == IntPtr.Zero) ? null : new labelLeaderObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelObj() : this(mapscriptPINVOKE.new_labelObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.labelObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.labelObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int removeBinding(int binding) {
-    int ret = mapscriptPINVOKE.labelObj_removeBinding(swigCPtr, binding);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getBinding(int binding) {
-    string ret = mapscriptPINVOKE.labelObj_getBinding(swigCPtr, binding);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setBinding(int binding, string item) {
-    int ret = mapscriptPINVOKE.labelObj_setBinding(swigCPtr, binding, item);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setExpression(string expression) {
-    int ret = mapscriptPINVOKE.labelObj_setExpression(swigCPtr, expression);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getExpressionString() {
-    string ret = mapscriptPINVOKE.labelObj_getExpressionString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setText(string text) {
-    int ret = mapscriptPINVOKE.labelObj_setText(swigCPtr, text);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getTextString() {
-    string ret = mapscriptPINVOKE.labelObj_getTextString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public styleObj getStyle(int i) {
-    IntPtr cPtr = mapscriptPINVOKE.labelObj_getStyle(swigCPtr, i);
-    styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, true, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int insertStyle(styleObj style, int index) {
-    int ret = mapscriptPINVOKE.labelObj_insertStyle(swigCPtr, styleObj.getCPtrAndSetReference(style, ThisOwn_false()), index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public styleObj removeStyle(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.labelObj_removeStyle(swigCPtr, index);
-    styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveStyleUp(int index) {
-    int ret = mapscriptPINVOKE.labelObj_moveStyleUp(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveStyleDown(int index) {
-    int ret = mapscriptPINVOKE.labelObj_moveStyleDown(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/labelStyleObj.cs b/mapscript/csharp/labelStyleObj.cs
deleted file mode 100644
index f89c6b2..0000000
--- a/mapscript/csharp/labelStyleObj.cs
+++ /dev/null
@@ -1,190 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class labelStyleObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal labelStyleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(labelStyleObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(labelStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(labelStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~labelStyleObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_labelStyleObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(labelStyleObj.getCPtr((labelStyleObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public SWIGTYPE_p_p_char fonts {
-    set {
-      mapscriptPINVOKE.labelStyleObj_fonts_set(swigCPtr, SWIGTYPE_p_p_char.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelStyleObj_fonts_get(swigCPtr);
-      SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numfonts {
-    set {
-      mapscriptPINVOKE.labelStyleObj_numfonts_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelStyleObj_numfonts_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double size {
-    set {
-      mapscriptPINVOKE.labelStyleObj_size_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelStyleObj_size_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double rotation {
-    set {
-      mapscriptPINVOKE.labelStyleObj_rotation_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelStyleObj_rotation_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.labelStyleObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelStyleObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double outlinewidth {
-    set {
-      mapscriptPINVOKE.labelStyleObj_outlinewidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.labelStyleObj_outlinewidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.labelStyleObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.labelStyleObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int antialias {
-    set {
-      mapscriptPINVOKE.labelStyleObj_antialias_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.labelStyleObj_antialias_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelStyleObj() : this(mapscriptPINVOKE.new_labelStyleObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/layerObj.cs b/mapscript/csharp/layerObj.cs
deleted file mode 100644
index f0e1161..0000000
--- a/mapscript/csharp/layerObj.cs
+++ /dev/null
@@ -1,1107 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class layerObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal layerObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(layerObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(layerObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(layerObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~layerObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_layerObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(layerObj.getCPtr((layerObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string classitem {
-    set {
-      mapscriptPINVOKE.layerObj_classitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_classitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numclasses {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_numclasses_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxclasses {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_maxclasses_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int index {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_index_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public mapObj map {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_map_get(swigCPtr);
-      mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string header {
-    set {
-      mapscriptPINVOKE.layerObj_header_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_header_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string footer {
-    set {
-      mapscriptPINVOKE.layerObj_footer_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_footer_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string template {
-    set {
-      mapscriptPINVOKE.layerObj_template_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_template_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.layerObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string group {
-    set {
-      mapscriptPINVOKE.layerObj_group_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_group_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.layerObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string data {
-    set {
-      mapscriptPINVOKE.layerObj_data_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_data_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public MS_LAYER_TYPE type {
-    set {
-      mapscriptPINVOKE.layerObj_type_set(swigCPtr, (int)value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      MS_LAYER_TYPE ret = (MS_LAYER_TYPE)mapscriptPINVOKE.layerObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double tolerance {
-    set {
-      mapscriptPINVOKE.layerObj_tolerance_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_tolerance_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int toleranceunits {
-    set {
-      mapscriptPINVOKE.layerObj_toleranceunits_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_toleranceunits_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double symbolscaledenom {
-    set {
-      mapscriptPINVOKE.layerObj_symbolscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_symbolscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minscaledenom {
-    set {
-      mapscriptPINVOKE.layerObj_minscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_minscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscaledenom {
-    set {
-      mapscriptPINVOKE.layerObj_maxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_maxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int minfeaturesize {
-    set {
-      mapscriptPINVOKE.layerObj_minfeaturesize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_minfeaturesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double labelminscaledenom {
-    set {
-      mapscriptPINVOKE.layerObj_labelminscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_labelminscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double labelmaxscaledenom {
-    set {
-      mapscriptPINVOKE.layerObj_labelmaxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_labelmaxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double mingeowidth {
-    set {
-      mapscriptPINVOKE.layerObj_mingeowidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_mingeowidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxgeowidth {
-    set {
-      mapscriptPINVOKE.layerObj_maxgeowidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.layerObj_maxgeowidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int sizeunits {
-    set {
-      mapscriptPINVOKE.layerObj_sizeunits_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_sizeunits_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxfeatures {
-    set {
-      mapscriptPINVOKE.layerObj_maxfeatures_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_maxfeatures_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int startindex {
-    set {
-      mapscriptPINVOKE.layerObj_startindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_startindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj offsite {
-    set {
-      mapscriptPINVOKE.layerObj_offsite_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_offsite_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int transform {
-    set {
-      mapscriptPINVOKE.layerObj_transform_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_transform_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int labelcache {
-    set {
-      mapscriptPINVOKE.layerObj_labelcache_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_labelcache_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int postlabelcache {
-    set {
-      mapscriptPINVOKE.layerObj_postlabelcache_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_postlabelcache_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string labelitem {
-    set {
-      mapscriptPINVOKE.layerObj_labelitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_labelitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string tileitem {
-    set {
-      mapscriptPINVOKE.layerObj_tileitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_tileitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string tileindex {
-    set {
-      mapscriptPINVOKE.layerObj_tileindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_tileindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string tilesrs {
-    set {
-      mapscriptPINVOKE.layerObj_tilesrs_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_tilesrs_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int units {
-    set {
-      mapscriptPINVOKE.layerObj_units_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_units_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string connection {
-    set {
-      mapscriptPINVOKE.layerObj_connection_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_connection_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string plugin_library {
-    set {
-      mapscriptPINVOKE.layerObj_plugin_library_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_plugin_library_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string plugin_library_original {
-    set {
-      mapscriptPINVOKE.layerObj_plugin_library_original_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_plugin_library_original_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public MS_CONNECTION_TYPE connectiontype {
-    set {
-      mapscriptPINVOKE.layerObj_connectiontype_set(swigCPtr, (int)value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      MS_CONNECTION_TYPE ret = (MS_CONNECTION_TYPE)mapscriptPINVOKE.layerObj_connectiontype_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numitems {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_numitems_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string bandsitem {
-    set {
-      mapscriptPINVOKE.layerObj_bandsitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_bandsitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string filteritem {
-    set {
-      mapscriptPINVOKE.layerObj_filteritem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_filteritem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string styleitem {
-    set {
-      mapscriptPINVOKE.layerObj_styleitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_styleitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string requires {
-    set {
-      mapscriptPINVOKE.layerObj_requires_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_requires_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string labelrequires {
-    set {
-      mapscriptPINVOKE.layerObj_labelrequires_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_labelrequires_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj metadata {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_metadata_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj validation {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_validation_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj bindvals {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_bindvals_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public clusterObj cluster {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_cluster_get(swigCPtr);
-      clusterObj ret = (cPtr == IntPtr.Zero) ? null : new clusterObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int opacity {
-    set {
-      mapscriptPINVOKE.layerObj_opacity_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_opacity_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int dump {
-    set {
-      mapscriptPINVOKE.layerObj_dump_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_dump_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int debug {
-    set {
-      mapscriptPINVOKE.layerObj_debug_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.layerObj_debug_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj extent {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.layerObj_extent_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numprocessing {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_numprocessing_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numjoins {
-    get {
-      int ret = mapscriptPINVOKE.layerObj_numjoins_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string classgroup {
-    set {
-      mapscriptPINVOKE.layerObj_classgroup_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_classgroup_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string mask {
-    set {
-      mapscriptPINVOKE.layerObj_mask_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.layerObj_mask_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public layerObj(mapObj map) : this(mapscriptPINVOKE.new_layerObj(mapObj.getCPtr(map)), true, map) {
-  
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-}
-
-  public layerObj clone() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_clone(swigCPtr);
-    layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.layerObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.layerObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int insertClass(classObj classobj, int index) {
-    int ret = mapscriptPINVOKE.layerObj_insertClass(swigCPtr, classObj.getCPtrAndSetReference(classobj, ThisOwn_false()), index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public classObj removeClass(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_removeClass(swigCPtr, index);
-    classObj ret = (cPtr == IntPtr.Zero) ? null : new classObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int open() {
-    int ret = mapscriptPINVOKE.layerObj_open(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int whichShapes(rectObj rect) {
-    int ret = mapscriptPINVOKE.layerObj_whichShapes(swigCPtr, rectObj.getCPtr(rect));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj nextShape() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_nextShape(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void close() {
-    mapscriptPINVOKE.layerObj_close(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public shapeObj getShape(resultObj record) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getShape(swigCPtr, resultObj.getCPtr(record));
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getNumResults() {
-    int ret = mapscriptPINVOKE.layerObj_getNumResults(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public rectObj getResultsBounds() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getResultsBounds(swigCPtr);
-    rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public resultObj getResult(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getResult(swigCPtr, i);
-    resultObj ret = (cPtr == IntPtr.Zero) ? null : new resultObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public classObj getClass(int i) {
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getClass(swigCPtr, i);
-    classObj ret = (cPtr == IntPtr.Zero) ? null : new classObj(cPtr, true, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getItem(int i) {
-    string ret = mapscriptPINVOKE.layerObj_getItem(swigCPtr, i);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setItems(string[] items, int numitems) {
-    int ret = mapscriptPINVOKE.layerObj_setItems(swigCPtr, new mapscriptPINVOKE.StringArrayMarshal(items)._ar, numitems);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int draw(mapObj map, imageObj image) {
-    int ret = mapscriptPINVOKE.layerObj_draw(swigCPtr, mapObj.getCPtr(map), imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int drawQuery(mapObj map, imageObj image) {
-    int ret = mapscriptPINVOKE.layerObj_drawQuery(swigCPtr, mapObj.getCPtr(map), imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByFilter(mapObj map, string arg1) {
-    int ret = mapscriptPINVOKE.layerObj_queryByFilter(swigCPtr, mapObj.getCPtr(map), arg1);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByAttributes(mapObj map, string qitem, string qstring, int mode) {
-    int ret = mapscriptPINVOKE.layerObj_queryByAttributes(swigCPtr, mapObj.getCPtr(map), qitem, qstring, mode);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByPoint(mapObj map, pointObj point, int mode, double buffer) {
-    int ret = mapscriptPINVOKE.layerObj_queryByPoint(swigCPtr, mapObj.getCPtr(map), pointObj.getCPtr(point), mode, buffer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByRect(mapObj map, rectObj rect) {
-    int ret = mapscriptPINVOKE.layerObj_queryByRect(swigCPtr, mapObj.getCPtr(map), rectObj.getCPtr(rect));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByFeatures(mapObj map, int slayer) {
-    int ret = mapscriptPINVOKE.layerObj_queryByFeatures(swigCPtr, mapObj.getCPtr(map), slayer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByShape(mapObj map, shapeObj shape) {
-    int ret = mapscriptPINVOKE.layerObj_queryByShape(swigCPtr, mapObj.getCPtr(map), shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByIndex(mapObj map, int tileindex, int shapeindex, int bAddToQuery) {
-    int ret = mapscriptPINVOKE.layerObj_queryByIndex(swigCPtr, mapObj.getCPtr(map), tileindex, shapeindex, bAddToQuery);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public resultCacheObj getResults() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getResults(swigCPtr);
-    resultCacheObj ret = (cPtr == IntPtr.Zero) ? null : new resultCacheObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setFilter(string filter) {
-    int ret = mapscriptPINVOKE.layerObj_setFilter(swigCPtr, filter);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getFilterString() {
-    string ret = mapscriptPINVOKE.layerObj_getFilterString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setWKTProjection(string wkt) {
-    int ret = mapscriptPINVOKE.layerObj_setWKTProjection(swigCPtr, wkt);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getProjection() {
-    string ret = mapscriptPINVOKE.layerObj_getProjection(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setProjection(string proj4) {
-    int ret = mapscriptPINVOKE.layerObj_setProjection(swigCPtr, proj4);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int addFeature(shapeObj shape) {
-    int ret = mapscriptPINVOKE.layerObj_addFeature(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getNumFeatures() {
-    int ret = mapscriptPINVOKE.layerObj_getNumFeatures(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public rectObj getExtent() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.layerObj_getExtent(swigCPtr);
-    rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setExtent(double minx, double miny, double maxx, double maxy) {
-    int ret = mapscriptPINVOKE.layerObj_setExtent(swigCPtr, minx, miny, maxx, maxy);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getMetaData(string name) {
-    string ret = mapscriptPINVOKE.layerObj_getMetaData(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setMetaData(string name, string value) {
-    int ret = mapscriptPINVOKE.layerObj_setMetaData(swigCPtr, name, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int removeMetaData(string name) {
-    int ret = mapscriptPINVOKE.layerObj_removeMetaData(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getFirstMetaDataKey() {
-    string ret = mapscriptPINVOKE.layerObj_getFirstMetaDataKey(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getNextMetaDataKey(string lastkey) {
-    string ret = mapscriptPINVOKE.layerObj_getNextMetaDataKey(swigCPtr, lastkey);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getWMSFeatureInfoURL(mapObj map, int click_x, int click_y, int feature_count, string info_format) {
-    string ret = mapscriptPINVOKE.layerObj_getWMSFeatureInfoURL(swigCPtr, mapObj.getCPtr(map), click_x, click_y, feature_count, info_format);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string executeWFSGetFeature(layerObj layer) {
-    string ret = mapscriptPINVOKE.layerObj_executeWFSGetFeature(swigCPtr, layerObj.getCPtr(layer));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int applySLD(string sld, string stylelayer) {
-    int ret = mapscriptPINVOKE.layerObj_applySLD(swigCPtr, sld, stylelayer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int applySLDURL(string sld, string stylelayer) {
-    int ret = mapscriptPINVOKE.layerObj_applySLDURL(swigCPtr, sld, stylelayer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string generateSLD() {
-    string ret = mapscriptPINVOKE.layerObj_generateSLD(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int isVisible() {
-    int ret = mapscriptPINVOKE.layerObj_isVisible(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveClassUp(int index) {
-    int ret = mapscriptPINVOKE.layerObj_moveClassUp(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveClassDown(int index) {
-    int ret = mapscriptPINVOKE.layerObj_moveClassDown(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setProcessingKey(string key, string value) {
-    mapscriptPINVOKE.layerObj_setProcessingKey(swigCPtr, key, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void setProcessing(string directive) {
-    mapscriptPINVOKE.layerObj_setProcessing(swigCPtr, directive);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void addProcessing(string directive) {
-    mapscriptPINVOKE.layerObj_addProcessing(swigCPtr, directive);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public string getProcessing(int index) {
-    string ret = mapscriptPINVOKE.layerObj_getProcessing(swigCPtr, index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getProcessingKey(string key) {
-    string ret = mapscriptPINVOKE.layerObj_getProcessingKey(swigCPtr, key);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int clearProcessing() {
-    int ret = mapscriptPINVOKE.layerObj_clearProcessing(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setConnectionType(int connectiontype, string library_str) {
-    int ret = mapscriptPINVOKE.layerObj_setConnectionType(swigCPtr, connectiontype, library_str);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getClassIndex(mapObj map, shapeObj shape, SWIGTYPE_p_int classgroup, int numclasses) {
-    int ret = mapscriptPINVOKE.layerObj_getClassIndex(swigCPtr, mapObj.getCPtr(map), shapeObj.getCPtr(shape), SWIGTYPE_p_int.getCPtr(classgroup), numclasses);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getGeomTransform() {
-    string ret = mapscriptPINVOKE.layerObj_getGeomTransform(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setGeomTransform(string transform) {
-    mapscriptPINVOKE.layerObj_setGeomTransform(swigCPtr, transform);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/legendObj.cs b/mapscript/csharp/legendObj.cs
deleted file mode 100644
index e2d49d4..0000000
--- a/mapscript/csharp/legendObj.cs
+++ /dev/null
@@ -1,267 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class legendObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal legendObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(legendObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(legendObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(legendObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~legendObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_legendObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(legendObj.getCPtr((legendObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public colorObj imagecolor {
-    set {
-      mapscriptPINVOKE.legendObj_imagecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.legendObj_imagecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelObj label {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE */
-    get {
-      labelObj ret = new labelObj(mapscriptPINVOKE.legendObj_label_get(swigCPtr), false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int keysizex {
-    set {
-      mapscriptPINVOKE.legendObj_keysizex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_keysizex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int keysizey {
-    set {
-      mapscriptPINVOKE.legendObj_keysizey_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_keysizey_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int keyspacingx {
-    set {
-      mapscriptPINVOKE.legendObj_keyspacingx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_keyspacingx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int keyspacingy {
-    set {
-      mapscriptPINVOKE.legendObj_keyspacingy_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_keyspacingy_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.legendObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.legendObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.legendObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.legendObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.legendObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int position {
-    set {
-      mapscriptPINVOKE.legendObj_position_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_position_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int postlabelcache {
-    set {
-      mapscriptPINVOKE.legendObj_postlabelcache_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.legendObj_postlabelcache_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string template {
-    set {
-      mapscriptPINVOKE.legendObj_template_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.legendObj_template_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public mapObj map {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.legendObj_map_get(swigCPtr);
-      mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.legendObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.legendObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public legendObj() : this(mapscriptPINVOKE.new_legendObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/lineObj.cs b/mapscript/csharp/lineObj.cs
deleted file mode 100644
index 6e90a04..0000000
--- a/mapscript/csharp/lineObj.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class lineObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal lineObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(lineObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(lineObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(lineObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~lineObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_lineObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(lineObj.getCPtr((lineObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numpoints {
-    get {
-      int ret = mapscriptPINVOKE.lineObj_numpoints_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public lineObj() : this(mapscriptPINVOKE.new_lineObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int project(projectionObj projin, projectionObj projout) {
-    int ret = mapscriptPINVOKE.lineObj_project(swigCPtr, projectionObj.getCPtr(projin), projectionObj.getCPtr(projout));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public pointObj get(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.lineObj_get(swigCPtr, i);
-    pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int add(pointObj p) {
-    int ret = mapscriptPINVOKE.lineObj_add(swigCPtr, pointObj.getCPtr(p));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int set(int i, pointObj p) {
-    int ret = mapscriptPINVOKE.lineObj_set(swigCPtr, i, pointObj.getCPtr(p));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/mapObj.cs b/mapscript/csharp/mapObj.cs
deleted file mode 100644
index e84ce21..0000000
--- a/mapscript/csharp/mapObj.cs
+++ /dev/null
@@ -1,954 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class mapObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal mapObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(mapObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(mapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(mapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~mapObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_mapObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public string processTemplate(int bGenerateImages, string[] names, string[] values)
-  {
-	if (names.Length != values.Length)
-	    throw new ArgumentException("Invalid array length specified!");
-	return processTemplate(bGenerateImages, names, values, values.Length);
-  }
-  
-  public string processLegendTemplate(string[] names, string[] values)
-  {
-	if (names.Length != values.Length)
-	    throw new ArgumentException("Invalid array length specified!");
-	return processLegendTemplate(names, values, values.Length);
-  }
-  
-  public string processQueryTemplate(string[] names, string[] values)
-  {
-	if (names.Length != values.Length)
-	    throw new ArgumentException("Invalid array length specified!");
-	return processQueryTemplate(names, values, values.Length);
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.mapObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.mapObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.mapObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.mapObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.mapObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxsize {
-    set {
-      mapscriptPINVOKE.mapObj_maxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_maxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.mapObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numlayers {
-    get {
-      int ret = mapscriptPINVOKE.mapObj_numlayers_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxlayers {
-    get {
-      int ret = mapscriptPINVOKE.mapObj_maxlayers_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public symbolSetObj symbolset {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_symbolset_get(swigCPtr);
-      symbolSetObj ret = (cPtr == IntPtr.Zero) ? null : new symbolSetObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public fontSetObj fontset {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_fontset_get(swigCPtr);
-      fontSetObj ret = (cPtr == IntPtr.Zero) ? null : new fontSetObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelCacheObj labelcache {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_labelcache_get(swigCPtr);
-      labelCacheObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int transparent {
-    set {
-      mapscriptPINVOKE.mapObj_transparent_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_transparent_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int interlace {
-    set {
-      mapscriptPINVOKE.mapObj_interlace_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_interlace_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int imagequality {
-    set {
-      mapscriptPINVOKE.mapObj_imagequality_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_imagequality_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj extent {
-    set {
-      mapscriptPINVOKE.mapObj_extent_set(swigCPtr, rectObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_extent_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double cellsize {
-    set {
-      mapscriptPINVOKE.mapObj_cellsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.mapObj_cellsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public MS_UNITS units {
-    set {
-      mapscriptPINVOKE.mapObj_units_set(swigCPtr, (int)value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      MS_UNITS ret = (MS_UNITS)mapscriptPINVOKE.mapObj_units_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double scaledenom {
-    set {
-      mapscriptPINVOKE.mapObj_scaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.mapObj_scaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double resolution {
-    set {
-      mapscriptPINVOKE.mapObj_resolution_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.mapObj_resolution_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double defresolution {
-    set {
-      mapscriptPINVOKE.mapObj_defresolution_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.mapObj_defresolution_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string shapepath {
-    set {
-      mapscriptPINVOKE.mapObj_shapepath_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.mapObj_shapepath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string mappath {
-    set {
-      mapscriptPINVOKE.mapObj_mappath_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.mapObj_mappath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj imagecolor {
-    set {
-      mapscriptPINVOKE.mapObj_imagecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_imagecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numoutputformats {
-    get {
-      int ret = mapscriptPINVOKE.mapObj_numoutputformats_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public outputFormatObj outputformat {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_outputformat_get(swigCPtr);
-      outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imagetype {
-    get {
-      string ret = mapscriptPINVOKE.mapObj_imagetype_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public referenceMapObj reference {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_reference_get(swigCPtr);
-      referenceMapObj ret = (cPtr == IntPtr.Zero) ? null : new referenceMapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public scalebarObj scalebar {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_scalebar_get(swigCPtr);
-      scalebarObj ret = (cPtr == IntPtr.Zero) ? null : new scalebarObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public legendObj legend {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_legend_get(swigCPtr);
-      legendObj ret = (cPtr == IntPtr.Zero) ? null : new legendObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public queryMapObj querymap {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_querymap_get(swigCPtr);
-      queryMapObj ret = (cPtr == IntPtr.Zero) ? null : new queryMapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public webObj web {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_web_get(swigCPtr);
-      webObj ret = (cPtr == IntPtr.Zero) ? null : new webObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_int layerorder {
-    set {
-      mapscriptPINVOKE.mapObj_layerorder_set(swigCPtr, SWIGTYPE_p_int.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_layerorder_get(swigCPtr);
-      SWIGTYPE_p_int ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int debug {
-    set {
-      mapscriptPINVOKE.mapObj_debug_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.mapObj_debug_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string datapattern {
-    set {
-      mapscriptPINVOKE.mapObj_datapattern_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.mapObj_datapattern_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string templatepattern {
-    set {
-      mapscriptPINVOKE.mapObj_templatepattern_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.mapObj_templatepattern_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj configoptions {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.mapObj_configoptions_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public mapObj(string filename) : this(mapscriptPINVOKE.new_mapObj(filename), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public mapObj clone() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_clone(swigCPtr);
-    mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int insertLayer(layerObj layer, int index) {
-    int ret = mapscriptPINVOKE.mapObj_insertLayer(swigCPtr, layerObj.getCPtrAndSetReference(layer, ThisOwn_false()), index);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public layerObj removeLayer(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_removeLayer(swigCPtr, index);
-    layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setExtent(double minx, double miny, double maxx, double maxy) {
-    int ret = mapscriptPINVOKE.mapObj_setExtent(swigCPtr, minx, miny, maxx, maxy);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int offsetExtent(double x, double y) {
-    int ret = mapscriptPINVOKE.mapObj_offsetExtent(swigCPtr, x, y);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int scaleExtent(double zoomfactor, double minscaledenom, double maxscaledenom) {
-    int ret = mapscriptPINVOKE.mapObj_scaleExtent(swigCPtr, zoomfactor, minscaledenom, maxscaledenom);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setCenter(pointObj center) {
-    int ret = mapscriptPINVOKE.mapObj_setCenter(swigCPtr, pointObj.getCPtr(center));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setSize(int width, int height) {
-    int ret = mapscriptPINVOKE.mapObj_setSize(swigCPtr, width, height);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setRotation(double rotation_angle) {
-    int ret = mapscriptPINVOKE.mapObj_setRotation(swigCPtr, rotation_angle);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public layerObj getLayer(int i) {
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayer(swigCPtr, i);
-    layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public layerObj getLayerByName(string name) {
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayerByName(swigCPtr, name);
-    layerObj ret = (cPtr == IntPtr.Zero) ? null : new layerObj(cPtr, true, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getSymbolByName(string name) {
-    int ret = mapscriptPINVOKE.mapObj_getSymbolByName(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void prepareQuery() {
-    mapscriptPINVOKE.mapObj_prepareQuery(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public imageObj prepareImage() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_prepareImage(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setImageType(string imagetype) {
-    mapscriptPINVOKE.mapObj_setImageType(swigCPtr, imagetype);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void selectOutputFormat(string imagetype) {
-    mapscriptPINVOKE.mapObj_selectOutputFormat(swigCPtr, imagetype);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public outputFormatObj getOutputFormat(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getOutputFormat(swigCPtr, i);
-    outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setOutputFormat(outputFormatObj format) {
-    mapscriptPINVOKE.mapObj_setOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public imageObj draw() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_draw(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj drawQuery() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_drawQuery(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj drawLegend() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_drawLegend(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj drawScalebar() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_drawScalebar(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj drawReferenceMap() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_drawReferenceMap(swigCPtr);
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int embedScalebar(imageObj image) {
-    int ret = mapscriptPINVOKE.mapObj_embedScalebar(swigCPtr, imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int embedLegend(imageObj image) {
-    int ret = mapscriptPINVOKE.mapObj_embedLegend(swigCPtr, imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int drawLabelCache(imageObj image) {
-    int ret = mapscriptPINVOKE.mapObj_drawLabelCache(swigCPtr, imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public labelCacheMemberObj getLabel(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getLabel(swigCPtr, i);
-    labelCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheMemberObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public labelCacheMemberObj nextLabel() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_nextLabel(swigCPtr);
-    labelCacheMemberObj ret = (cPtr == IntPtr.Zero) ? null : new labelCacheMemberObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByFilter(string arg0) {
-    int ret = mapscriptPINVOKE.mapObj_queryByFilter(swigCPtr, arg0);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByPoint(pointObj point, int mode, double buffer) {
-    int ret = mapscriptPINVOKE.mapObj_queryByPoint(swigCPtr, pointObj.getCPtr(point), mode, buffer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByRect(rectObj rect) {
-    int ret = mapscriptPINVOKE.mapObj_queryByRect(swigCPtr, rectObj.getCPtr(rect));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByFeatures(int slayer) {
-    int ret = mapscriptPINVOKE.mapObj_queryByFeatures(swigCPtr, slayer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int queryByShape(shapeObj shape) {
-    int ret = mapscriptPINVOKE.mapObj_queryByShape(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setWKTProjection(string wkt) {
-    int ret = mapscriptPINVOKE.mapObj_setWKTProjection(swigCPtr, wkt);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getProjection() {
-    string ret = mapscriptPINVOKE.mapObj_getProjection(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setProjection(string proj4) {
-    int ret = mapscriptPINVOKE.mapObj_setProjection(swigCPtr, proj4);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int save(string filename) {
-    int ret = mapscriptPINVOKE.mapObj_save(swigCPtr, filename);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int saveQuery(string filename, int results) {
-    int ret = mapscriptPINVOKE.mapObj_saveQuery(swigCPtr, filename, results);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int loadQuery(string filename) {
-    int ret = mapscriptPINVOKE.mapObj_loadQuery(swigCPtr, filename);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void freeQuery(int qlayer) {
-    mapscriptPINVOKE.mapObj_freeQuery(swigCPtr, qlayer);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int saveQueryAsGML(string filename, string ns) {
-    int ret = mapscriptPINVOKE.mapObj_saveQueryAsGML(swigCPtr, filename, ns);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getMetaData(string name) {
-    string ret = mapscriptPINVOKE.mapObj_getMetaData(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setMetaData(string name, string value) {
-    int ret = mapscriptPINVOKE.mapObj_setMetaData(swigCPtr, name, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int removeMetaData(string name) {
-    int ret = mapscriptPINVOKE.mapObj_removeMetaData(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getFirstMetaDataKey() {
-    string ret = mapscriptPINVOKE.mapObj_getFirstMetaDataKey(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getNextMetaDataKey(string lastkey) {
-    string ret = mapscriptPINVOKE.mapObj_getNextMetaDataKey(swigCPtr, lastkey);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setSymbolSet(string szFileName) {
-    int ret = mapscriptPINVOKE.mapObj_setSymbolSet(swigCPtr, szFileName);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getNumSymbols() {
-    int ret = mapscriptPINVOKE.mapObj_getNumSymbols(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setFontSet(string filename) {
-    int ret = mapscriptPINVOKE.mapObj_setFontSet(swigCPtr, filename);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int saveMapContext(string szFileName) {
-    int ret = mapscriptPINVOKE.mapObj_saveMapContext(swigCPtr, szFileName);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int loadMapContext(string szFileName, int useUniqueNames) {
-    int ret = mapscriptPINVOKE.mapObj_loadMapContext(swigCPtr, szFileName, useUniqueNames);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveLayerUp(int layerindex) {
-    int ret = mapscriptPINVOKE.mapObj_moveLayerUp(swigCPtr, layerindex);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int moveLayerDown(int layerindex) {
-    int ret = mapscriptPINVOKE.mapObj_moveLayerDown(swigCPtr, layerindex);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public intarray getLayersDrawingOrder() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getLayersDrawingOrder(swigCPtr);
-    intarray ret = (cPtr == IntPtr.Zero) ? null : new intarray(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setLayersDrawingOrder(SWIGTYPE_p_int panIndexes) {
-    int ret = mapscriptPINVOKE.mapObj_setLayersDrawingOrder(swigCPtr, SWIGTYPE_p_int.getCPtr(panIndexes));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setConfigOption(string key, string value) {
-    mapscriptPINVOKE.mapObj_setConfigOption(swigCPtr, key, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public string getConfigOption(string key) {
-    string ret = mapscriptPINVOKE.mapObj_getConfigOption(swigCPtr, key);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void applyConfigOptions() {
-    mapscriptPINVOKE.mapObj_applyConfigOptions(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int applySLD(string sld) {
-    int ret = mapscriptPINVOKE.mapObj_applySLD(swigCPtr, sld);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int applySLDURL(string sld) {
-    int ret = mapscriptPINVOKE.mapObj_applySLDURL(swigCPtr, sld);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string generateSLD() {
-    string ret = mapscriptPINVOKE.mapObj_generateSLD(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  private string processTemplate(int bGenerateImages, string[] names, string[] values, int numentries) {
-    string ret = mapscriptPINVOKE.mapObj_processTemplate(swigCPtr, bGenerateImages, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  private string processLegendTemplate(string[] names, string[] values, int numentries) {
-    string ret = mapscriptPINVOKE.mapObj_processLegendTemplate(swigCPtr, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  private string processQueryTemplate(string[] names, string[] values, int numentries) {
-    string ret = mapscriptPINVOKE.mapObj_processQueryTemplate(swigCPtr, new mapscriptPINVOKE.StringArrayMarshal(names)._ar, new mapscriptPINVOKE.StringArrayMarshal(values)._ar, numentries);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public outputFormatObj getOutputFormatByName(string name) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.mapObj_getOutputFormatByName(swigCPtr, name);
-    outputFormatObj ret = (cPtr == IntPtr.Zero) ? null : new outputFormatObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int appendOutputFormat(outputFormatObj format) {
-    int ret = mapscriptPINVOKE.mapObj_appendOutputFormat(swigCPtr, outputFormatObj.getCPtr(format));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int removeOutputFormat(string name) {
-    int ret = mapscriptPINVOKE.mapObj_removeOutputFormat(swigCPtr, name);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int loadOWSParameters(OWSRequest request, string wmtver_string) {
-    int ret = mapscriptPINVOKE.mapObj_loadOWSParameters(swigCPtr, OWSRequest.getCPtr(request), wmtver_string);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int OWSDispatch(OWSRequest req) {
-    int ret = mapscriptPINVOKE.mapObj_OWSDispatch(swigCPtr, OWSRequest.getCPtr(req));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.mapObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int zoomPoint(int zoomfactor, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
-    int ret = mapscriptPINVOKE.mapObj_zoomPoint(swigCPtr, zoomfactor, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int zoomRectangle(rectObj poPixRect, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
-    int ret = mapscriptPINVOKE.mapObj_zoomRectangle(swigCPtr, rectObj.getCPtr(poPixRect), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int zoomScale(double scale, pointObj poPixPos, int width, int height, rectObj poGeorefExt, rectObj poMaxGeorefExt) {
-    int ret = mapscriptPINVOKE.mapObj_zoomScale(swigCPtr, scale, pointObj.getCPtr(poPixPos), width, height, rectObj.getCPtr(poGeorefExt), rectObj.getCPtr(poMaxGeorefExt));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/mapscript.cs b/mapscript/csharp/mapscript.cs
deleted file mode 100644
index 9314be9..0000000
--- a/mapscript/csharp/mapscript.cs
+++ /dev/null
@@ -1,241 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class mapscript {
-
-  /* %pragma(csharp) modulecode */
-  internal class mapscriptObject : IDisposable {
-	public virtual void Dispose() {
-      
-    }
-  }
-  internal static mapscriptObject themapscriptObject = new mapscriptObject();
-  protected static object ThisOwn_true() { return null; }
-  protected static object ThisOwn_false() { return themapscriptObject; }
-  
-  [DllImport("mapscript", EntryPoint="SetEnvironmentVariable")]
-  public static extern int SetEnvironmentVariable(string envstring);
-
-  public static int msSaveImage(mapObj map, imageObj img, string filename) {
-    int ret = mapscriptPINVOKE.msSaveImage(mapObj.getCPtr(map), imageObj.getCPtr(img), filename);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static void msFreeImage(imageObj img) {
-    mapscriptPINVOKE.msFreeImage(imageObj.getCPtr(img));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static int msSetup() {
-    int ret = mapscriptPINVOKE.msSetup();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static void msCleanup(int signal) {
-    mapscriptPINVOKE.msCleanup(signal);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static mapObj msLoadMapFromString(string buffer, string new_mappath) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.msLoadMapFromString(buffer, new_mappath);
-    mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static errorObj msGetErrorObj() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.msGetErrorObj();
-    errorObj ret = (cPtr == IntPtr.Zero) ? null : new errorObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static void msResetErrorList() {
-    mapscriptPINVOKE.msResetErrorList();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static string msGetVersion() {
-    string ret = mapscriptPINVOKE.msGetVersion();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static int msGetVersionInt() {
-    int ret = mapscriptPINVOKE.msGetVersionInt();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static string msGetErrorString(string delimiter) {
-    string ret = mapscriptPINVOKE.msGetErrorString(delimiter);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static void msConnPoolCloseUnreferenced() {
-    mapscriptPINVOKE.msConnPoolCloseUnreferenced();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static void msIO_resetHandlers() {
-    mapscriptPINVOKE.msIO_resetHandlers();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static void msIO_installStdoutToBuffer() {
-    mapscriptPINVOKE.msIO_installStdoutToBuffer();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static void msIO_installStdinFromBuffer() {
-    mapscriptPINVOKE.msIO_installStdinFromBuffer();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static string msIO_stripStdoutBufferContentType() {
-    string ret = mapscriptPINVOKE.msIO_stripStdoutBufferContentType();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static void msIO_stripStdoutBufferContentHeaders() {
-    mapscriptPINVOKE.msIO_stripStdoutBufferContentHeaders();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static string msIO_getStdoutBufferString() {
-    string ret = mapscriptPINVOKE.msIO_getStdoutBufferString();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public static byte[] msIO_getStdoutBufferBytes() {
-    mapscriptPINVOKE.msIO_getStdoutBufferBytes();
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return mapscriptPINVOKE.GetBytes();
-}
-
-  public static readonly int MAX_ERROR_LEN = mapscriptPINVOKE.MAX_ERROR_LEN_get();
-  public static readonly int MS_TRUE = mapscriptPINVOKE.MS_TRUE_get();
-  public static readonly int MS_FALSE = mapscriptPINVOKE.MS_FALSE_get();
-  public static readonly int MS_UNKNOWN = mapscriptPINVOKE.MS_UNKNOWN_get();
-  public static readonly int MS_ON = mapscriptPINVOKE.MS_ON_get();
-  public static readonly int MS_OFF = mapscriptPINVOKE.MS_OFF_get();
-  public static readonly int MS_DEFAULT = mapscriptPINVOKE.MS_DEFAULT_get();
-  public static readonly int MS_EMBED = mapscriptPINVOKE.MS_EMBED_get();
-  public static readonly int MS_DELETE = mapscriptPINVOKE.MS_DELETE_get();
-  public static readonly int MS_YES = mapscriptPINVOKE.MS_YES_get();
-  public static readonly int MS_NO = mapscriptPINVOKE.MS_NO_get();
-  public static readonly int MS_GD_ALPHA = mapscriptPINVOKE.MS_GD_ALPHA_get();
-  public static readonly int MS_LAYER_ALLOCSIZE = mapscriptPINVOKE.MS_LAYER_ALLOCSIZE_get();
-  public static readonly int MS_CLASS_ALLOCSIZE = mapscriptPINVOKE.MS_CLASS_ALLOCSIZE_get();
-  public static readonly int MS_STYLE_ALLOCSIZE = mapscriptPINVOKE.MS_STYLE_ALLOCSIZE_get();
-  public static readonly int MS_LABEL_ALLOCSIZE = mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get();
-  public static readonly int MS_MAX_LABEL_PRIORITY = mapscriptPINVOKE.MS_MAX_LABEL_PRIORITY_get();
-  public static readonly int MS_MAX_LABEL_FONTS = mapscriptPINVOKE.MS_MAX_LABEL_FONTS_get();
-  public static readonly int MS_DEFAULT_LABEL_PRIORITY = mapscriptPINVOKE.MS_DEFAULT_LABEL_PRIORITY_get();
-  public static readonly int MS_LABEL_FORCE_GROUP = mapscriptPINVOKE.MS_LABEL_FORCE_GROUP_get();
-  public static readonly int MS_RENDER_WITH_SWF = mapscriptPINVOKE.MS_RENDER_WITH_SWF_get();
-  public static readonly int MS_RENDER_WITH_RAWDATA = mapscriptPINVOKE.MS_RENDER_WITH_RAWDATA_get();
-  public static readonly int MS_RENDER_WITH_IMAGEMAP = mapscriptPINVOKE.MS_RENDER_WITH_IMAGEMAP_get();
-  public static readonly int MS_RENDER_WITH_TEMPLATE = mapscriptPINVOKE.MS_RENDER_WITH_TEMPLATE_get();
-  public static readonly int MS_RENDER_WITH_OGR = mapscriptPINVOKE.MS_RENDER_WITH_OGR_get();
-  public static readonly int MS_RENDER_WITH_PLUGIN = mapscriptPINVOKE.MS_RENDER_WITH_PLUGIN_get();
-  public static readonly int MS_RENDER_WITH_CAIRO_RASTER = mapscriptPINVOKE.MS_RENDER_WITH_CAIRO_RASTER_get();
-  public static readonly int MS_RENDER_WITH_CAIRO_PDF = mapscriptPINVOKE.MS_RENDER_WITH_CAIRO_PDF_get();
-  public static readonly int MS_RENDER_WITH_CAIRO_SVG = mapscriptPINVOKE.MS_RENDER_WITH_CAIRO_SVG_get();
-  public static readonly int MS_RENDER_WITH_OGL = mapscriptPINVOKE.MS_RENDER_WITH_OGL_get();
-  public static readonly int MS_RENDER_WITH_AGG = mapscriptPINVOKE.MS_RENDER_WITH_AGG_get();
-  public static readonly int MS_RENDER_WITH_GD = mapscriptPINVOKE.MS_RENDER_WITH_GD_get();
-  public static readonly int MS_RENDER_WITH_KML = mapscriptPINVOKE.MS_RENDER_WITH_KML_get();
-  public static readonly int MS_POSITIONS_LENGTH = mapscriptPINVOKE.MS_POSITIONS_LENGTH_get();
-  public static readonly int MS_SINGLE = mapscriptPINVOKE.MS_SINGLE_get();
-  public static readonly int MS_MULTIPLE = mapscriptPINVOKE.MS_MULTIPLE_get();
-  public static readonly int MS_CJC_DEFAULT_JOIN_MAXSIZE = mapscriptPINVOKE.MS_CJC_DEFAULT_JOIN_MAXSIZE_get();
-  public static readonly int MS_STYLE_BINDING_LENGTH = mapscriptPINVOKE.MS_STYLE_BINDING_LENGTH_get();
-  public static readonly int MS_LABEL_BINDING_LENGTH = mapscriptPINVOKE.MS_LABEL_BINDING_LENGTH_get();
-  public static readonly int MS_NOOVERRIDE = mapscriptPINVOKE.MS_NOOVERRIDE_get();
-  public static readonly int SHX_BUFFER_PAGE = mapscriptPINVOKE.SHX_BUFFER_PAGE_get();
-  public static readonly int MS_SHAPEFILE_POINT = mapscriptPINVOKE.MS_SHAPEFILE_POINT_get();
-  public static readonly int MS_SHAPEFILE_ARC = mapscriptPINVOKE.MS_SHAPEFILE_ARC_get();
-  public static readonly int MS_SHAPEFILE_POLYGON = mapscriptPINVOKE.MS_SHAPEFILE_POLYGON_get();
-  public static readonly int MS_SHAPEFILE_MULTIPOINT = mapscriptPINVOKE.MS_SHAPEFILE_MULTIPOINT_get();
-  public static readonly int MS_SHP_POINTZ = mapscriptPINVOKE.MS_SHP_POINTZ_get();
-  public static readonly int MS_SHP_ARCZ = mapscriptPINVOKE.MS_SHP_ARCZ_get();
-  public static readonly int MS_SHP_POLYGONZ = mapscriptPINVOKE.MS_SHP_POLYGONZ_get();
-  public static readonly int MS_SHP_MULTIPOINTZ = mapscriptPINVOKE.MS_SHP_MULTIPOINTZ_get();
-  public static readonly int MS_SHP_POINTM = mapscriptPINVOKE.MS_SHP_POINTM_get();
-  public static readonly int MS_SHP_ARCM = mapscriptPINVOKE.MS_SHP_ARCM_get();
-  public static readonly int MS_SHP_POLYGONM = mapscriptPINVOKE.MS_SHP_POLYGONM_get();
-  public static readonly int MS_SHP_MULTIPOINTM = mapscriptPINVOKE.MS_SHP_MULTIPOINTM_get();
-  public static readonly int wkp_none = mapscriptPINVOKE.wkp_none_get();
-  public static readonly int wkp_lonlat = mapscriptPINVOKE.wkp_lonlat_get();
-  public static readonly int wkp_gmerc = mapscriptPINVOKE.wkp_gmerc_get();
-  public static readonly int MS_SYMBOL_ALLOCSIZE = mapscriptPINVOKE.MS_SYMBOL_ALLOCSIZE_get();
-  public static readonly int MS_MAXVECTORPOINTS = mapscriptPINVOKE.MS_MAXVECTORPOINTS_get();
-  public static readonly int MS_MAXPATTERNLENGTH = mapscriptPINVOKE.MS_MAXPATTERNLENGTH_get();
-  public static readonly int MS_IMAGECACHESIZE = mapscriptPINVOKE.MS_IMAGECACHESIZE_get();
-  public static readonly int MS_NOERR = mapscriptPINVOKE.MS_NOERR_get();
-  public static readonly int MS_IOERR = mapscriptPINVOKE.MS_IOERR_get();
-  public static readonly int MS_MEMERR = mapscriptPINVOKE.MS_MEMERR_get();
-  public static readonly int MS_TYPEERR = mapscriptPINVOKE.MS_TYPEERR_get();
-  public static readonly int MS_SYMERR = mapscriptPINVOKE.MS_SYMERR_get();
-  public static readonly int MS_REGEXERR = mapscriptPINVOKE.MS_REGEXERR_get();
-  public static readonly int MS_TTFERR = mapscriptPINVOKE.MS_TTFERR_get();
-  public static readonly int MS_DBFERR = mapscriptPINVOKE.MS_DBFERR_get();
-  public static readonly int MS_GDERR = mapscriptPINVOKE.MS_GDERR_get();
-  public static readonly int MS_IDENTERR = mapscriptPINVOKE.MS_IDENTERR_get();
-  public static readonly int MS_EOFERR = mapscriptPINVOKE.MS_EOFERR_get();
-  public static readonly int MS_PROJERR = mapscriptPINVOKE.MS_PROJERR_get();
-  public static readonly int MS_MISCERR = mapscriptPINVOKE.MS_MISCERR_get();
-  public static readonly int MS_CGIERR = mapscriptPINVOKE.MS_CGIERR_get();
-  public static readonly int MS_WEBERR = mapscriptPINVOKE.MS_WEBERR_get();
-  public static readonly int MS_IMGERR = mapscriptPINVOKE.MS_IMGERR_get();
-  public static readonly int MS_HASHERR = mapscriptPINVOKE.MS_HASHERR_get();
-  public static readonly int MS_JOINERR = mapscriptPINVOKE.MS_JOINERR_get();
-  public static readonly int MS_NOTFOUND = mapscriptPINVOKE.MS_NOTFOUND_get();
-  public static readonly int MS_SHPERR = mapscriptPINVOKE.MS_SHPERR_get();
-  public static readonly int MS_PARSEERR = mapscriptPINVOKE.MS_PARSEERR_get();
-  public static readonly int MS_SDEERR = mapscriptPINVOKE.MS_SDEERR_get();
-  public static readonly int MS_OGRERR = mapscriptPINVOKE.MS_OGRERR_get();
-  public static readonly int MS_QUERYERR = mapscriptPINVOKE.MS_QUERYERR_get();
-  public static readonly int MS_WMSERR = mapscriptPINVOKE.MS_WMSERR_get();
-  public static readonly int MS_WMSCONNERR = mapscriptPINVOKE.MS_WMSCONNERR_get();
-  public static readonly int MS_ORACLESPATIALERR = mapscriptPINVOKE.MS_ORACLESPATIALERR_get();
-  public static readonly int MS_WFSERR = mapscriptPINVOKE.MS_WFSERR_get();
-  public static readonly int MS_WFSCONNERR = mapscriptPINVOKE.MS_WFSCONNERR_get();
-  public static readonly int MS_MAPCONTEXTERR = mapscriptPINVOKE.MS_MAPCONTEXTERR_get();
-  public static readonly int MS_HTTPERR = mapscriptPINVOKE.MS_HTTPERR_get();
-  public static readonly int MS_CHILDERR = mapscriptPINVOKE.MS_CHILDERR_get();
-  public static readonly int MS_WCSERR = mapscriptPINVOKE.MS_WCSERR_get();
-  public static readonly int MS_GEOSERR = mapscriptPINVOKE.MS_GEOSERR_get();
-  public static readonly int MS_RECTERR = mapscriptPINVOKE.MS_RECTERR_get();
-  public static readonly int MS_TIMEERR = mapscriptPINVOKE.MS_TIMEERR_get();
-  public static readonly int MS_GMLERR = mapscriptPINVOKE.MS_GMLERR_get();
-  public static readonly int MS_SOSERR = mapscriptPINVOKE.MS_SOSERR_get();
-  public static readonly int MS_NULLPARENTERR = mapscriptPINVOKE.MS_NULLPARENTERR_get();
-  public static readonly int MS_AGGERR = mapscriptPINVOKE.MS_AGGERR_get();
-  public static readonly int MS_OWSERR = mapscriptPINVOKE.MS_OWSERR_get();
-  public static readonly int MS_OGLERR = mapscriptPINVOKE.MS_OGLERR_get();
-  public static readonly int MS_RENDERERERR = mapscriptPINVOKE.MS_RENDERERERR_get();
-  public static readonly int MS_NUMERRORCODES = mapscriptPINVOKE.MS_NUMERRORCODES_get();
-  public static readonly int MESSAGELENGTH = mapscriptPINVOKE.MESSAGELENGTH_get();
-  public static readonly int ROUTINELENGTH = mapscriptPINVOKE.ROUTINELENGTH_get();
-  public static readonly string MS_ERROR_LANGUAGE = mapscriptPINVOKE.MS_ERROR_LANGUAGE_get();
-  public static readonly int MS_HASHSIZE = mapscriptPINVOKE.MS_HASHSIZE_get();
-  public static readonly int MS_DEFAULT_CGI_PARAMS = mapscriptPINVOKE.MS_DEFAULT_CGI_PARAMS_get();
-}
diff --git a/mapscript/csharp/mapscriptPINVOKE.cs b/mapscript/csharp/mapscriptPINVOKE.cs
deleted file mode 100644
index 00fd5c6..0000000
--- a/mapscript/csharp/mapscriptPINVOKE.cs
+++ /dev/null
@@ -1,4055 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-class mapscriptPINVOKE {
-
-  protected class SWIGExceptionHelper {
-
-    public delegate void ExceptionDelegate(string message);
-    public delegate void ExceptionArgumentDelegate(string message, string paramName);
-
-    static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
-    static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
-    static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
-    static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
-    static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
-    static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
-    static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
-    static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
-    static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
-    static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
-    static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
-
-    static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
-    static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
-    static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
-
-    [DllImport("mapscript", EntryPoint="SWIGRegisterExceptionCallbacks_mapscript")]
-    public static extern void SWIGRegisterExceptionCallbacks_mapscript(
-                                ExceptionDelegate applicationDelegate,
-                                ExceptionDelegate arithmeticDelegate,
-                                ExceptionDelegate divideByZeroDelegate, 
-                                ExceptionDelegate indexOutOfRangeDelegate, 
-                                ExceptionDelegate invalidCastDelegate,
-                                ExceptionDelegate invalidOperationDelegate,
-                                ExceptionDelegate ioDelegate,
-                                ExceptionDelegate nullReferenceDelegate,
-                                ExceptionDelegate outOfMemoryDelegate, 
-                                ExceptionDelegate overflowDelegate, 
-                                ExceptionDelegate systemExceptionDelegate);
-
-    [DllImport("mapscript", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_mapscript")]
-    public static extern void SWIGRegisterExceptionCallbacksArgument_mapscript(
-                                ExceptionArgumentDelegate argumentDelegate,
-                                ExceptionArgumentDelegate argumentNullDelegate,
-                                ExceptionArgumentDelegate argumentOutOfRangeDelegate);
-
-    static void SetPendingApplicationException(string message) {
-      SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingArithmeticException(string message) {
-      SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingDivideByZeroException(string message) {
-      SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingIndexOutOfRangeException(string message) {
-      SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingInvalidCastException(string message) {
-      SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingInvalidOperationException(string message) {
-      SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingIOException(string message) {
-      SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingNullReferenceException(string message) {
-      SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingOutOfMemoryException(string message) {
-      SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingOverflowException(string message) {
-      SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingSystemException(string message) {
-      SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve()));
-    }
-
-    static void SetPendingArgumentException(string message, string paramName) {
-      SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
-    }
-    static void SetPendingArgumentNullException(string message, string paramName) {
-      Exception e = SWIGPendingException.Retrieve();
-      if (e != null) message = message + " Inner Exception: " + e.Message;
-      SWIGPendingException.Set(new System.ArgumentNullException(paramName, message));
-    }
-    static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
-      Exception e = SWIGPendingException.Retrieve();
-      if (e != null) message = message + " Inner Exception: " + e.Message;
-      SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message));
-    }
-
-    static SWIGExceptionHelper() {
-      SWIGRegisterExceptionCallbacks_mapscript(
-                                applicationDelegate,
-                                arithmeticDelegate,
-                                divideByZeroDelegate,
-                                indexOutOfRangeDelegate,
-                                invalidCastDelegate,
-                                invalidOperationDelegate,
-                                ioDelegate,
-                                nullReferenceDelegate,
-                                outOfMemoryDelegate,
-                                overflowDelegate,
-                                systemDelegate);
-
-      SWIGRegisterExceptionCallbacksArgument_mapscript(
-                                argumentDelegate,
-                                argumentNullDelegate,
-                                argumentOutOfRangeDelegate);
-    }
-  }
-
-  protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
-
-  public class SWIGPendingException {
-    [ThreadStatic]
-    private static Exception pendingException = null;
-    private static int numExceptionsPending = 0;
-
-    public static bool Pending {
-      get {
-        bool pending = false;
-        if (numExceptionsPending > 0)
-          if (pendingException != null)
-            pending = true;
-        return pending;
-      } 
-    }
-
-    public static void Set(Exception e) {
-      if (pendingException != null)
-        throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
-      pendingException = e;
-      lock(typeof(mapscriptPINVOKE)) {
-        numExceptionsPending++;
-      }
-    }
-
-    public static Exception Retrieve() {
-      Exception e = null;
-      if (numExceptionsPending > 0) {
-        if (pendingException != null) {
-          e = pendingException;
-          pendingException = null;
-          lock(typeof(mapscriptPINVOKE)) {
-            numExceptionsPending--;
-          }
-        }
-      }
-      return e;
-    }
-  }
-
-
-  protected class SWIGStringHelper {
-
-    public delegate string SWIGStringDelegate(string message);
-    static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
-
-    [DllImport("mapscript", EntryPoint="SWIGRegisterStringCallback_mapscript")]
-    public static extern void SWIGRegisterStringCallback_mapscript(SWIGStringDelegate stringDelegate);
-
-    static string CreateString(string cString) {
-      return cString;
-    }
-
-    static SWIGStringHelper() {
-      SWIGRegisterStringCallback_mapscript(stringDelegate);
-    }
-  }
-
-  static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
-
-
-  static mapscriptPINVOKE() {
-  }
-
-
-  static mapscriptPINVOKE() {
-  }
-
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_intarray")]
-  public static extern IntPtr new_intarray(int jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_intarray")]
-  public static extern void delete_intarray(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_intarray_getitem")]
-  public static extern int intarray_getitem(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_intarray_setitem")]
-  public static extern void intarray_setitem(HandleRef jarg1, int jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_intarray_cast")]
-  public static extern IntPtr intarray_cast(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MAX_ERROR_LEN_get")]
-  public static extern int MAX_ERROR_LEN_get();
-
-  protected class mapscriptHelper 
-	{
-		static mapscriptHelper() 
-		{
-			mapscript.msSetup();
-		}
-		 ~mapscriptHelper() 
-		{
-			//mapscript.msCleanup();
-		}
-	}
-	protected static mapscriptHelper themapscriptHelper = new mapscriptHelper();
-
-
-  public class StringArrayMarshal : IDisposable {
-    public readonly IntPtr[] _ar;
-    public StringArrayMarshal(string[] ar) {
-      _ar = new IntPtr[ar.Length];
-      for (int cx = 0; cx < _ar.Length; cx++) {
-	      _ar[cx] = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(ar[cx]);
-      }
-    }
-    public virtual void Dispose() {
-	  for (int cx = 0; cx < _ar.Length; cx++) {
-          System.Runtime.InteropServices.Marshal.FreeHGlobal(_ar[cx]);
-      }
-      GC.SuppressFinalize(this);
-    }
-  }
-
-
-  public delegate void SWIGByteArrayDelegate(IntPtr data, int size);
-
-
-  protected class SWIGByteArrayHelper 
-	{
-		public delegate void SWIGByteArrayDelegate(IntPtr data, int size);
-		static SWIGByteArrayDelegate bytearrayDelegate = new SWIGByteArrayDelegate(CreateByteArray);
-
-		[DllImport("mapscript", EntryPoint="SWIGRegisterByteArrayCallback_mapscript")]
-		public static extern void SWIGRegisterByteArrayCallback_mapscript(SWIGByteArrayDelegate bytearrayDelegate);
-
-		static void CreateByteArray(IntPtr data, int size) 
-		{
-			arraybuffer = new byte[size];
-			Marshal.Copy(data, arraybuffer, 0, size);
-		}
-
-		static SWIGByteArrayHelper() 
-		{
-			SWIGRegisterByteArrayCallback_mapscript(bytearrayDelegate);
-		}
-	}
-	protected static SWIGByteArrayHelper bytearrayHelper = new SWIGByteArrayHelper();
-	[ThreadStatic] 
-	private static byte[] arraybuffer;
-
-	internal static byte[] GetBytes()
-	{
-		return arraybuffer;
-	}
-
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_TRUE_get")]
-  public static extern int MS_TRUE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_FALSE_get")]
-  public static extern int MS_FALSE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_UNKNOWN_get")]
-  public static extern int MS_UNKNOWN_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_ON_get")]
-  public static extern int MS_ON_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_OFF_get")]
-  public static extern int MS_OFF_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_DEFAULT_get")]
-  public static extern int MS_DEFAULT_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_EMBED_get")]
-  public static extern int MS_EMBED_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_DELETE_get")]
-  public static extern int MS_DELETE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_YES_get")]
-  public static extern int MS_YES_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NO_get")]
-  public static extern int MS_NO_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_GD_ALPHA_get")]
-  public static extern int MS_GD_ALPHA_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_LAYER_ALLOCSIZE_get")]
-  public static extern int MS_LAYER_ALLOCSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_CLASS_ALLOCSIZE_get")]
-  public static extern int MS_CLASS_ALLOCSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_STYLE_ALLOCSIZE_get")]
-  public static extern int MS_STYLE_ALLOCSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_LABEL_ALLOCSIZE_get")]
-  public static extern int MS_LABEL_ALLOCSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MAX_LABEL_PRIORITY_get")]
-  public static extern int MS_MAX_LABEL_PRIORITY_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MAX_LABEL_FONTS_get")]
-  public static extern int MS_MAX_LABEL_FONTS_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_DEFAULT_LABEL_PRIORITY_get")]
-  public static extern int MS_DEFAULT_LABEL_PRIORITY_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_LABEL_FORCE_GROUP_get")]
-  public static extern int MS_LABEL_FORCE_GROUP_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_SWF_get")]
-  public static extern int MS_RENDER_WITH_SWF_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_RAWDATA_get")]
-  public static extern int MS_RENDER_WITH_RAWDATA_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_IMAGEMAP_get")]
-  public static extern int MS_RENDER_WITH_IMAGEMAP_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_TEMPLATE_get")]
-  public static extern int MS_RENDER_WITH_TEMPLATE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_OGR_get")]
-  public static extern int MS_RENDER_WITH_OGR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_PLUGIN_get")]
-  public static extern int MS_RENDER_WITH_PLUGIN_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_CAIRO_RASTER_get")]
-  public static extern int MS_RENDER_WITH_CAIRO_RASTER_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_CAIRO_PDF_get")]
-  public static extern int MS_RENDER_WITH_CAIRO_PDF_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_CAIRO_SVG_get")]
-  public static extern int MS_RENDER_WITH_CAIRO_SVG_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_OGL_get")]
-  public static extern int MS_RENDER_WITH_OGL_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_AGG_get")]
-  public static extern int MS_RENDER_WITH_AGG_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_GD_get")]
-  public static extern int MS_RENDER_WITH_GD_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDER_WITH_KML_get")]
-  public static extern int MS_RENDER_WITH_KML_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_POSITIONS_LENGTH_get")]
-  public static extern int MS_POSITIONS_LENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SINGLE_get")]
-  public static extern int MS_SINGLE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MULTIPLE_get")]
-  public static extern int MS_MULTIPLE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_CJC_DEFAULT_JOIN_MAXSIZE_get")]
-  public static extern int MS_CJC_DEFAULT_JOIN_MAXSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_STYLE_BINDING_LENGTH_get")]
-  public static extern int MS_STYLE_BINDING_LENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_LABEL_BINDING_LENGTH_get")]
-  public static extern int MS_LABEL_BINDING_LENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_filename_get")]
-  public static extern string fontSetObj_filename_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_numfonts_get")]
-  public static extern int fontSetObj_numfonts_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_fontSetObj_fonts_get")]
-  public static extern IntPtr fontSetObj_fonts_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_fontSetObj")]
-  public static extern IntPtr new_fontSetObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_fontSetObj")]
-  public static extern void delete_fontSetObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_maxdistance_set")]
-  public static extern void clusterObj_maxdistance_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_maxdistance_get")]
-  public static extern double clusterObj_maxdistance_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_buffer_set")]
-  public static extern void clusterObj_buffer_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_buffer_get")]
-  public static extern double clusterObj_buffer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_region_set")]
-  public static extern void clusterObj_region_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_region_get")]
-  public static extern string clusterObj_region_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_updateFromString")]
-  public static extern int clusterObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_convertToString")]
-  public static extern string clusterObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_setGroup")]
-  public static extern int clusterObj_setGroup(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_getGroupString")]
-  public static extern string clusterObj_getGroupString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_setFilter")]
-  public static extern int clusterObj_setFilter(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_clusterObj_getFilterString")]
-  public static extern string clusterObj_getFilterString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_clusterObj")]
-  public static extern IntPtr new_clusterObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_clusterObj")]
-  public static extern void delete_clusterObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_numformatoptions_get")]
-  public static extern int outputFormatObj_numformatoptions_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_name_set")]
-  public static extern void outputFormatObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_name_get")]
-  public static extern string outputFormatObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_mimetype_set")]
-  public static extern void outputFormatObj_mimetype_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_mimetype_get")]
-  public static extern string outputFormatObj_mimetype_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_driver_set")]
-  public static extern void outputFormatObj_driver_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_driver_get")]
-  public static extern string outputFormatObj_driver_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_extension_set")]
-  public static extern void outputFormatObj_extension_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_extension_get")]
-  public static extern string outputFormatObj_extension_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_renderer_set")]
-  public static extern void outputFormatObj_renderer_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_renderer_get")]
-  public static extern int outputFormatObj_renderer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_imagemode_set")]
-  public static extern void outputFormatObj_imagemode_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_imagemode_get")]
-  public static extern int outputFormatObj_imagemode_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_transparent_set")]
-  public static extern void outputFormatObj_transparent_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_transparent_get")]
-  public static extern int outputFormatObj_transparent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_bands_set")]
-  public static extern void outputFormatObj_bands_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_bands_get")]
-  public static extern int outputFormatObj_bands_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_inmapfile_set")]
-  public static extern void outputFormatObj_inmapfile_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_inmapfile_get")]
-  public static extern int outputFormatObj_inmapfile_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_outputFormatObj")]
-  public static extern IntPtr new_outputFormatObj(string jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_outputFormatObj")]
-  public static extern void delete_outputFormatObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setExtension")]
-  public static extern void outputFormatObj_setExtension(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setMimetype")]
-  public static extern void outputFormatObj_setMimetype(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_setOption")]
-  public static extern void outputFormatObj_setOption(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_validate")]
-  public static extern int outputFormatObj_validate(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_getOption")]
-  public static extern string outputFormatObj_getOption(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_getOptionAt")]
-  public static extern string outputFormatObj_getOptionAt(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_outputFormatObj_attachDevice")]
-  public static extern void outputFormatObj_attachDevice(HandleRef jarg1, IntPtr jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NOOVERRIDE_get")]
-  public static extern int MS_NOOVERRIDE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_height_set")]
-  public static extern void queryMapObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_height_get")]
-  public static extern int queryMapObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_width_set")]
-  public static extern void queryMapObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_width_get")]
-  public static extern int queryMapObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_status_set")]
-  public static extern void queryMapObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_status_get")]
-  public static extern int queryMapObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_style_set")]
-  public static extern void queryMapObj_style_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_style_get")]
-  public static extern int queryMapObj_style_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_color_set")]
-  public static extern void queryMapObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_color_get")]
-  public static extern IntPtr queryMapObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_updateFromString")]
-  public static extern int queryMapObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_queryMapObj_convertToString")]
-  public static extern string queryMapObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_queryMapObj")]
-  public static extern IntPtr new_queryMapObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_queryMapObj")]
-  public static extern void delete_queryMapObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_log_set")]
-  public static extern void webObj_log_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_log_get")]
-  public static extern string webObj_log_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_imagepath_set")]
-  public static extern void webObj_imagepath_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_imagepath_get")]
-  public static extern string webObj_imagepath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_imageurl_set")]
-  public static extern void webObj_imageurl_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_imageurl_get")]
-  public static extern string webObj_imageurl_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_temppath_set")]
-  public static extern void webObj_temppath_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_temppath_get")]
-  public static extern string webObj_temppath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_map_get")]
-  public static extern IntPtr webObj_map_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_template_set")]
-  public static extern void webObj_template_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_template_get")]
-  public static extern string webObj_template_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_header_set")]
-  public static extern void webObj_header_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_header_get")]
-  public static extern string webObj_header_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_footer_set")]
-  public static extern void webObj_footer_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_footer_get")]
-  public static extern string webObj_footer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_empty_set")]
-  public static extern void webObj_empty_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_empty_get")]
-  public static extern string webObj_empty_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_error_set")]
-  public static extern void webObj_error_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_error_get")]
-  public static extern string webObj_error_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_extent_set")]
-  public static extern void webObj_extent_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_extent_get")]
-  public static extern IntPtr webObj_extent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_minscaledenom_set")]
-  public static extern void webObj_minscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_minscaledenom_get")]
-  public static extern double webObj_minscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxscaledenom_set")]
-  public static extern void webObj_maxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxscaledenom_get")]
-  public static extern double webObj_maxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_mintemplate_set")]
-  public static extern void webObj_mintemplate_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_mintemplate_get")]
-  public static extern string webObj_mintemplate_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxtemplate_set")]
-  public static extern void webObj_maxtemplate_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_maxtemplate_get")]
-  public static extern string webObj_maxtemplate_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_queryformat_set")]
-  public static extern void webObj_queryformat_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_queryformat_get")]
-  public static extern string webObj_queryformat_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_legendformat_set")]
-  public static extern void webObj_legendformat_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_legendformat_get")]
-  public static extern string webObj_legendformat_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_browseformat_set")]
-  public static extern void webObj_browseformat_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_browseformat_get")]
-  public static extern string webObj_browseformat_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_metadata_get")]
-  public static extern IntPtr webObj_metadata_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_validation_get")]
-  public static extern IntPtr webObj_validation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_webObj")]
-  public static extern IntPtr new_webObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_webObj")]
-  public static extern void delete_webObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_updateFromString")]
-  public static extern int webObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_webObj_convertToString")]
-  public static extern string webObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_refcount_get")]
-  public static extern int styleObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_autoangle_set")]
-  public static extern void styleObj_autoangle_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_autoangle_get")]
-  public static extern int styleObj_autoangle_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_color_set")]
-  public static extern void styleObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_color_get")]
-  public static extern IntPtr styleObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_backgroundcolor_set")]
-  public static extern void styleObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_backgroundcolor_get")]
-  public static extern IntPtr styleObj_backgroundcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinecolor_set")]
-  public static extern void styleObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinecolor_get")]
-  public static extern IntPtr styleObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_opacity_set")]
-  public static extern void styleObj_opacity_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_opacity_get")]
-  public static extern int styleObj_opacity_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_mincolor_set")]
-  public static extern void styleObj_mincolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_mincolor_get")]
-  public static extern IntPtr styleObj_mincolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxcolor_set")]
-  public static extern void styleObj_maxcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxcolor_get")]
-  public static extern IntPtr styleObj_maxcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minvalue_set")]
-  public static extern void styleObj_minvalue_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minvalue_get")]
-  public static extern double styleObj_minvalue_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxvalue_set")]
-  public static extern void styleObj_maxvalue_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxvalue_get")]
-  public static extern double styleObj_maxvalue_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitem_set")]
-  public static extern void styleObj_rangeitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitem_get")]
-  public static extern string styleObj_rangeitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitemindex_set")]
-  public static extern void styleObj_rangeitemindex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_rangeitemindex_get")]
-  public static extern int styleObj_rangeitemindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbol_set")]
-  public static extern void styleObj_symbol_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbol_get")]
-  public static extern int styleObj_symbol_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbolname_set")]
-  public static extern void styleObj_symbolname_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_symbolname_get")]
-  public static extern string styleObj_symbolname_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_size_set")]
-  public static extern void styleObj_size_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_size_get")]
-  public static extern double styleObj_size_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minsize_set")]
-  public static extern void styleObj_minsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minsize_get")]
-  public static extern double styleObj_minsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxsize_set")]
-  public static extern void styleObj_maxsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxsize_get")]
-  public static extern double styleObj_maxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_patternlength_set")]
-  public static extern void styleObj_patternlength_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_patternlength_get")]
-  public static extern int styleObj_patternlength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_pattern_set")]
-  public static extern void styleObj_pattern_set(HandleRef jarg1, IntPtr jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_pattern_get")]
-  public static extern IntPtr styleObj_pattern_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_gap_set")]
-  public static extern void styleObj_gap_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_gap_get")]
-  public static extern double styleObj_gap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_initialgap_set")]
-  public static extern void styleObj_initialgap_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_initialgap_get")]
-  public static extern double styleObj_initialgap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_position_set")]
-  public static extern void styleObj_position_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_position_get")]
-  public static extern int styleObj_position_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linecap_set")]
-  public static extern void styleObj_linecap_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linecap_get")]
-  public static extern int styleObj_linecap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linejoin_set")]
-  public static extern void styleObj_linejoin_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linejoin_get")]
-  public static extern int styleObj_linejoin_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linejoinmaxsize_set")]
-  public static extern void styleObj_linejoinmaxsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_linejoinmaxsize_get")]
-  public static extern double styleObj_linejoinmaxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_width_set")]
-  public static extern void styleObj_width_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_width_get")]
-  public static extern double styleObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinewidth_set")]
-  public static extern void styleObj_outlinewidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_outlinewidth_get")]
-  public static extern double styleObj_outlinewidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minwidth_set")]
-  public static extern void styleObj_minwidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minwidth_get")]
-  public static extern double styleObj_minwidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxwidth_set")]
-  public static extern void styleObj_maxwidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxwidth_get")]
-  public static extern double styleObj_maxwidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsetx_set")]
-  public static extern void styleObj_offsetx_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsetx_get")]
-  public static extern double styleObj_offsetx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsety_set")]
-  public static extern void styleObj_offsety_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_offsety_get")]
-  public static extern double styleObj_offsety_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_polaroffsetpixel_set")]
-  public static extern void styleObj_polaroffsetpixel_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_polaroffsetpixel_get")]
-  public static extern double styleObj_polaroffsetpixel_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_polaroffsetangle_set")]
-  public static extern void styleObj_polaroffsetangle_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_polaroffsetangle_get")]
-  public static extern double styleObj_polaroffsetangle_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_angle_set")]
-  public static extern void styleObj_angle_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_angle_get")]
-  public static extern double styleObj_angle_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_antialias_set")]
-  public static extern void styleObj_antialias_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_antialias_get")]
-  public static extern int styleObj_antialias_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minscaledenom_set")]
-  public static extern void styleObj_minscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_minscaledenom_get")]
-  public static extern double styleObj_minscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxscaledenom_set")]
-  public static extern void styleObj_maxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_maxscaledenom_get")]
-  public static extern double styleObj_maxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_styleObj")]
-  public static extern IntPtr new_styleObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_styleObj")]
-  public static extern void delete_styleObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_updateFromString")]
-  public static extern int styleObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_convertToString")]
-  public static extern string styleObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_clone")]
-  public static extern IntPtr styleObj_clone(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_setSymbolByName")]
-  public static extern int styleObj_setSymbolByName(HandleRef jarg1, HandleRef jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_removeBinding")]
-  public static extern int styleObj_removeBinding(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_setBinding")]
-  public static extern int styleObj_setBinding(HandleRef jarg1, int jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_getBinding")]
-  public static extern string styleObj_getBinding(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_getGeomTransform")]
-  public static extern string styleObj_getGeomTransform(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_styleObj_setGeomTransform")]
-  public static extern void styleObj_setGeomTransform(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelLeaderObj_maxdistance_set")]
-  public static extern void labelLeaderObj_maxdistance_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelLeaderObj_maxdistance_get")]
-  public static extern int labelLeaderObj_maxdistance_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelLeaderObj_gridstep_set")]
-  public static extern void labelLeaderObj_gridstep_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelLeaderObj_gridstep_get")]
-  public static extern int labelLeaderObj_gridstep_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelLeaderObj_numstyles_get")]
-  public static extern int labelLeaderObj_numstyles_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelLeaderObj")]
-  public static extern IntPtr new_labelLeaderObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelLeaderObj")]
-  public static extern void delete_labelLeaderObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_refcount_get")]
-  public static extern int labelObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_font_set")]
-  public static extern void labelObj_font_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_font_get")]
-  public static extern string labelObj_font_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_type_set")]
-  public static extern void labelObj_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_type_get")]
-  public static extern int labelObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_color_set")]
-  public static extern void labelObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_color_get")]
-  public static extern IntPtr labelObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinecolor_set")]
-  public static extern void labelObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinecolor_get")]
-  public static extern IntPtr labelObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinewidth_set")]
-  public static extern void labelObj_outlinewidth_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_outlinewidth_get")]
-  public static extern int labelObj_outlinewidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowcolor_set")]
-  public static extern void labelObj_shadowcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowcolor_get")]
-  public static extern IntPtr labelObj_shadowcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizex_set")]
-  public static extern void labelObj_shadowsizex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizex_get")]
-  public static extern int labelObj_shadowsizex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizey_set")]
-  public static extern void labelObj_shadowsizey_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_shadowsizey_get")]
-  public static extern int labelObj_shadowsizey_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_size_set")]
-  public static extern void labelObj_size_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_size_get")]
-  public static extern double labelObj_size_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minsize_set")]
-  public static extern void labelObj_minsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minsize_get")]
-  public static extern double labelObj_minsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxsize_set")]
-  public static extern void labelObj_maxsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxsize_get")]
-  public static extern double labelObj_maxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_position_set")]
-  public static extern void labelObj_position_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_position_get")]
-  public static extern int labelObj_position_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsetx_set")]
-  public static extern void labelObj_offsetx_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsetx_get")]
-  public static extern int labelObj_offsetx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsety_set")]
-  public static extern void labelObj_offsety_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_offsety_get")]
-  public static extern int labelObj_offsety_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_angle_set")]
-  public static extern void labelObj_angle_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_angle_get")]
-  public static extern double labelObj_angle_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_anglemode_set")]
-  public static extern void labelObj_anglemode_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_anglemode_get")]
-  public static extern int labelObj_anglemode_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_buffer_set")]
-  public static extern void labelObj_buffer_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_buffer_get")]
-  public static extern int labelObj_buffer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_antialias_set")]
-  public static extern void labelObj_antialias_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_antialias_get")]
-  public static extern int labelObj_antialias_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_align_set")]
-  public static extern void labelObj_align_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_align_get")]
-  public static extern int labelObj_align_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_wrap_set")]
-  public static extern void labelObj_wrap_set(HandleRef jarg1, char jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_wrap_get")]
-  public static extern char labelObj_wrap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxlength_set")]
-  public static extern void labelObj_maxlength_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxlength_get")]
-  public static extern int labelObj_maxlength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minlength_set")]
-  public static extern void labelObj_minlength_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minlength_get")]
-  public static extern int labelObj_minlength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_space_size_10_set")]
-  public static extern void labelObj_space_size_10_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_space_size_10_get")]
-  public static extern double labelObj_space_size_10_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minfeaturesize_set")]
-  public static extern void labelObj_minfeaturesize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minfeaturesize_get")]
-  public static extern int labelObj_minfeaturesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autominfeaturesize_set")]
-  public static extern void labelObj_autominfeaturesize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_autominfeaturesize_get")]
-  public static extern int labelObj_autominfeaturesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minscaledenom_set")]
-  public static extern void labelObj_minscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_minscaledenom_get")]
-  public static extern double labelObj_minscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxscaledenom_set")]
-  public static extern void labelObj_maxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxscaledenom_get")]
-  public static extern double labelObj_maxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_mindistance_set")]
-  public static extern void labelObj_mindistance_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_mindistance_get")]
-  public static extern int labelObj_mindistance_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_repeatdistance_set")]
-  public static extern void labelObj_repeatdistance_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_repeatdistance_get")]
-  public static extern int labelObj_repeatdistance_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxoverlapangle_set")]
-  public static extern void labelObj_maxoverlapangle_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_maxoverlapangle_get")]
-  public static extern double labelObj_maxoverlapangle_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_partials_set")]
-  public static extern void labelObj_partials_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_partials_get")]
-  public static extern int labelObj_partials_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_force_set")]
-  public static extern void labelObj_force_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_force_get")]
-  public static extern int labelObj_force_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_encoding_set")]
-  public static extern void labelObj_encoding_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_encoding_get")]
-  public static extern string labelObj_encoding_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_priority_set")]
-  public static extern void labelObj_priority_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_priority_get")]
-  public static extern int labelObj_priority_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_status_set")]
-  public static extern void labelObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_status_get")]
-  public static extern int labelObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_numstyles_set")]
-  public static extern void labelObj_numstyles_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_numstyles_get")]
-  public static extern int labelObj_numstyles_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annotext_set")]
-  public static extern void labelObj_annotext_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annotext_get")]
-  public static extern string labelObj_annotext_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annopoint_set")]
-  public static extern void labelObj_annopoint_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annopoint_get")]
-  public static extern IntPtr labelObj_annopoint_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annopoly_set")]
-  public static extern void labelObj_annopoly_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_annopoly_get")]
-  public static extern IntPtr labelObj_annopoly_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_leader_set")]
-  public static extern void labelObj_leader_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_leader_get")]
-  public static extern IntPtr labelObj_leader_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelObj")]
-  public static extern IntPtr new_labelObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelObj")]
-  public static extern void delete_labelObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_updateFromString")]
-  public static extern int labelObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_convertToString")]
-  public static extern string labelObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_removeBinding")]
-  public static extern int labelObj_removeBinding(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_getBinding")]
-  public static extern string labelObj_getBinding(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_setBinding")]
-  public static extern int labelObj_setBinding(HandleRef jarg1, int jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_setExpression")]
-  public static extern int labelObj_setExpression(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_getExpressionString")]
-  public static extern string labelObj_getExpressionString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_setText")]
-  public static extern int labelObj_setText(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_getTextString")]
-  public static extern string labelObj_getTextString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_getStyle")]
-  public static extern IntPtr labelObj_getStyle(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_insertStyle")]
-  public static extern int labelObj_insertStyle(HandleRef jarg1, HandleRef jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_removeStyle")]
-  public static extern IntPtr labelObj_removeStyle(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_moveStyleUp")]
-  public static extern int labelObj_moveStyleUp(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelObj_moveStyleDown")]
-  public static extern int labelObj_moveStyleDown(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_status_set")]
-  public static extern void classObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_status_get")]
-  public static extern int classObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_numstyles_get")]
-  public static extern int classObj_numstyles_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_numlabels_set")]
-  public static extern void classObj_numlabels_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_numlabels_get")]
-  public static extern int classObj_numlabels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_name_set")]
-  public static extern void classObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_name_get")]
-  public static extern string classObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_title_set")]
-  public static extern void classObj_title_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_title_get")]
-  public static extern string classObj_title_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_template_set")]
-  public static extern void classObj_template_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_template_get")]
-  public static extern string classObj_template_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_type_set")]
-  public static extern void classObj_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_type_get")]
-  public static extern int classObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_metadata_get")]
-  public static extern IntPtr classObj_metadata_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_validation_get")]
-  public static extern IntPtr classObj_validation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_minscaledenom_set")]
-  public static extern void classObj_minscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_minscaledenom_get")]
-  public static extern double classObj_minscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_maxscaledenom_set")]
-  public static extern void classObj_maxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_maxscaledenom_get")]
-  public static extern double classObj_maxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_minfeaturesize_set")]
-  public static extern void classObj_minfeaturesize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_minfeaturesize_get")]
-  public static extern int classObj_minfeaturesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_refcount_get")]
-  public static extern int classObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_layer_get")]
-  public static extern IntPtr classObj_layer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_debug_set")]
-  public static extern void classObj_debug_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_debug_get")]
-  public static extern int classObj_debug_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_keyimage_set")]
-  public static extern void classObj_keyimage_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_keyimage_get")]
-  public static extern string classObj_keyimage_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_group_set")]
-  public static extern void classObj_group_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_group_get")]
-  public static extern string classObj_group_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_leader_set")]
-  public static extern void classObj_leader_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_leader_get")]
-  public static extern IntPtr classObj_leader_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_classObj")]
-  public static extern IntPtr new_classObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_classObj")]
-  public static extern void delete_classObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_updateFromString")]
-  public static extern int classObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_convertToString")]
-  public static extern string classObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_clone")]
-  public static extern IntPtr classObj_clone(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_setExpression")]
-  public static extern int classObj_setExpression(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getExpressionString")]
-  public static extern string classObj_getExpressionString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_setText")]
-  public static extern int classObj_setText(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getTextString")]
-  public static extern string classObj_getTextString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getMetaData")]
-  public static extern string classObj_getMetaData(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_setMetaData")]
-  public static extern int classObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getFirstMetaDataKey")]
-  public static extern string classObj_getFirstMetaDataKey(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getNextMetaDataKey")]
-  public static extern string classObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_drawLegendIcon")]
-  public static extern int classObj_drawLegendIcon(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, int jarg7, int jarg8);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_createLegendIcon")]
-  public static extern IntPtr classObj_createLegendIcon(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getLabel")]
-  public static extern IntPtr classObj_getLabel(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_addLabel")]
-  public static extern int classObj_addLabel(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_removeLabel")]
-  public static extern IntPtr classObj_removeLabel(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_getStyle")]
-  public static extern IntPtr classObj_getStyle(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_insertStyle")]
-  public static extern int classObj_insertStyle(HandleRef jarg1, HandleRef jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_removeStyle")]
-  public static extern IntPtr classObj_removeStyle(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_moveStyleUp")]
-  public static extern int classObj_moveStyleUp(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_classObj_moveStyleDown")]
-  public static extern int classObj_moveStyleDown(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_featuresize_get")]
-  public static extern double labelCacheMemberObj_featuresize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_styles_get")]
-  public static extern IntPtr labelCacheMemberObj_styles_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_numstyles_get")]
-  public static extern int labelCacheMemberObj_numstyles_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_labels_get")]
-  public static extern IntPtr labelCacheMemberObj_labels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_numlabels_get")]
-  public static extern int labelCacheMemberObj_numlabels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_layerindex_get")]
-  public static extern int labelCacheMemberObj_layerindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_classindex_get")]
-  public static extern int labelCacheMemberObj_classindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_shapetype_get")]
-  public static extern int labelCacheMemberObj_shapetype_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_point_get")]
-  public static extern IntPtr labelCacheMemberObj_point_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_poly_get")]
-  public static extern IntPtr labelCacheMemberObj_poly_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_status_get")]
-  public static extern int labelCacheMemberObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_markerid_get")]
-  public static extern int labelCacheMemberObj_markerid_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_leaderline_get")]
-  public static extern IntPtr labelCacheMemberObj_leaderline_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheMemberObj_leaderbbox_get")]
-  public static extern IntPtr labelCacheMemberObj_leaderbbox_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheMemberObj")]
-  public static extern IntPtr new_labelCacheMemberObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheMemberObj")]
-  public static extern void delete_labelCacheMemberObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_markerCacheMemberObj_id_get")]
-  public static extern int markerCacheMemberObj_id_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_markerCacheMemberObj_poly_get")]
-  public static extern IntPtr markerCacheMemberObj_poly_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_markerCacheMemberObj")]
-  public static extern IntPtr new_markerCacheMemberObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_markerCacheMemberObj")]
-  public static extern void delete_markerCacheMemberObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_labels_get")]
-  public static extern IntPtr labelCacheSlotObj_labels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_numlabels_get")]
-  public static extern int labelCacheSlotObj_numlabels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_cachesize_get")]
-  public static extern int labelCacheSlotObj_cachesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_markers_get")]
-  public static extern IntPtr labelCacheSlotObj_markers_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_nummarkers_get")]
-  public static extern int labelCacheSlotObj_nummarkers_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheSlotObj_markercachesize_get")]
-  public static extern int labelCacheSlotObj_markercachesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheSlotObj")]
-  public static extern IntPtr new_labelCacheSlotObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheSlotObj")]
-  public static extern void delete_labelCacheSlotObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_slots_get")]
-  public static extern IntPtr labelCacheObj_slots_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_numlabels_get")]
-  public static extern int labelCacheObj_numlabels_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_gutter_get")]
-  public static extern int labelCacheObj_gutter_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelCacheObj_freeCache")]
-  public static extern void labelCacheObj_freeCache(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelCacheObj")]
-  public static extern IntPtr new_labelCacheObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelCacheObj")]
-  public static extern void delete_labelCacheObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultObj_shapeindex_get")]
-  public static extern int resultObj_shapeindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultObj_tileindex_get")]
-  public static extern int resultObj_tileindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultObj_resultindex_get")]
-  public static extern int resultObj_resultindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultObj_classindex_get")]
-  public static extern int resultObj_classindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_resultObj")]
-  public static extern IntPtr new_resultObj(int jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_resultObj")]
-  public static extern void delete_resultObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_numresults_get")]
-  public static extern int resultCacheObj_numresults_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_bounds_get")]
-  public static extern IntPtr resultCacheObj_bounds_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_usegetshape_set")]
-  public static extern void resultCacheObj_usegetshape_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_usegetshape_get")]
-  public static extern int resultCacheObj_usegetshape_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_resultCacheObj_getResult")]
-  public static extern IntPtr resultCacheObj_getResult(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_resultCacheObj")]
-  public static extern IntPtr new_resultCacheObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_resultCacheObj")]
-  public static extern void delete_resultCacheObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_filename_set")]
-  public static extern void symbolSetObj_filename_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_filename_get")]
-  public static extern string symbolSetObj_filename_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_imagecachesize_set")]
-  public static extern void symbolSetObj_imagecachesize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_imagecachesize_get")]
-  public static extern int symbolSetObj_imagecachesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_numsymbols_get")]
-  public static extern int symbolSetObj_numsymbols_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_maxsymbols_get")]
-  public static extern int symbolSetObj_maxsymbols_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_symbolSetObj")]
-  public static extern IntPtr new_symbolSetObj(string jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_symbolSetObj")]
-  public static extern void delete_symbolSetObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_getSymbol")]
-  public static extern IntPtr symbolSetObj_getSymbol(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_getSymbolByName")]
-  public static extern IntPtr symbolSetObj_getSymbolByName(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_index")]
-  public static extern int symbolSetObj_index(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_appendSymbol")]
-  public static extern int symbolSetObj_appendSymbol(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_removeSymbol")]
-  public static extern IntPtr symbolSetObj_removeSymbol(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolSetObj_save")]
-  public static extern int symbolSetObj_save(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_extent_set")]
-  public static extern void referenceMapObj_extent_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_extent_get")]
-  public static extern IntPtr referenceMapObj_extent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_height_set")]
-  public static extern void referenceMapObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_height_get")]
-  public static extern int referenceMapObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_width_set")]
-  public static extern void referenceMapObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_width_get")]
-  public static extern int referenceMapObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_color_set")]
-  public static extern void referenceMapObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_color_get")]
-  public static extern IntPtr referenceMapObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_outlinecolor_set")]
-  public static extern void referenceMapObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_outlinecolor_get")]
-  public static extern IntPtr referenceMapObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_image_set")]
-  public static extern void referenceMapObj_image_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_image_get")]
-  public static extern string referenceMapObj_image_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_status_set")]
-  public static extern void referenceMapObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_status_get")]
-  public static extern int referenceMapObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_marker_set")]
-  public static extern void referenceMapObj_marker_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_marker_get")]
-  public static extern int referenceMapObj_marker_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markername_set")]
-  public static extern void referenceMapObj_markername_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markername_get")]
-  public static extern string referenceMapObj_markername_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markersize_set")]
-  public static extern void referenceMapObj_markersize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_markersize_get")]
-  public static extern int referenceMapObj_markersize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_minboxsize_set")]
-  public static extern void referenceMapObj_minboxsize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_minboxsize_get")]
-  public static extern int referenceMapObj_minboxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_maxboxsize_set")]
-  public static extern void referenceMapObj_maxboxsize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_maxboxsize_get")]
-  public static extern int referenceMapObj_maxboxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_map_get")]
-  public static extern IntPtr referenceMapObj_map_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_updateFromString")]
-  public static extern int referenceMapObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_referenceMapObj_convertToString")]
-  public static extern string referenceMapObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_referenceMapObj")]
-  public static extern IntPtr new_referenceMapObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_referenceMapObj")]
-  public static extern void delete_referenceMapObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_imagecolor_set")]
-  public static extern void scalebarObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_imagecolor_get")]
-  public static extern IntPtr scalebarObj_imagecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_height_set")]
-  public static extern void scalebarObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_height_get")]
-  public static extern int scalebarObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_width_set")]
-  public static extern void scalebarObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_width_get")]
-  public static extern int scalebarObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_style_set")]
-  public static extern void scalebarObj_style_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_style_get")]
-  public static extern int scalebarObj_style_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_intervals_set")]
-  public static extern void scalebarObj_intervals_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_intervals_get")]
-  public static extern int scalebarObj_intervals_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_label_set")]
-  public static extern void scalebarObj_label_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_label_get")]
-  public static extern IntPtr scalebarObj_label_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_color_set")]
-  public static extern void scalebarObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_color_get")]
-  public static extern IntPtr scalebarObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_backgroundcolor_set")]
-  public static extern void scalebarObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_backgroundcolor_get")]
-  public static extern IntPtr scalebarObj_backgroundcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_outlinecolor_set")]
-  public static extern void scalebarObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_outlinecolor_get")]
-  public static extern IntPtr scalebarObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_units_set")]
-  public static extern void scalebarObj_units_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_units_get")]
-  public static extern int scalebarObj_units_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_status_set")]
-  public static extern void scalebarObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_status_get")]
-  public static extern int scalebarObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_position_set")]
-  public static extern void scalebarObj_position_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_position_get")]
-  public static extern int scalebarObj_position_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_postlabelcache_set")]
-  public static extern void scalebarObj_postlabelcache_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_postlabelcache_get")]
-  public static extern int scalebarObj_postlabelcache_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_align_set")]
-  public static extern void scalebarObj_align_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_align_get")]
-  public static extern int scalebarObj_align_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_updateFromString")]
-  public static extern int scalebarObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scalebarObj_convertToString")]
-  public static extern string scalebarObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_scalebarObj")]
-  public static extern IntPtr new_scalebarObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_scalebarObj")]
-  public static extern void delete_scalebarObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_imagecolor_set")]
-  public static extern void legendObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_imagecolor_get")]
-  public static extern IntPtr legendObj_imagecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_label_get")]
-  public static extern IntPtr legendObj_label_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizex_set")]
-  public static extern void legendObj_keysizex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizex_get")]
-  public static extern int legendObj_keysizex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizey_set")]
-  public static extern void legendObj_keysizey_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keysizey_get")]
-  public static extern int legendObj_keysizey_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingx_set")]
-  public static extern void legendObj_keyspacingx_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingx_get")]
-  public static extern int legendObj_keyspacingx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingy_set")]
-  public static extern void legendObj_keyspacingy_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_keyspacingy_get")]
-  public static extern int legendObj_keyspacingy_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_outlinecolor_set")]
-  public static extern void legendObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_outlinecolor_get")]
-  public static extern IntPtr legendObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_status_set")]
-  public static extern void legendObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_status_get")]
-  public static extern int legendObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_height_set")]
-  public static extern void legendObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_height_get")]
-  public static extern int legendObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_width_set")]
-  public static extern void legendObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_width_get")]
-  public static extern int legendObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_position_set")]
-  public static extern void legendObj_position_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_position_get")]
-  public static extern int legendObj_position_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_postlabelcache_set")]
-  public static extern void legendObj_postlabelcache_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_postlabelcache_get")]
-  public static extern int legendObj_postlabelcache_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_template_set")]
-  public static extern void legendObj_template_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_template_get")]
-  public static extern string legendObj_template_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_map_get")]
-  public static extern IntPtr legendObj_map_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_updateFromString")]
-  public static extern int legendObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_legendObj_convertToString")]
-  public static extern string legendObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_legendObj")]
-  public static extern IntPtr new_legendObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_legendObj")]
-  public static extern void delete_legendObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_width_get")]
-  public static extern int imageObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_height_get")]
-  public static extern int imageObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_resolution_get")]
-  public static extern double imageObj_resolution_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_resolutionfactor_get")]
-  public static extern double imageObj_resolutionfactor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_imagepath_get")]
-  public static extern string imageObj_imagepath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_imageurl_get")]
-  public static extern string imageObj_imageurl_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_format_get")]
-  public static extern IntPtr imageObj_format_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_getBytes")]
-  public static extern void imageObj_getBytes(HandleRef jarg1, SWIGByteArrayDelegate jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_imageObj")]
-  public static extern IntPtr new_imageObj(int jarg1, int jarg2, HandleRef jarg3, string jarg4, double jarg5, double jarg6);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_imageObj")]
-  public static extern void delete_imageObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_save")]
-  public static extern void imageObj_save(HandleRef jarg1, string jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_imageObj_getSize")]
-  public static extern int imageObj_getSize(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_minscale_set")]
-  public static extern void scaleTokenEntryObj_minscale_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_minscale_get")]
-  public static extern double scaleTokenEntryObj_minscale_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_maxscale_set")]
-  public static extern void scaleTokenEntryObj_maxscale_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_maxscale_get")]
-  public static extern double scaleTokenEntryObj_maxscale_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_value_set")]
-  public static extern void scaleTokenEntryObj_value_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenEntryObj_value_get")]
-  public static extern string scaleTokenEntryObj_value_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_scaleTokenEntryObj")]
-  public static extern IntPtr new_scaleTokenEntryObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_scaleTokenEntryObj")]
-  public static extern void delete_scaleTokenEntryObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_name_set")]
-  public static extern void scaleTokenObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_name_get")]
-  public static extern string scaleTokenObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_n_entries_set")]
-  public static extern void scaleTokenObj_n_entries_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_n_entries_get")]
-  public static extern int scaleTokenObj_n_entries_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_tokens_set")]
-  public static extern void scaleTokenObj_tokens_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_scaleTokenObj_tokens_get")]
-  public static extern IntPtr scaleTokenObj_tokens_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_scaleTokenObj")]
-  public static extern IntPtr new_scaleTokenObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_scaleTokenObj")]
-  public static extern void delete_scaleTokenObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classitem_set")]
-  public static extern void layerObj_classitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classitem_get")]
-  public static extern string layerObj_classitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_refcount_get")]
-  public static extern int layerObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numclasses_get")]
-  public static extern int layerObj_numclasses_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxclasses_get")]
-  public static extern int layerObj_maxclasses_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_index_get")]
-  public static extern int layerObj_index_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_map_get")]
-  public static extern IntPtr layerObj_map_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_header_set")]
-  public static extern void layerObj_header_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_header_get")]
-  public static extern string layerObj_header_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_footer_set")]
-  public static extern void layerObj_footer_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_footer_get")]
-  public static extern string layerObj_footer_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_template_set")]
-  public static extern void layerObj_template_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_template_get")]
-  public static extern string layerObj_template_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_name_set")]
-  public static extern void layerObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_name_get")]
-  public static extern string layerObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_group_set")]
-  public static extern void layerObj_group_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_group_get")]
-  public static extern string layerObj_group_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_status_set")]
-  public static extern void layerObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_status_get")]
-  public static extern int layerObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_data_set")]
-  public static extern void layerObj_data_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_data_get")]
-  public static extern string layerObj_data_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_type_set")]
-  public static extern void layerObj_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_type_get")]
-  public static extern int layerObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tolerance_set")]
-  public static extern void layerObj_tolerance_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tolerance_get")]
-  public static extern double layerObj_tolerance_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_toleranceunits_set")]
-  public static extern void layerObj_toleranceunits_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_toleranceunits_get")]
-  public static extern int layerObj_toleranceunits_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_symbolscaledenom_set")]
-  public static extern void layerObj_symbolscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_symbolscaledenom_get")]
-  public static extern double layerObj_symbolscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minscaledenom_set")]
-  public static extern void layerObj_minscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minscaledenom_get")]
-  public static extern double layerObj_minscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxscaledenom_set")]
-  public static extern void layerObj_maxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxscaledenom_get")]
-  public static extern double layerObj_maxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minfeaturesize_set")]
-  public static extern void layerObj_minfeaturesize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_minfeaturesize_get")]
-  public static extern int layerObj_minfeaturesize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelminscaledenom_set")]
-  public static extern void layerObj_labelminscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelminscaledenom_get")]
-  public static extern double layerObj_labelminscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelmaxscaledenom_set")]
-  public static extern void layerObj_labelmaxscaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelmaxscaledenom_get")]
-  public static extern double layerObj_labelmaxscaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_mingeowidth_set")]
-  public static extern void layerObj_mingeowidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_mingeowidth_get")]
-  public static extern double layerObj_mingeowidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxgeowidth_set")]
-  public static extern void layerObj_maxgeowidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxgeowidth_get")]
-  public static extern double layerObj_maxgeowidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_sizeunits_set")]
-  public static extern void layerObj_sizeunits_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_sizeunits_get")]
-  public static extern int layerObj_sizeunits_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxfeatures_set")]
-  public static extern void layerObj_maxfeatures_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_maxfeatures_get")]
-  public static extern int layerObj_maxfeatures_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_startindex_set")]
-  public static extern void layerObj_startindex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_startindex_get")]
-  public static extern int layerObj_startindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_offsite_set")]
-  public static extern void layerObj_offsite_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_offsite_get")]
-  public static extern IntPtr layerObj_offsite_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_transform_set")]
-  public static extern void layerObj_transform_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_transform_get")]
-  public static extern int layerObj_transform_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelcache_set")]
-  public static extern void layerObj_labelcache_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelcache_get")]
-  public static extern int layerObj_labelcache_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_postlabelcache_set")]
-  public static extern void layerObj_postlabelcache_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_postlabelcache_get")]
-  public static extern int layerObj_postlabelcache_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelitem_set")]
-  public static extern void layerObj_labelitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelitem_get")]
-  public static extern string layerObj_labelitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileitem_set")]
-  public static extern void layerObj_tileitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileitem_get")]
-  public static extern string layerObj_tileitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileindex_set")]
-  public static extern void layerObj_tileindex_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tileindex_get")]
-  public static extern string layerObj_tileindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tilesrs_set")]
-  public static extern void layerObj_tilesrs_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_tilesrs_get")]
-  public static extern string layerObj_tilesrs_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_units_set")]
-  public static extern void layerObj_units_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_units_get")]
-  public static extern int layerObj_units_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connection_set")]
-  public static extern void layerObj_connection_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connection_get")]
-  public static extern string layerObj_connection_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_set")]
-  public static extern void layerObj_plugin_library_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_get")]
-  public static extern string layerObj_plugin_library_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_original_set")]
-  public static extern void layerObj_plugin_library_original_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_plugin_library_original_get")]
-  public static extern string layerObj_plugin_library_original_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connectiontype_set")]
-  public static extern void layerObj_connectiontype_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_connectiontype_get")]
-  public static extern int layerObj_connectiontype_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numitems_get")]
-  public static extern int layerObj_numitems_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_bandsitem_set")]
-  public static extern void layerObj_bandsitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_bandsitem_get")]
-  public static extern string layerObj_bandsitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_filteritem_set")]
-  public static extern void layerObj_filteritem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_filteritem_get")]
-  public static extern string layerObj_filteritem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_styleitem_set")]
-  public static extern void layerObj_styleitem_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_styleitem_get")]
-  public static extern string layerObj_styleitem_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_requires_set")]
-  public static extern void layerObj_requires_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_requires_get")]
-  public static extern string layerObj_requires_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelrequires_set")]
-  public static extern void layerObj_labelrequires_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_labelrequires_get")]
-  public static extern string layerObj_labelrequires_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_metadata_get")]
-  public static extern IntPtr layerObj_metadata_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_validation_get")]
-  public static extern IntPtr layerObj_validation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_bindvals_get")]
-  public static extern IntPtr layerObj_bindvals_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_cluster_get")]
-  public static extern IntPtr layerObj_cluster_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_opacity_set")]
-  public static extern void layerObj_opacity_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_opacity_get")]
-  public static extern int layerObj_opacity_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_dump_set")]
-  public static extern void layerObj_dump_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_dump_get")]
-  public static extern int layerObj_dump_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_debug_set")]
-  public static extern void layerObj_debug_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_debug_get")]
-  public static extern int layerObj_debug_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_extent_get")]
-  public static extern IntPtr layerObj_extent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numprocessing_get")]
-  public static extern int layerObj_numprocessing_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_numjoins_get")]
-  public static extern int layerObj_numjoins_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classgroup_set")]
-  public static extern void layerObj_classgroup_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_classgroup_get")]
-  public static extern string layerObj_classgroup_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_mask_set")]
-  public static extern void layerObj_mask_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_mask_get")]
-  public static extern string layerObj_mask_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_layerObj")]
-  public static extern IntPtr new_layerObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_layerObj")]
-  public static extern void delete_layerObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_clone")]
-  public static extern IntPtr layerObj_clone(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_updateFromString")]
-  public static extern int layerObj_updateFromString(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_convertToString")]
-  public static extern string layerObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_insertClass")]
-  public static extern int layerObj_insertClass(HandleRef jarg1, HandleRef jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_removeClass")]
-  public static extern IntPtr layerObj_removeClass(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_open")]
-  public static extern int layerObj_open(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_whichShapes")]
-  public static extern int layerObj_whichShapes(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_nextShape")]
-  public static extern IntPtr layerObj_nextShape(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_close")]
-  public static extern void layerObj_close(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getShape")]
-  public static extern IntPtr layerObj_getShape(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNumResults")]
-  public static extern int layerObj_getNumResults(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getResultsBounds")]
-  public static extern IntPtr layerObj_getResultsBounds(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getResult")]
-  public static extern IntPtr layerObj_getResult(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getClass")]
-  public static extern IntPtr layerObj_getClass(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getItem")]
-  public static extern string layerObj_getItem(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setItems")]
-  public static extern int layerObj_setItems(HandleRef jarg1, IntPtr[] jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_draw")]
-  public static extern int layerObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_drawQuery")]
-  public static extern int layerObj_drawQuery(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByFilter")]
-  public static extern int layerObj_queryByFilter(HandleRef jarg1, HandleRef jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByAttributes")]
-  public static extern int layerObj_queryByAttributes(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByPoint")]
-  public static extern int layerObj_queryByPoint(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, double jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByRect")]
-  public static extern int layerObj_queryByRect(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByFeatures")]
-  public static extern int layerObj_queryByFeatures(HandleRef jarg1, HandleRef jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByShape")]
-  public static extern int layerObj_queryByShape(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_queryByIndex")]
-  public static extern int layerObj_queryByIndex(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getResults")]
-  public static extern IntPtr layerObj_getResults(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setFilter")]
-  public static extern int layerObj_setFilter(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getFilterString")]
-  public static extern string layerObj_getFilterString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setWKTProjection")]
-  public static extern int layerObj_setWKTProjection(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProjection")]
-  public static extern string layerObj_getProjection(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProjection")]
-  public static extern int layerObj_setProjection(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_addFeature")]
-  public static extern int layerObj_addFeature(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNumFeatures")]
-  public static extern int layerObj_getNumFeatures(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getExtent")]
-  public static extern IntPtr layerObj_getExtent(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setExtent")]
-  public static extern int layerObj_setExtent(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getMetaData")]
-  public static extern string layerObj_getMetaData(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setMetaData")]
-  public static extern int layerObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_removeMetaData")]
-  public static extern int layerObj_removeMetaData(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getFirstMetaDataKey")]
-  public static extern string layerObj_getFirstMetaDataKey(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getNextMetaDataKey")]
-  public static extern string layerObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getWMSFeatureInfoURL")]
-  public static extern string layerObj_getWMSFeatureInfoURL(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, int jarg5, string jarg6);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_executeWFSGetFeature")]
-  public static extern string layerObj_executeWFSGetFeature(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_applySLD")]
-  public static extern int layerObj_applySLD(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_applySLDURL")]
-  public static extern int layerObj_applySLDURL(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_generateSLD")]
-  public static extern string layerObj_generateSLD(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_isVisible")]
-  public static extern int layerObj_isVisible(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_moveClassUp")]
-  public static extern int layerObj_moveClassUp(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_moveClassDown")]
-  public static extern int layerObj_moveClassDown(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProcessingKey")]
-  public static extern void layerObj_setProcessingKey(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setProcessing")]
-  public static extern void layerObj_setProcessing(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_addProcessing")]
-  public static extern void layerObj_addProcessing(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProcessing")]
-  public static extern string layerObj_getProcessing(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getProcessingKey")]
-  public static extern string layerObj_getProcessingKey(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_clearProcessing")]
-  public static extern int layerObj_clearProcessing(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setConnectionType")]
-  public static extern int layerObj_setConnectionType(HandleRef jarg1, int jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getClassIndex")]
-  public static extern int layerObj_getClassIndex(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_getGeomTransform")]
-  public static extern string layerObj_getGeomTransform(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_layerObj_setGeomTransform")]
-  public static extern void layerObj_setGeomTransform(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_name_set")]
-  public static extern void mapObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_name_get")]
-  public static extern string mapObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_status_set")]
-  public static extern void mapObj_status_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_status_get")]
-  public static extern int mapObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_height_set")]
-  public static extern void mapObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_height_get")]
-  public static extern int mapObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_width_set")]
-  public static extern void mapObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_width_get")]
-  public static extern int mapObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxsize_set")]
-  public static extern void mapObj_maxsize_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxsize_get")]
-  public static extern int mapObj_maxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_refcount_get")]
-  public static extern int mapObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_numlayers_get")]
-  public static extern int mapObj_numlayers_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_maxlayers_get")]
-  public static extern int mapObj_maxlayers_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_symbolset_get")]
-  public static extern IntPtr mapObj_symbolset_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_fontset_get")]
-  public static extern IntPtr mapObj_fontset_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_labelcache_get")]
-  public static extern IntPtr mapObj_labelcache_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_transparent_set")]
-  public static extern void mapObj_transparent_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_transparent_get")]
-  public static extern int mapObj_transparent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_interlace_set")]
-  public static extern void mapObj_interlace_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_interlace_get")]
-  public static extern int mapObj_interlace_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagequality_set")]
-  public static extern void mapObj_imagequality_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagequality_get")]
-  public static extern int mapObj_imagequality_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_extent_set")]
-  public static extern void mapObj_extent_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_extent_get")]
-  public static extern IntPtr mapObj_extent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_cellsize_set")]
-  public static extern void mapObj_cellsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_cellsize_get")]
-  public static extern double mapObj_cellsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_units_set")]
-  public static extern void mapObj_units_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_units_get")]
-  public static extern int mapObj_units_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scaledenom_set")]
-  public static extern void mapObj_scaledenom_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scaledenom_get")]
-  public static extern double mapObj_scaledenom_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_resolution_set")]
-  public static extern void mapObj_resolution_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_resolution_get")]
-  public static extern double mapObj_resolution_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_defresolution_set")]
-  public static extern void mapObj_defresolution_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_defresolution_get")]
-  public static extern double mapObj_defresolution_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_shapepath_set")]
-  public static extern void mapObj_shapepath_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_shapepath_get")]
-  public static extern string mapObj_shapepath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_mappath_set")]
-  public static extern void mapObj_mappath_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_mappath_get")]
-  public static extern string mapObj_mappath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagecolor_set")]
-  public static extern void mapObj_imagecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagecolor_get")]
-  public static extern IntPtr mapObj_imagecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_numoutputformats_get")]
-  public static extern int mapObj_numoutputformats_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_outputformat_get")]
-  public static extern IntPtr mapObj_outputformat_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_imagetype_get")]
-  public static extern string mapObj_imagetype_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_reference_get")]
-  public static extern IntPtr mapObj_reference_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scalebar_get")]
-  public static extern IntPtr mapObj_scalebar_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_legend_get")]
-  public static extern IntPtr mapObj_legend_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_querymap_get")]
-  public static extern IntPtr mapObj_querymap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_web_get")]
-  public static extern IntPtr mapObj_web_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_layerorder_set")]
-  public static extern void mapObj_layerorder_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_layerorder_get")]
-  public static extern IntPtr mapObj_layerorder_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_debug_set")]
-  public static extern void mapObj_debug_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_debug_get")]
-  public static extern int mapObj_debug_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_datapattern_set")]
-  public static extern void mapObj_datapattern_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_datapattern_get")]
-  public static extern string mapObj_datapattern_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_templatepattern_set")]
-  public static extern void mapObj_templatepattern_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_templatepattern_get")]
-  public static extern string mapObj_templatepattern_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_configoptions_get")]
-  public static extern IntPtr mapObj_configoptions_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_mapObj")]
-  public static extern IntPtr new_mapObj(string jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_mapObj")]
-  public static extern void delete_mapObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_clone")]
-  public static extern IntPtr mapObj_clone(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_insertLayer")]
-  public static extern int mapObj_insertLayer(HandleRef jarg1, HandleRef jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeLayer")]
-  public static extern IntPtr mapObj_removeLayer(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setExtent")]
-  public static extern int mapObj_setExtent(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_offsetExtent")]
-  public static extern int mapObj_offsetExtent(HandleRef jarg1, double jarg2, double jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_scaleExtent")]
-  public static extern int mapObj_scaleExtent(HandleRef jarg1, double jarg2, double jarg3, double jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setCenter")]
-  public static extern int mapObj_setCenter(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setSize")]
-  public static extern int mapObj_setSize(HandleRef jarg1, int jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setRotation")]
-  public static extern int mapObj_setRotation(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayer")]
-  public static extern IntPtr mapObj_getLayer(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayerByName")]
-  public static extern IntPtr mapObj_getLayerByName(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getSymbolByName")]
-  public static extern int mapObj_getSymbolByName(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_prepareQuery")]
-  public static extern void mapObj_prepareQuery(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_prepareImage")]
-  public static extern IntPtr mapObj_prepareImage(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setImageType")]
-  public static extern void mapObj_setImageType(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_selectOutputFormat")]
-  public static extern void mapObj_selectOutputFormat(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getOutputFormat")]
-  public static extern IntPtr mapObj_getOutputFormat(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setOutputFormat")]
-  public static extern void mapObj_setOutputFormat(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_draw")]
-  public static extern IntPtr mapObj_draw(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawQuery")]
-  public static extern IntPtr mapObj_drawQuery(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawLegend")]
-  public static extern IntPtr mapObj_drawLegend(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawScalebar")]
-  public static extern IntPtr mapObj_drawScalebar(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawReferenceMap")]
-  public static extern IntPtr mapObj_drawReferenceMap(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_embedScalebar")]
-  public static extern int mapObj_embedScalebar(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_embedLegend")]
-  public static extern int mapObj_embedLegend(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_drawLabelCache")]
-  public static extern int mapObj_drawLabelCache(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLabel")]
-  public static extern IntPtr mapObj_getLabel(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_nextLabel")]
-  public static extern IntPtr mapObj_nextLabel(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByFilter")]
-  public static extern int mapObj_queryByFilter(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByPoint")]
-  public static extern int mapObj_queryByPoint(HandleRef jarg1, HandleRef jarg2, int jarg3, double jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByRect")]
-  public static extern int mapObj_queryByRect(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByFeatures")]
-  public static extern int mapObj_queryByFeatures(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_queryByShape")]
-  public static extern int mapObj_queryByShape(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setWKTProjection")]
-  public static extern int mapObj_setWKTProjection(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getProjection")]
-  public static extern string mapObj_getProjection(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setProjection")]
-  public static extern int mapObj_setProjection(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_save")]
-  public static extern int mapObj_save(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveQuery")]
-  public static extern int mapObj_saveQuery(HandleRef jarg1, string jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadQuery")]
-  public static extern int mapObj_loadQuery(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_freeQuery")]
-  public static extern void mapObj_freeQuery(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveQueryAsGML")]
-  public static extern int mapObj_saveQueryAsGML(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getMetaData")]
-  public static extern string mapObj_getMetaData(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setMetaData")]
-  public static extern int mapObj_setMetaData(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeMetaData")]
-  public static extern int mapObj_removeMetaData(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getFirstMetaDataKey")]
-  public static extern string mapObj_getFirstMetaDataKey(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getNextMetaDataKey")]
-  public static extern string mapObj_getNextMetaDataKey(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setSymbolSet")]
-  public static extern int mapObj_setSymbolSet(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getNumSymbols")]
-  public static extern int mapObj_getNumSymbols(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setFontSet")]
-  public static extern int mapObj_setFontSet(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_saveMapContext")]
-  public static extern int mapObj_saveMapContext(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadMapContext")]
-  public static extern int mapObj_loadMapContext(HandleRef jarg1, string jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_moveLayerUp")]
-  public static extern int mapObj_moveLayerUp(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_moveLayerDown")]
-  public static extern int mapObj_moveLayerDown(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getLayersDrawingOrder")]
-  public static extern IntPtr mapObj_getLayersDrawingOrder(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setLayersDrawingOrder")]
-  public static extern int mapObj_setLayersDrawingOrder(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_setConfigOption")]
-  public static extern void mapObj_setConfigOption(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getConfigOption")]
-  public static extern string mapObj_getConfigOption(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applyConfigOptions")]
-  public static extern void mapObj_applyConfigOptions(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applySLD")]
-  public static extern int mapObj_applySLD(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_applySLDURL")]
-  public static extern int mapObj_applySLDURL(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_generateSLD")]
-  public static extern string mapObj_generateSLD(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processTemplate")]
-  public static extern string mapObj_processTemplate(HandleRef jarg1, int jarg2, IntPtr[] jarg3, IntPtr[] jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processLegendTemplate")]
-  public static extern string mapObj_processLegendTemplate(HandleRef jarg1, IntPtr[] jarg2, IntPtr[] jarg3, int jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_processQueryTemplate")]
-  public static extern string mapObj_processQueryTemplate(HandleRef jarg1, IntPtr[] jarg2, IntPtr[] jarg3, int jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_getOutputFormatByName")]
-  public static extern IntPtr mapObj_getOutputFormatByName(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_appendOutputFormat")]
-  public static extern int mapObj_appendOutputFormat(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_removeOutputFormat")]
-  public static extern int mapObj_removeOutputFormat(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_loadOWSParameters")]
-  public static extern int mapObj_loadOWSParameters(HandleRef jarg1, HandleRef jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_OWSDispatch")]
-  public static extern int mapObj_OWSDispatch(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_convertToString")]
-  public static extern string mapObj_convertToString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomPoint")]
-  public static extern int mapObj_zoomPoint(HandleRef jarg1, int jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, HandleRef jarg7);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomRectangle")]
-  public static extern int mapObj_zoomRectangle(HandleRef jarg1, HandleRef jarg2, int jarg3, int jarg4, HandleRef jarg5, HandleRef jarg6);
-
-  [DllImport("mapscript", EntryPoint="CSharp_mapObj_zoomScale")]
-  public static extern int mapObj_zoomScale(HandleRef jarg1, double jarg2, HandleRef jarg3, int jarg4, int jarg5, HandleRef jarg6, HandleRef jarg7);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msSaveImage")]
-  public static extern int msSaveImage(HandleRef jarg1, HandleRef jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msFreeImage")]
-  public static extern void msFreeImage(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msSetup")]
-  public static extern int msSetup();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msCleanup")]
-  public static extern void msCleanup(int jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msLoadMapFromString")]
-  public static extern IntPtr msLoadMapFromString(string jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_width_set")]
-  public static extern void strokeStyleObj_width_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_width_get")]
-  public static extern double strokeStyleObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_patternlength_set")]
-  public static extern void strokeStyleObj_patternlength_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_patternlength_get")]
-  public static extern int strokeStyleObj_patternlength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_pattern_set")]
-  public static extern void strokeStyleObj_pattern_set(HandleRef jarg1, IntPtr jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_pattern_get")]
-  public static extern IntPtr strokeStyleObj_pattern_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_patternoffset_set")]
-  public static extern void strokeStyleObj_patternoffset_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_patternoffset_get")]
-  public static extern double strokeStyleObj_patternoffset_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_color_set")]
-  public static extern void strokeStyleObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_color_get")]
-  public static extern IntPtr strokeStyleObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linecap_set")]
-  public static extern void strokeStyleObj_linecap_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linecap_get")]
-  public static extern int strokeStyleObj_linecap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linejoin_set")]
-  public static extern void strokeStyleObj_linejoin_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linejoin_get")]
-  public static extern int strokeStyleObj_linejoin_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linejoinmaxsize_set")]
-  public static extern void strokeStyleObj_linejoinmaxsize_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_strokeStyleObj_linejoinmaxsize_get")]
-  public static extern double strokeStyleObj_linejoinmaxsize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_strokeStyleObj")]
-  public static extern IntPtr new_strokeStyleObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_strokeStyleObj")]
-  public static extern void delete_strokeStyleObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_color_set")]
-  public static extern void symbolStyleObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_color_get")]
-  public static extern IntPtr symbolStyleObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_backgroundcolor_set")]
-  public static extern void symbolStyleObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_backgroundcolor_get")]
-  public static extern IntPtr symbolStyleObj_backgroundcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_outlinewidth_set")]
-  public static extern void symbolStyleObj_outlinewidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_outlinewidth_get")]
-  public static extern double symbolStyleObj_outlinewidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_outlinecolor_set")]
-  public static extern void symbolStyleObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_outlinecolor_get")]
-  public static extern IntPtr symbolStyleObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_scale_set")]
-  public static extern void symbolStyleObj_scale_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_scale_get")]
-  public static extern double symbolStyleObj_scale_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_rotation_set")]
-  public static extern void symbolStyleObj_rotation_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_rotation_get")]
-  public static extern double symbolStyleObj_rotation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_gap_set")]
-  public static extern void symbolStyleObj_gap_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_gap_get")]
-  public static extern double symbolStyleObj_gap_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_style_set")]
-  public static extern void symbolStyleObj_style_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolStyleObj_style_get")]
-  public static extern IntPtr symbolStyleObj_style_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_symbolStyleObj")]
-  public static extern IntPtr new_symbolStyleObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_symbolStyleObj")]
-  public static extern void delete_symbolStyleObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_symbol_set")]
-  public static extern void tileCacheObj_symbol_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_symbol_get")]
-  public static extern IntPtr tileCacheObj_symbol_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_width_set")]
-  public static extern void tileCacheObj_width_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_width_get")]
-  public static extern int tileCacheObj_width_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_height_set")]
-  public static extern void tileCacheObj_height_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_height_get")]
-  public static extern int tileCacheObj_height_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_color_set")]
-  public static extern void tileCacheObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_color_get")]
-  public static extern IntPtr tileCacheObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_outlinecolor_set")]
-  public static extern void tileCacheObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_outlinecolor_get")]
-  public static extern IntPtr tileCacheObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_backgroundcolor_set")]
-  public static extern void tileCacheObj_backgroundcolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_backgroundcolor_get")]
-  public static extern IntPtr tileCacheObj_backgroundcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_outlinewidth_set")]
-  public static extern void tileCacheObj_outlinewidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_outlinewidth_get")]
-  public static extern double tileCacheObj_outlinewidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_rotation_set")]
-  public static extern void tileCacheObj_rotation_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_rotation_get")]
-  public static extern double tileCacheObj_rotation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_scale_set")]
-  public static extern void tileCacheObj_scale_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_scale_get")]
-  public static extern double tileCacheObj_scale_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_image_set")]
-  public static extern void tileCacheObj_image_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_image_get")]
-  public static extern IntPtr tileCacheObj_image_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_next_set")]
-  public static extern void tileCacheObj_next_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_tileCacheObj_next_get")]
-  public static extern IntPtr tileCacheObj_next_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_tileCacheObj")]
-  public static extern IntPtr new_tileCacheObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_tileCacheObj")]
-  public static extern void delete_tileCacheObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_fonts_set")]
-  public static extern void labelStyleObj_fonts_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_fonts_get")]
-  public static extern IntPtr labelStyleObj_fonts_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_numfonts_set")]
-  public static extern void labelStyleObj_numfonts_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_numfonts_get")]
-  public static extern int labelStyleObj_numfonts_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_size_set")]
-  public static extern void labelStyleObj_size_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_size_get")]
-  public static extern double labelStyleObj_size_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_rotation_set")]
-  public static extern void labelStyleObj_rotation_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_rotation_get")]
-  public static extern double labelStyleObj_rotation_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_color_set")]
-  public static extern void labelStyleObj_color_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_color_get")]
-  public static extern IntPtr labelStyleObj_color_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_outlinewidth_set")]
-  public static extern void labelStyleObj_outlinewidth_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_outlinewidth_get")]
-  public static extern double labelStyleObj_outlinewidth_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_outlinecolor_set")]
-  public static extern void labelStyleObj_outlinecolor_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_outlinecolor_get")]
-  public static extern IntPtr labelStyleObj_outlinecolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_antialias_set")]
-  public static extern void labelStyleObj_antialias_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_labelStyleObj_antialias_get")]
-  public static extern int labelStyleObj_antialias_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_labelStyleObj")]
-  public static extern IntPtr new_labelStyleObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_labelStyleObj")]
-  public static extern void delete_labelStyleObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_minx_set")]
-  public static extern void rectObj_minx_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_minx_get")]
-  public static extern double rectObj_minx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_miny_set")]
-  public static extern void rectObj_miny_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_miny_get")]
-  public static extern double rectObj_miny_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxx_set")]
-  public static extern void rectObj_maxx_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxx_get")]
-  public static extern double rectObj_maxx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxy_set")]
-  public static extern void rectObj_maxy_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_maxy_get")]
-  public static extern double rectObj_maxy_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_rectObj")]
-  public static extern IntPtr new_rectObj(double jarg1, double jarg2, double jarg3, double jarg4, int jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_rectObj")]
-  public static extern void delete_rectObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_project")]
-  public static extern int rectObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_fit")]
-  public static extern double rectObj_fit(HandleRef jarg1, int jarg2, int jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_draw")]
-  public static extern int rectObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5, string jarg6);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_getCenter")]
-  public static extern IntPtr rectObj_getCenter(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_toPolygon")]
-  public static extern IntPtr rectObj_toPolygon(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_rectObj_toString")]
-  public static extern string rectObj_toString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_x_set")]
-  public static extern void pointObj_x_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_x_get")]
-  public static extern double pointObj_x_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_y_set")]
-  public static extern void pointObj_y_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_y_get")]
-  public static extern double pointObj_y_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_pointObj")]
-  public static extern IntPtr new_pointObj(double jarg1, double jarg2, double jarg3, double jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_pointObj")]
-  public static extern void delete_pointObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_project")]
-  public static extern int pointObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_draw")]
-  public static extern int pointObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, int jarg5, string jarg6);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToPoint")]
-  public static extern double pointObj_distanceToPoint(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToSegment")]
-  public static extern double pointObj_distanceToSegment(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_distanceToShape")]
-  public static extern double pointObj_distanceToShape(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXY")]
-  public static extern int pointObj_setXY(HandleRef jarg1, double jarg2, double jarg3, double jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXYZ")]
-  public static extern int pointObj_setXYZ(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_setXYZM")]
-  public static extern int pointObj_setXYZM(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_toString")]
-  public static extern string pointObj_toString(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_pointObj_toShape")]
-  public static extern IntPtr pointObj_toShape(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_lineObj_numpoints_get")]
-  public static extern int lineObj_numpoints_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_lineObj")]
-  public static extern IntPtr new_lineObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_lineObj")]
-  public static extern void delete_lineObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_lineObj_project")]
-  public static extern int lineObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_lineObj_get")]
-  public static extern IntPtr lineObj_get(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_lineObj_add")]
-  public static extern int lineObj_add(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_lineObj_set")]
-  public static extern int lineObj_set(HandleRef jarg1, int jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_numlines_get")]
-  public static extern int shapeObj_numlines_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_numvalues_get")]
-  public static extern int shapeObj_numvalues_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_bounds_set")]
-  public static extern void shapeObj_bounds_set(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_bounds_get")]
-  public static extern IntPtr shapeObj_bounds_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_type_set")]
-  public static extern void shapeObj_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_type_get")]
-  public static extern int shapeObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_index_set")]
-  public static extern void shapeObj_index_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_index_get")]
-  public static extern int shapeObj_index_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_tileindex_set")]
-  public static extern void shapeObj_tileindex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_tileindex_get")]
-  public static extern int shapeObj_tileindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_classindex_set")]
-  public static extern void shapeObj_classindex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_classindex_get")]
-  public static extern int shapeObj_classindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_text_set")]
-  public static extern void shapeObj_text_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_text_get")]
-  public static extern string shapeObj_text_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_scratch_set")]
-  public static extern void shapeObj_scratch_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_scratch_get")]
-  public static extern int shapeObj_scratch_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_resultindex_set")]
-  public static extern void shapeObj_resultindex_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_resultindex_get")]
-  public static extern int shapeObj_resultindex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_shapeObj")]
-  public static extern IntPtr new_shapeObj(int jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_shapeObj")]
-  public static extern void delete_shapeObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_fromWKT")]
-  public static extern IntPtr shapeObj_fromWKT(string jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_project")]
-  public static extern int shapeObj_project(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_get")]
-  public static extern IntPtr shapeObj_get(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_add")]
-  public static extern int shapeObj_add(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_draw")]
-  public static extern int shapeObj_draw(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_setBounds")]
-  public static extern void shapeObj_setBounds(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_clone")]
-  public static extern IntPtr shapeObj_clone(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_copy")]
-  public static extern int shapeObj_copy(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_toWKT")]
-  public static extern string shapeObj_toWKT(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_buffer")]
-  public static extern IntPtr shapeObj_buffer(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_simplify")]
-  public static extern IntPtr shapeObj_simplify(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_topologyPreservingSimplify")]
-  public static extern IntPtr shapeObj_topologyPreservingSimplify(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_convexHull")]
-  public static extern IntPtr shapeObj_convexHull(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_boundary")]
-  public static extern IntPtr shapeObj_boundary(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getCentroid")]
-  public static extern IntPtr shapeObj_getCentroid(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_Union")]
-  public static extern IntPtr shapeObj_Union(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_intersection")]
-  public static extern IntPtr shapeObj_intersection(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_difference")]
-  public static extern IntPtr shapeObj_difference(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_symDifference")]
-  public static extern IntPtr shapeObj_symDifference(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_contains__SWIG_0")]
-  public static extern int shapeObj_contains__SWIG_0(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_overlaps")]
-  public static extern int shapeObj_overlaps(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_within")]
-  public static extern int shapeObj_within(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_crosses")]
-  public static extern int shapeObj_crosses(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_intersects")]
-  public static extern int shapeObj_intersects(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_touches")]
-  public static extern int shapeObj_touches(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_equals")]
-  public static extern int shapeObj_equals(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_disjoint")]
-  public static extern int shapeObj_disjoint(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getArea")]
-  public static extern double shapeObj_getArea(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getLength")]
-  public static extern double shapeObj_getLength(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getValue")]
-  public static extern string shapeObj_getValue(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_contains__SWIG_1")]
-  public static extern int shapeObj_contains__SWIG_1(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_distanceToPoint")]
-  public static extern double shapeObj_distanceToPoint(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_distanceToShape")]
-  public static extern double shapeObj_distanceToShape(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_getLabelPoint")]
-  public static extern IntPtr shapeObj_getLabelPoint(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_setValue")]
-  public static extern int shapeObj_setValue(HandleRef jarg1, int jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapeObj_initValues")]
-  public static extern void shapeObj_initValues(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_SHX_BUFFER_PAGE_get")]
-  public static extern int SHX_BUFFER_PAGE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_POINT_get")]
-  public static extern int MS_SHAPEFILE_POINT_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_ARC_get")]
-  public static extern int MS_SHAPEFILE_ARC_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_POLYGON_get")]
-  public static extern int MS_SHAPEFILE_POLYGON_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHAPEFILE_MULTIPOINT_get")]
-  public static extern int MS_SHAPEFILE_MULTIPOINT_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POINTZ_get")]
-  public static extern int MS_SHP_POINTZ_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_ARCZ_get")]
-  public static extern int MS_SHP_ARCZ_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POLYGONZ_get")]
-  public static extern int MS_SHP_POLYGONZ_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_MULTIPOINTZ_get")]
-  public static extern int MS_SHP_MULTIPOINTZ_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POINTM_get")]
-  public static extern int MS_SHP_POINTM_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_ARCM_get")]
-  public static extern int MS_SHP_ARCM_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_POLYGONM_get")]
-  public static extern int MS_SHP_POLYGONM_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHP_MULTIPOINTM_get")]
-  public static extern int MS_SHP_MULTIPOINTM_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nRecords_get")]
-  public static extern int DBFInfo_nRecords_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nRecordLength_get")]
-  public static extern uint DBFInfo_nRecordLength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nHeaderLength_get")]
-  public static extern int DBFInfo_nHeaderLength_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nFields_get")]
-  public static extern int DBFInfo_nFields_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldOffset_get")]
-  public static extern IntPtr DBFInfo_panFieldOffset_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldSize_get")]
-  public static extern IntPtr DBFInfo_panFieldSize_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_panFieldDecimals_get")]
-  public static extern IntPtr DBFInfo_panFieldDecimals_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pachFieldType_get")]
-  public static extern string DBFInfo_pachFieldType_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszHeader_get")]
-  public static extern string DBFInfo_pszHeader_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nCurrentRecord_get")]
-  public static extern int DBFInfo_nCurrentRecord_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bCurrentRecordModified_get")]
-  public static extern int DBFInfo_bCurrentRecordModified_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszCurrentRecord_get")]
-  public static extern string DBFInfo_pszCurrentRecord_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bNoHeader_get")]
-  public static extern int DBFInfo_bNoHeader_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_bUpdated_get")]
-  public static extern int DBFInfo_bUpdated_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_pszStringField_get")]
-  public static extern string DBFInfo_pszStringField_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_nStringFieldLen_get")]
-  public static extern int DBFInfo_nStringFieldLen_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldName")]
-  public static extern string DBFInfo_getFieldName(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldWidth")]
-  public static extern int DBFInfo_getFieldWidth(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldDecimals")]
-  public static extern int DBFInfo_getFieldDecimals(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_DBFInfo_getFieldType")]
-  public static extern int DBFInfo_getFieldType(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_DBFInfo")]
-  public static extern IntPtr new_DBFInfo();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_DBFInfo")]
-  public static extern void delete_DBFInfo(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_source_get")]
-  public static extern string shapefileObj_source_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_type_get")]
-  public static extern int shapefileObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_numshapes_get")]
-  public static extern int shapefileObj_numshapes_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_bounds_get")]
-  public static extern IntPtr shapefileObj_bounds_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_lastshape_get")]
-  public static extern int shapefileObj_lastshape_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_status_get")]
-  public static extern IntPtr shapefileObj_status_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_statusbounds_get")]
-  public static extern IntPtr shapefileObj_statusbounds_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_isopen_get")]
-  public static extern int shapefileObj_isopen_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_shapefileObj")]
-  public static extern IntPtr new_shapefileObj(string jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_shapefileObj")]
-  public static extern void delete_shapefileObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_get")]
-  public static extern int shapefileObj_get(HandleRef jarg1, int jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getShape")]
-  public static extern IntPtr shapefileObj_getShape(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getPoint")]
-  public static extern int shapefileObj_getPoint(HandleRef jarg1, int jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getTransformed")]
-  public static extern int shapefileObj_getTransformed(HandleRef jarg1, HandleRef jarg2, int jarg3, HandleRef jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getExtent")]
-  public static extern void shapefileObj_getExtent(HandleRef jarg1, int jarg2, HandleRef jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_add")]
-  public static extern int shapefileObj_add(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_addPoint")]
-  public static extern int shapefileObj_addPoint(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_shapefileObj_getDBF")]
-  public static extern IntPtr shapefileObj_getDBF(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_wkp_none_get")]
-  public static extern int wkp_none_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_wkp_lonlat_get")]
-  public static extern int wkp_lonlat_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_wkp_gmerc_get")]
-  public static extern int wkp_gmerc_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_numargs_get")]
-  public static extern int projectionObj_numargs_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_automatic_get")]
-  public static extern int projectionObj_automatic_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_wellknownprojection_set")]
-  public static extern void projectionObj_wellknownprojection_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_wellknownprojection_get")]
-  public static extern int projectionObj_wellknownprojection_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_projectionObj")]
-  public static extern IntPtr new_projectionObj(string jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_projectionObj")]
-  public static extern void delete_projectionObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_setWKTProjection")]
-  public static extern int projectionObj_setWKTProjection(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_projectionObj_getUnits")]
-  public static extern int projectionObj_getUnits(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SYMBOL_ALLOCSIZE_get")]
-  public static extern int MS_SYMBOL_ALLOCSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MAXVECTORPOINTS_get")]
-  public static extern int MS_MAXVECTORPOINTS_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MAXPATTERNLENGTH_get")]
-  public static extern int MS_MAXPATTERNLENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_IMAGECACHESIZE_get")]
-  public static extern int MS_IMAGECACHESIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_red_set")]
-  public static extern void colorObj_red_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_red_get")]
-  public static extern int colorObj_red_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_green_set")]
-  public static extern void colorObj_green_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_green_get")]
-  public static extern int colorObj_green_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_blue_set")]
-  public static extern void colorObj_blue_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_blue_get")]
-  public static extern int colorObj_blue_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_alpha_set")]
-  public static extern void colorObj_alpha_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_alpha_get")]
-  public static extern int colorObj_alpha_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_colorObj")]
-  public static extern IntPtr new_colorObj(int jarg1, int jarg2, int jarg3, int jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_colorObj")]
-  public static extern void delete_colorObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_setRGB")]
-  public static extern int colorObj_setRGB(HandleRef jarg1, int jarg2, int jarg3, int jarg4);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_setHex")]
-  public static extern int colorObj_setHex(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_colorObj_toHex")]
-  public static extern string colorObj_toHex(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_name_set")]
-  public static extern void symbolObj_name_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_name_get")]
-  public static extern string symbolObj_name_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_type_set")]
-  public static extern void symbolObj_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_type_get")]
-  public static extern int symbolObj_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_inmapfile_set")]
-  public static extern void symbolObj_inmapfile_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_inmapfile_get")]
-  public static extern int symbolObj_inmapfile_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizex_set")]
-  public static extern void symbolObj_sizex_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizex_get")]
-  public static extern double symbolObj_sizex_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizey_set")]
-  public static extern void symbolObj_sizey_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_sizey_get")]
-  public static extern double symbolObj_sizey_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_minx_set")]
-  public static extern void symbolObj_minx_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_minx_get")]
-  public static extern double symbolObj_minx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_miny_set")]
-  public static extern void symbolObj_miny_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_miny_get")]
-  public static extern double symbolObj_miny_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_maxx_set")]
-  public static extern void symbolObj_maxx_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_maxx_get")]
-  public static extern double symbolObj_maxx_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_maxy_set")]
-  public static extern void symbolObj_maxy_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_maxy_get")]
-  public static extern double symbolObj_maxy_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_refcount_get")]
-  public static extern int symbolObj_refcount_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_numpoints_get")]
-  public static extern int symbolObj_numpoints_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_filled_set")]
-  public static extern void symbolObj_filled_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_filled_get")]
-  public static extern int symbolObj_filled_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_anchorpoint_x_set")]
-  public static extern void symbolObj_anchorpoint_x_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_anchorpoint_x_get")]
-  public static extern double symbolObj_anchorpoint_x_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_anchorpoint_y_set")]
-  public static extern void symbolObj_anchorpoint_y_set(HandleRef jarg1, double jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_anchorpoint_y_get")]
-  public static extern double symbolObj_anchorpoint_y_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_imagepath_get")]
-  public static extern string symbolObj_imagepath_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparent_set")]
-  public static extern void symbolObj_transparent_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparent_get")]
-  public static extern int symbolObj_transparent_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparentcolor_set")]
-  public static extern void symbolObj_transparentcolor_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_transparentcolor_get")]
-  public static extern int symbolObj_transparentcolor_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_character_set")]
-  public static extern void symbolObj_character_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_character_get")]
-  public static extern string symbolObj_character_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_antialias_set")]
-  public static extern void symbolObj_antialias_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_antialias_get")]
-  public static extern int symbolObj_antialias_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_font_set")]
-  public static extern void symbolObj_font_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_font_get")]
-  public static extern string symbolObj_font_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_symbolObj")]
-  public static extern IntPtr new_symbolObj(string jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_symbolObj")]
-  public static extern void delete_symbolObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setImagepath")]
-  public static extern int symbolObj_setImagepath(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setPoints")]
-  public static extern int symbolObj_setPoints(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_getPoints")]
-  public static extern IntPtr symbolObj_getPoints(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_getImage")]
-  public static extern IntPtr symbolObj_getImage(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_symbolObj_setImage")]
-  public static extern int symbolObj_setImage(HandleRef jarg1, HandleRef jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NOERR_get")]
-  public static extern int MS_NOERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_IOERR_get")]
-  public static extern int MS_IOERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MEMERR_get")]
-  public static extern int MS_MEMERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_TYPEERR_get")]
-  public static extern int MS_TYPEERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SYMERR_get")]
-  public static extern int MS_SYMERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_REGEXERR_get")]
-  public static extern int MS_REGEXERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_TTFERR_get")]
-  public static extern int MS_TTFERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_DBFERR_get")]
-  public static extern int MS_DBFERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_GDERR_get")]
-  public static extern int MS_GDERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_IDENTERR_get")]
-  public static extern int MS_IDENTERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_EOFERR_get")]
-  public static extern int MS_EOFERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_PROJERR_get")]
-  public static extern int MS_PROJERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MISCERR_get")]
-  public static extern int MS_MISCERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_CGIERR_get")]
-  public static extern int MS_CGIERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WEBERR_get")]
-  public static extern int MS_WEBERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_IMGERR_get")]
-  public static extern int MS_IMGERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_HASHERR_get")]
-  public static extern int MS_HASHERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_JOINERR_get")]
-  public static extern int MS_JOINERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NOTFOUND_get")]
-  public static extern int MS_NOTFOUND_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SHPERR_get")]
-  public static extern int MS_SHPERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_PARSEERR_get")]
-  public static extern int MS_PARSEERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SDEERR_get")]
-  public static extern int MS_SDEERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_OGRERR_get")]
-  public static extern int MS_OGRERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_QUERYERR_get")]
-  public static extern int MS_QUERYERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WMSERR_get")]
-  public static extern int MS_WMSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WMSCONNERR_get")]
-  public static extern int MS_WMSCONNERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_ORACLESPATIALERR_get")]
-  public static extern int MS_ORACLESPATIALERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WFSERR_get")]
-  public static extern int MS_WFSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WFSCONNERR_get")]
-  public static extern int MS_WFSCONNERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_MAPCONTEXTERR_get")]
-  public static extern int MS_MAPCONTEXTERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_HTTPERR_get")]
-  public static extern int MS_HTTPERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_CHILDERR_get")]
-  public static extern int MS_CHILDERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_WCSERR_get")]
-  public static extern int MS_WCSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_GEOSERR_get")]
-  public static extern int MS_GEOSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RECTERR_get")]
-  public static extern int MS_RECTERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_TIMEERR_get")]
-  public static extern int MS_TIMEERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_GMLERR_get")]
-  public static extern int MS_GMLERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_SOSERR_get")]
-  public static extern int MS_SOSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NULLPARENTERR_get")]
-  public static extern int MS_NULLPARENTERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_AGGERR_get")]
-  public static extern int MS_AGGERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_OWSERR_get")]
-  public static extern int MS_OWSERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_OGLERR_get")]
-  public static extern int MS_OGLERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_RENDERERERR_get")]
-  public static extern int MS_RENDERERERR_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_NUMERRORCODES_get")]
-  public static extern int MS_NUMERRORCODES_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MESSAGELENGTH_get")]
-  public static extern int MESSAGELENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_ROUTINELENGTH_get")]
-  public static extern int ROUTINELENGTH_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_ERROR_LANGUAGE_get")]
-  public static extern string MS_ERROR_LANGUAGE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_code_set")]
-  public static extern void errorObj_code_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_code_get")]
-  public static extern int errorObj_code_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_routine_set")]
-  public static extern void errorObj_routine_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_routine_get")]
-  public static extern string errorObj_routine_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_message_set")]
-  public static extern void errorObj_message_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_message_get")]
-  public static extern string errorObj_message_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_isreported_set")]
-  public static extern void errorObj_isreported_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_isreported_get")]
-  public static extern int errorObj_isreported_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_errorObj")]
-  public static extern IntPtr new_errorObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_errorObj")]
-  public static extern void delete_errorObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_errorObj_next")]
-  public static extern IntPtr errorObj_next(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msGetErrorObj")]
-  public static extern IntPtr msGetErrorObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msResetErrorList")]
-  public static extern void msResetErrorList();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msGetVersion")]
-  public static extern string msGetVersion();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msGetVersionInt")]
-  public static extern int msGetVersionInt();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msGetErrorString")]
-  public static extern string msGetErrorString(string jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_HASHSIZE_get")]
-  public static extern int MS_HASHSIZE_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_numitems_get")]
-  public static extern int hashTableObj_numitems_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_hashTableObj")]
-  public static extern IntPtr new_hashTableObj();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_hashTableObj")]
-  public static extern void delete_hashTableObj(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_set")]
-  public static extern int hashTableObj_set(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_get")]
-  public static extern string hashTableObj_get(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_remove")]
-  public static extern int hashTableObj_remove(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_clear")]
-  public static extern void hashTableObj_clear(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_hashTableObj_nextKey")]
-  public static extern string hashTableObj_nextKey(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_MS_DEFAULT_CGI_PARAMS_get")]
-  public static extern int MS_DEFAULT_CGI_PARAMS_get();
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_NumParams_get")]
-  public static extern int OWSRequest_NumParams_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_type_set")]
-  public static extern void OWSRequest_type_set(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_type_get")]
-  public static extern int OWSRequest_type_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_contenttype_set")]
-  public static extern void OWSRequest_contenttype_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_contenttype_get")]
-  public static extern string OWSRequest_contenttype_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_postrequest_set")]
-  public static extern void OWSRequest_postrequest_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_postrequest_get")]
-  public static extern string OWSRequest_postrequest_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_httpcookiedata_set")]
-  public static extern void OWSRequest_httpcookiedata_set(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_httpcookiedata_get")]
-  public static extern string OWSRequest_httpcookiedata_get(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_new_OWSRequest")]
-  public static extern IntPtr new_OWSRequest();
-
-  [DllImport("mapscript", EntryPoint="CSharp_delete_OWSRequest")]
-  public static extern void delete_OWSRequest(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_loadParams")]
-  public static extern int OWSRequest_loadParams(HandleRef jarg1);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_loadParamsFromURL")]
-  public static extern int OWSRequest_loadParamsFromURL(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_setParameter")]
-  public static extern void OWSRequest_setParameter(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_addParameter")]
-  public static extern void OWSRequest_addParameter(HandleRef jarg1, string jarg2, string jarg3);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getName")]
-  public static extern string OWSRequest_getName(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getValue")]
-  public static extern string OWSRequest_getValue(HandleRef jarg1, int jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_OWSRequest_getValueByName")]
-  public static extern string OWSRequest_getValueByName(HandleRef jarg1, string jarg2);
-
-  [DllImport("mapscript", EntryPoint="CSharp_msConnPoolCloseUnreferenced")]
-  public static extern void msConnPoolCloseUnreferenced();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_resetHandlers")]
-  public static extern void msIO_resetHandlers();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_installStdoutToBuffer")]
-  public static extern void msIO_installStdoutToBuffer();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_installStdinFromBuffer")]
-  public static extern void msIO_installStdinFromBuffer();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_stripStdoutBufferContentType")]
-  public static extern string msIO_stripStdoutBufferContentType();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_stripStdoutBufferContentHeaders")]
-  public static extern void msIO_stripStdoutBufferContentHeaders();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_getStdoutBufferString")]
-  public static extern string msIO_getStdoutBufferString();
-
-  [DllImport("mapscript", EntryPoint="CSharp_msIO_getStdoutBufferBytes")]
-  public static extern void msIO_getStdoutBufferBytes();
-}
diff --git a/mapscript/csharp/mapscript_wrap.c b/mapscript/csharp/mapscript_wrap.c
deleted file mode 100644
index 681c58d..0000000
--- a/mapscript/csharp/mapscript_wrap.c
+++ /dev/null
@@ -1,25441 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- * 
- * This file is not intended to be easily readable and contains a number of 
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG 
- * interface file instead. 
- * ----------------------------------------------------------------------------- */
-
-#define SWIGCSHARP
-
-/* -----------------------------------------------------------------------------
- *  This section contains generic SWIG labels for method/variable
- *  declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-#  define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-#   define SWIGINLINE inline
-# else
-#   define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-#     define SWIGUNUSED __attribute__ ((__unused__)) 
-#   else
-#     define SWIGUNUSED
-#   endif
-# elif defined(__ICC)
-#   define SWIGUNUSED __attribute__ ((__unused__)) 
-# else
-#   define SWIGUNUSED 
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif 
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-#   define SWIGUNUSEDPARM(p)
-# else
-#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-#  ifndef GCC_HASCLASSVISIBILITY
-#    define GCC_HASCLASSVISIBILITY
-#  endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   if defined(STATIC_LINKED)
-#     define SWIGEXPORT
-#   else
-#     define SWIGEXPORT __declspec(dllexport)
-#   endif
-# else
-#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-#     define SWIGEXPORT __attribute__ ((visibility("default")))
-#   else
-#     define SWIGEXPORT
-#   endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   define SWIGSTDCALL __stdcall
-# else
-#   define SWIGSTDCALL
-# endif 
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-
-/* Support for throwing C# exceptions from C/C++. There are two types: 
- * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
-typedef enum {
-  SWIG_CSharpApplicationException,
-  SWIG_CSharpArithmeticException,
-  SWIG_CSharpDivideByZeroException,
-  SWIG_CSharpIndexOutOfRangeException,
-  SWIG_CSharpInvalidCastException,
-  SWIG_CSharpInvalidOperationException,
-  SWIG_CSharpIOException,
-  SWIG_CSharpNullReferenceException,
-  SWIG_CSharpOutOfMemoryException,
-  SWIG_CSharpOverflowException,
-  SWIG_CSharpSystemException
-} SWIG_CSharpExceptionCodes;
-
-typedef enum {
-  SWIG_CSharpArgumentException,
-  SWIG_CSharpArgumentNullException,
-  SWIG_CSharpArgumentOutOfRangeException
-} SWIG_CSharpExceptionArgumentCodes;
-
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
-
-typedef struct {
-  SWIG_CSharpExceptionCodes code;
-  SWIG_CSharpExceptionCallback_t callback;
-} SWIG_CSharpException_t;
-
-typedef struct {
-  SWIG_CSharpExceptionArgumentCodes code;
-  SWIG_CSharpExceptionArgumentCallback_t callback;
-} SWIG_CSharpExceptionArgument_t;
-
-static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
-  { SWIG_CSharpApplicationException, NULL },
-  { SWIG_CSharpArithmeticException, NULL },
-  { SWIG_CSharpDivideByZeroException, NULL },
-  { SWIG_CSharpIndexOutOfRangeException, NULL },
-  { SWIG_CSharpInvalidCastException, NULL },
-  { SWIG_CSharpInvalidOperationException, NULL },
-  { SWIG_CSharpIOException, NULL },
-  { SWIG_CSharpNullReferenceException, NULL },
-  { SWIG_CSharpOutOfMemoryException, NULL },
-  { SWIG_CSharpOverflowException, NULL },
-  { SWIG_CSharpSystemException, NULL }
-};
-
-static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
-  { SWIG_CSharpArgumentException, NULL },
-  { SWIG_CSharpArgumentNullException, NULL },
-  { SWIG_CSharpArgumentOutOfRangeException, NULL }
-};
-
-static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
-  SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
-  if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
-    callback = SWIG_csharp_exceptions[code].callback;
-  }
-  callback(msg);
-}
-
-static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
-  SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
-  if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
-    callback = SWIG_csharp_exceptions_argument[code].callback;
-  }
-  callback(msg, param_name);
-}
-
-
-#ifdef __cplusplus
-extern "C" 
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_mapscript(
-                                                SWIG_CSharpExceptionCallback_t applicationCallback,
-                                                SWIG_CSharpExceptionCallback_t arithmeticCallback,
-                                                SWIG_CSharpExceptionCallback_t divideByZeroCallback, 
-                                                SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, 
-                                                SWIG_CSharpExceptionCallback_t invalidCastCallback,
-                                                SWIG_CSharpExceptionCallback_t invalidOperationCallback,
-                                                SWIG_CSharpExceptionCallback_t ioCallback,
-                                                SWIG_CSharpExceptionCallback_t nullReferenceCallback,
-                                                SWIG_CSharpExceptionCallback_t outOfMemoryCallback, 
-                                                SWIG_CSharpExceptionCallback_t overflowCallback, 
-                                                SWIG_CSharpExceptionCallback_t systemCallback) {
-  SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback;
-  SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback;
-}
-
-#ifdef __cplusplus
-extern "C" 
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_mapscript(
-                                                SWIG_CSharpExceptionArgumentCallback_t argumentCallback,
-                                                SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback,
-                                                SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) {
-  SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback;
-  SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback;
-  SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback;
-}
-
-
-/* Callback for returning strings to C# without leaking memory */
-typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
-static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL;
-
-
-#ifdef __cplusplus
-extern "C" 
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_mapscript(SWIG_CSharpStringHelperCallback callback) {
-  SWIG_csharp_string_callback = callback;
-}
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
-
-
-#ifdef __cplusplus
-extern "C" 
-#endif
-#ifdef SWIGEXPORT
-SWIGEXPORT int SWIGSTDCALL SetEnvironmentVariable(const char *envstring) {
-  return putenv(envstring);
-}
-#else
-DllExport int SWIGSTDCALL SetEnvironmentVariable(const char *envstring) {
-  return putenv(envstring);
-}
-#endif
-
-/*  Errors in SWIG */
-#define  SWIG_UnknownError    	   -1 
-#define  SWIG_IOError        	   -2 
-#define  SWIG_RuntimeError   	   -3 
-#define  SWIG_IndexError     	   -4 
-#define  SWIG_TypeError      	   -5 
-#define  SWIG_DivisionByZero 	   -6 
-#define  SWIG_OverflowError  	   -7 
-#define  SWIG_SyntaxError    	   -8 
-#define  SWIG_ValueError     	   -9 
-#define  SWIG_SystemError    	   -10
-#define  SWIG_AttributeError 	   -11
-#define  SWIG_MemoryError    	   -12 
-#define  SWIG_NullReferenceError   -13
-
-
-
-
-/* Callback for returning byte arrays to C# */
-typedef void (SWIGSTDCALL* SWIG_CSharpByteArrayHelperCallback)(const unsigned char *, const int);
-/* Default callback interface */
-static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
-
-
-#ifdef __cplusplus
-extern "C" 
-#endif
-#ifdef SWIGEXPORT
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterByteArrayCallback_mapscript(SWIG_CSharpByteArrayHelperCallback callback) {
-  SWIG_csharp_bytearray_callback = callback;
-}
-#else
-DllExport void SWIGSTDCALL SWIGRegisterByteArrayCallback_mapscript(SWIG_CSharpByteArrayHelperCallback callback) {
-  SWIG_csharp_bytearray_callback = callback;
-}
-#endif
-
-
-#include "../../mapserver.h"
-#include "../../maptemplate.h"
-#include "../../mapogcsld.h"
-#include "../../mapows.h"
-#include "../../cgiutil.h"
-#include "../../mapcopy.h"
-#include "../../maperror.h"
-#include "../../mapprimitive.h"
-#include "../../mapshape.h"
-
-#ifdef SWIGPYTHON
-#include "pygdioctx/pygdioctx.h"
-#endif
-
-
-
-SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
-  if (code == SWIG_ValueError) {
-    SWIG_CSharpExceptionArgumentCodes exception_code = SWIG_CSharpArgumentOutOfRangeException;
-    SWIG_CSharpSetPendingExceptionArgument(exception_code, msg, 0);
-  } else {
-    SWIG_CSharpExceptionCodes exception_code = SWIG_CSharpApplicationException;
-    switch(code) {
-    case SWIG_MemoryError:
-      exception_code = SWIG_CSharpOutOfMemoryException;
-      break;
-    case SWIG_IndexError:
-      exception_code = SWIG_CSharpIndexOutOfRangeException;
-      break;
-    case SWIG_DivisionByZero:
-      exception_code = SWIG_CSharpDivideByZeroException;
-      break;
-    case SWIG_IOError:
-      exception_code = SWIG_CSharpIOException;
-      break;
-    case SWIG_OverflowError:
-      exception_code = SWIG_CSharpOverflowException;
-      break;
-    case SWIG_RuntimeError:
-    case SWIG_TypeError:
-    case SWIG_SyntaxError:
-    case SWIG_SystemError:
-    case SWIG_UnknownError:
-    default:
-      exception_code = SWIG_CSharpApplicationException;
-      break;
-    }
-    SWIG_CSharpSetPendingException(exception_code, msg);
-  }
-}
-
-
-typedef int intarray;
-
-SWIGINTERN intarray *new_intarray(int nelements){
-  return (int *) calloc(nelements,sizeof(int));
-}
-SWIGINTERN void delete_intarray(intarray *self){
-  free(self);
-}
-SWIGINTERN int intarray_getitem(intarray *self,int index){
-  return self[index];
-}
-SWIGINTERN void intarray_setitem(intarray *self,int index,int value){
-  self[index] = value;
-}
-SWIGINTERN int *intarray_cast(intarray *self){
-  return self;
-}
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
-    unsigned char *data;
-    int size;
-    int owns_data;
-} gdBuffer;
-
-#ifdef __cplusplus
-}
-#endif
-
-SWIGINTERN int clusterObj_updateFromString(clusterObj *self,char *snippet){
-    return msUpdateClusterFromString(self, snippet);
-  }
-SWIGINTERN char *clusterObj_convertToString(clusterObj *self){
-    return msWriteClusterToString(self);
-  }
-SWIGINTERN int clusterObj_setGroup(clusterObj *self,char *group){
-    if (!group || strlen(group) == 0) {
-       freeExpression(&self->group);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->group, group);
-  }
-SWIGINTERN char *clusterObj_getGroupString(clusterObj *self){
-    return msGetExpressionString(&(self->group));
-  }
-SWIGINTERN int clusterObj_setFilter(clusterObj *self,char *filter){
-    if (!filter || strlen(filter) == 0) {
-      freeExpression(&self->filter);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->filter, filter);
-  }
-SWIGINTERN char *clusterObj_getFilterString(clusterObj *self){
-    return msGetExpressionString(&(self->filter));
-  }
-SWIGINTERN outputFormatObj *new_outputFormatObj(char const *driver,char *name){
-        outputFormatObj *format;
-
-        format = msCreateDefaultOutputFormat(NULL, driver, name);
-
-        /* in the case of unsupported formats, msCreateDefaultOutputFormat
-           should return NULL */
-        if (!format)
-        {
-            msSetError(12, "Unsupported format driver: %s",
-                       "outputFormatObj()", driver);
-            return NULL;
-        }
-        
-        msInitializeRendererVTable(format);
-
-        MS_REFCNT_INIT(format);
-	format->inmapfile = 1;
-
-        return format;
-    }
-SWIGINTERN void delete_outputFormatObj(outputFormatObj *self){
-        msFreeOutputFormat( self );
-    }
-SWIGINTERN void outputFormatObj_setExtension(outputFormatObj *self,char const *extension){
-        msFree( self->extension );
-        self->extension = strdup(extension);
-    }
-SWIGINTERN void outputFormatObj_setMimetype(outputFormatObj *self,char const *mimetype){
-        msFree( self->mimetype );
-        self->mimetype = strdup(mimetype);
-    }
-SWIGINTERN void outputFormatObj_setOption(outputFormatObj *self,char const *key,char const *value){
-        msSetOutputFormatOption( self, key, value );
-    }
-SWIGINTERN int outputFormatObj_validate(outputFormatObj *self){
-       	return msOutputFormatValidate( self, 0 );
-    }
-SWIGINTERN char *outputFormatObj_getOption(outputFormatObj *self,char const *key,char const *value){
-        return strdup(msGetOutputFormatOption(self, key, value));
-    }
-SWIGINTERN char *outputFormatObj_getOptionAt(outputFormatObj *self,int i){
-       if( i >= 0 && i < self->numformatoptions ) {
-          return strdup(self->formatoptions[i]);
-       }
-       return NULL;
-    }
-SWIGINTERN void outputFormatObj_attachDevice(outputFormatObj *self,void *device){
-        self->device = device;
-    }
-SWIGINTERN int queryMapObj_updateFromString(queryMapObj *self,char *snippet){
-    return msUpdateQueryMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *queryMapObj_convertToString(queryMapObj *self){
-    return msWriteQueryMapToString(self);
-  }
-SWIGINTERN webObj *new_webObj(){
-        webObj *web;
-        web = (webObj *) malloc(sizeof(webObj));
-        initWeb(web);
-        return web;
-    }
-SWIGINTERN void delete_webObj(webObj *self){
-        if (!self) return;
-	freeWeb(self);
-        free(self);
-    }
-SWIGINTERN int webObj_updateFromString(webObj *self,char *snippet){
-        return msUpdateWebFromString(self, snippet, 0);
-    }
-SWIGINTERN char *webObj_convertToString(webObj *self){
-        return msWriteWebToString(self);
-    }
-SWIGINTERN struct styleObj *new_styleObj(classObj *parent_class){
-    
-        styleObj *style = NULL;
-        
-        if (parent_class!=NULL) {
-            if ((style = msGrowClassStyles(parent_class)) == NULL)
-                return NULL;
-
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-            }
-            parent_class->numstyles++;
-            MS_REFCNT_INCR(style);
-        }
-        else {
-            style = (styleObj *) malloc(sizeof(styleObj));
-            if (!style) { 
-                msSetError(2, "Failed to allocate memory for new styleObj instance",
-                                       "styleObj()");
-                return NULL;
-            }
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-                msFree(style);
-                return NULL;
-	    }
-        }
-        return style;
-    }
-SWIGINTERN void delete_styleObj(struct styleObj *self){
-        if (self) { 
-		if ( freeStyle(self) == MS_SUCCESS ) {
-            		free(self);
-			self=NULL;
-		}
-	}
-    }
-SWIGINTERN int styleObj_updateFromString(struct styleObj *self,char *snippet){
-        return msUpdateStyleFromString(self, snippet, 0);
-    }
-SWIGINTERN char *styleObj_convertToString(struct styleObj *self){
-        return msWriteStyleToString(self);
-    }
-SWIGINTERN styleObj *styleObj_clone(struct styleObj *self){
-        styleObj *style;
-
-        style = (styleObj *) malloc(sizeof(styleObj));
-        if (!style)
-        {
-            msSetError(2,
-                "Could not allocate memory for new styleObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initStyle(style) == -1)
-        {
-            msSetError(2, "Failed to initialize Style",
-                                  "clone()");
-            return NULL;
-        }
-
-        if (msCopyStyle(style, self) != MS_SUCCESS)
-        {
-            free(style);
-            return NULL;
-        }
-        
-        return style;
-    }
-SWIGINTERN int styleObj_setSymbolByName(struct styleObj *self,mapObj *map,char *symbolname){
-        self->symbol = msGetSymbolIndex(&map->symbolset, symbolname, 1);
-        if (self->symbolname) free((char*)self->symbolname);
-        if (symbolname) self->symbolname = strdup(symbolname);
-        else self->symbolname = 0;
-        return self->symbol;
-    }
-SWIGINTERN int styleObj_removeBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int styleObj_setBinding(struct styleObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item);
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *styleObj_getBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN char *styleObj_getGeomTransform(struct styleObj *self){
-    return self->_geomtransform.string;
-  }
-SWIGINTERN void styleObj_setGeomTransform(struct styleObj *self,char *transform){
-    msStyleSetGeomTransform(self, transform);
-  }
-SWIGINTERN struct labelObj *new_labelObj(){
-      labelObj *label;
-        
-      label = (labelObj *)calloc(1, sizeof(labelObj));
-      if (!label)
-        return(NULL);
-    
-      initLabel(label);
-      
-      return(label);    	
-    }
-SWIGINTERN void delete_labelObj(struct labelObj *self){
-      freeLabel(self);
-    }
-SWIGINTERN int labelObj_updateFromString(struct labelObj *self,char *snippet){
-    return msUpdateLabelFromString(self, snippet,0);
-  }
-SWIGINTERN char *labelObj_convertToString(struct labelObj *self){
-    return msWriteLabelToString(self);
-  }
-SWIGINTERN int labelObj_removeBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1; 
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *labelObj_getBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN int labelObj_setBinding(struct labelObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL; 
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item); 
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int labelObj_setExpression(struct labelObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *labelObj_getExpressionString(struct labelObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int labelObj_setText(struct labelObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *labelObj_getTextString(struct labelObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN styleObj *labelObj_getStyle(struct labelObj *self,int i){
-      if (i >= 0 && i < self->numstyles) {
-          MS_REFCNT_INCR(self->styles[i]);
-          return self->styles[i];
-      } else {
-          msSetError(31, "Invalid index: %d", "getStyle()", i);
-          return NULL;
-      }
-  }
-SWIGINTERN int labelObj_insertStyle(struct labelObj *self,styleObj *style,int index){
-        return msInsertLabelStyle(self, style, index);
-    }
-SWIGINTERN styleObj *labelObj_removeStyle(struct labelObj *self,int index){
-	styleObj* style = (styleObj *) msRemoveLabelStyle(self, index);
-	if (style)
-		MS_REFCNT_INCR(style);
-        return style;
-    }
-SWIGINTERN int labelObj_moveStyleUp(struct labelObj *self,int index){
-        return msMoveLabelStyleUp(self, index);
-    }
-SWIGINTERN int labelObj_moveStyleDown(struct labelObj *self,int index){
-       return msMoveLabelStyleDown(self, index);
-    }
-SWIGINTERN struct classObj *new_classObj(layerObj *layer){
-        classObj *new_class=NULL;
-        
-        if (!layer)
-        {
-            new_class = (classObj *) malloc(sizeof(classObj));
-            if (!new_class)
-            {
-                msSetError(2,
-                    "Could not allocate memory for new classObj instance",
-                    "classObj()");
-                return NULL;
-            }
-            if (initClass(new_class) == -1) return NULL;
-            new_class->layer = NULL;
-            return new_class;
-        }
-        else
-        {
-            if(msGrowLayerClasses(layer) == NULL)
-                return NULL;
-            if (initClass(layer->class[layer->numclasses]) == -1)
-                return NULL;
-            layer->class[layer->numclasses]->type = layer->type;
-            layer->class[layer->numclasses]->layer = layer;
-	    MS_REFCNT_INCR(layer->class[layer->numclasses]);
-            layer->numclasses++;
-            return (layer->class[layer->numclasses-1]);
-        }
-
-        return NULL;
-    }
-SWIGINTERN void delete_classObj(struct classObj *self){
-        if (self)
-        {
-            if (freeClass(self)==MS_SUCCESS) {
-            	free(self);
-		self=NULL;
-	    }
-        }
-    }
-SWIGINTERN int classObj_updateFromString(struct classObj *self,char *snippet){
-        return msUpdateClassFromString(self, snippet, 0);
-    }
-SWIGINTERN char *classObj_convertToString(struct classObj *self){
-        return msWriteClassToString(self);
-    }
-SWIGINTERN classObj *classObj_clone(struct classObj *self){
-        classObj *new_class;
-
-        new_class = (classObj *) malloc(sizeof(classObj));
-        if (!new_class)
-        {
-            msSetError(2,
-                "Could not allocate memory for new classObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initClass(new_class) == -1)
-        {
-            msSetError(2, "Failed to initialize Class",
-                                  "clone()");
-            return NULL;
-        }
-        new_class->layer = NULL;
-
-        if (msCopyClass(new_class, self, self->layer) != MS_SUCCESS) {
-            freeClass(new_class);
-            free(new_class);
-            new_class = NULL;
-        }
-        
-        return new_class;
-    }
-SWIGINTERN int classObj_setExpression(struct classObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *classObj_getExpressionString(struct classObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int classObj_setText(struct classObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *classObj_getTextString(struct classObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN char *classObj_getMetaData(struct classObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int classObj_setMetaData(struct classObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *classObj_getFirstMetaDataKey(struct classObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->metadata));
-  }
-SWIGINTERN char *classObj_getNextMetaDataKey(struct classObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-  }
-SWIGINTERN int classObj_drawLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height,imageObj *dstImage,int dstX,int dstY){
-    return msDrawLegendIcon(map, layer, self, width, height, dstImage, dstX, dstY, 1, NULL);
-  }
-SWIGINTERN imageObj *classObj_createLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height){
-    return msCreateLegendIcon(map, layer, self, width, height, 1);
-  }
-SWIGINTERN labelObj *classObj_getLabel(struct classObj *self,int i){
-    if (i >= 0 && i < self->numlabels) {
-      MS_REFCNT_INCR(self->labels[i]);
-      return self->labels[i];
-    } else {
-      msSetError(31, "Invalid index: %d.", "getLabel()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_addLabel(struct classObj *self,labelObj *label){
-    return msAddLabelToClass(self, label);
-  }
-SWIGINTERN labelObj *classObj_removeLabel(struct classObj *self,int index){
-    labelObj* label = (labelObj *) msRemoveLabelFromClass(self, index);
-    if (label) MS_REFCNT_INCR(label);
-    return label;
-  }
-SWIGINTERN styleObj *classObj_getStyle(struct classObj *self,int i){
-    if (i >= 0 && i < self->numstyles) {
-      MS_REFCNT_INCR(self->styles[i]);
-      return self->styles[i];
-    } else {
-      msSetError(31, "Invalid index: %d", "getStyle()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_insertStyle(struct classObj *self,styleObj *style,int index){
-    return msInsertStyle(self, style, index);
-  }
-SWIGINTERN styleObj *classObj_removeStyle(struct classObj *self,int index){
-    styleObj* style = (styleObj *) msRemoveStyle(self, index);
-    if (style) MS_REFCNT_INCR(style);
-    return style;
-  }
-SWIGINTERN int classObj_moveStyleUp(struct classObj *self,int index){
-    return msMoveStyleUp(self, index);
-  }
-SWIGINTERN int classObj_moveStyleDown(struct classObj *self,int index){
-    return msMoveStyleDown(self, index);
-  }
-SWIGINTERN void labelCacheObj_freeCache(labelCacheObj *self){
-        msFreeLabelCache(self);    
-    }
-SWIGINTERN resultObj *new_resultObj(long shapeindex){
-        resultObj *result = (resultObj *) msSmallMalloc(sizeof(resultObj));
-
-        result->tileindex = -1;
-        result->resultindex = -1; 
-        result->shapeindex = shapeindex;
-        
-        return result;
-    }
-SWIGINTERN void delete_resultObj(resultObj *self){
-        free(self);		
-    }
-SWIGINTERN resultObj *resultCacheObj_getResult(resultCacheObj *self,int i){
-        if (i >= 0 && i < self->numresults) {
-            return &self->results[i];
-        }
-        return NULL;
-    }
-SWIGINTERN symbolSetObj *new_symbolSetObj(char const *symbolfile){
-        symbolSetObj *symbolset;
-        mapObj *temp_map=NULL;
-        symbolset = (symbolSetObj *) malloc(sizeof(symbolSetObj));
-        msInitSymbolSet(symbolset);
-        if (symbolfile) {
-            symbolset->filename = strdup(symbolfile);
-            temp_map = msNewMapObj();
-            msLoadSymbolSet(symbolset, temp_map);
-            symbolset->map = NULL;
-            msFreeMap(temp_map);
-        }
-        return symbolset;
-    }
-SWIGINTERN void delete_symbolSetObj(symbolSetObj *self){
-        msFreeSymbolSet(self);
-        if (self->filename) free(self->filename);
-        free(self);
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbol(symbolSetObj *self,int i){
-        if (i >= 0 && i < self->numsymbols) {
-			symbolObj *s=self->symbol[i];
-			MS_REFCNT_INCR(s);
-            return s;
-        } else
-            return NULL;
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbolByName(symbolSetObj *self,char *symbolname){
-        int i;
-
-        if (!symbolname) return NULL;
-
-        i = msGetSymbolIndex(self, symbolname, 1);
-        if (i == -1)
-            return NULL;
-		else {
-			MS_REFCNT_INCR(self->symbol[i]);
-            return self->symbol[i];
-		}
-    }
-SWIGINTERN int symbolSetObj_index(symbolSetObj *self,char *symbolname){
-        return msGetSymbolIndex(self, symbolname, 1);
-    }
-SWIGINTERN int symbolSetObj_appendSymbol(symbolSetObj *self,symbolObj *symbol){
-        return msAppendSymbol(self, symbol);
-    }
-SWIGINTERN symbolObj *symbolSetObj_removeSymbol(symbolSetObj *self,int index){
-        symbolObj *s=msRemoveSymbol(self, index);
-		if (s!=NULL) {
-			MS_REFCNT_INCR(s);
-		}
-        return s;
-    }
-SWIGINTERN int symbolSetObj_save(symbolSetObj *self,char const *filename){
-        return msSaveSymbolSet(self, filename);
-    }
-SWIGINTERN int referenceMapObj_updateFromString(referenceMapObj *self,char *snippet){
-    return msUpdateReferenceMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *referenceMapObj_convertToString(referenceMapObj *self){
-    return msWriteReferenceMapToString(self);
-  }
-SWIGINTERN int scalebarObj_updateFromString(scalebarObj *self,char *snippet){
-    return msUpdateScalebarFromString(self, snippet, 0);
-  }
-SWIGINTERN char *scalebarObj_convertToString(scalebarObj *self){
-    return msWriteScalebarToString(self);
-  }
-SWIGINTERN int legendObj_updateFromString(legendObj *self,char *snippet){
-    return msUpdateLegendFromString(self, snippet, 0);
-  }
-SWIGINTERN char *legendObj_convertToString(legendObj *self){
-    return msWriteLegendToString(self);
-  }
-SWIGINTERN void imageObj_getBytes(struct imageObj *self,SWIG_CSharpByteArrayHelperCallback callback){
-        gdBuffer buffer;
-        
-        buffer.owns_data = MS_TRUE;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-            
-        if( buffer.data == NULL || buffer.size == 0 )
-        {
-            msSetError(MS_MISCERR, "Failed to get image buffer", "getBytes");
-            return;
-        }
-        callback(buffer.data, buffer.size);
-        msFree(buffer.data);
-	}
-SWIGINTERN struct imageObj *new_imageObj(int width,int height,outputFormatObj *input_format,char const *file,double resolution,double defresolution){
-        imageObj *image=NULL;
-        outputFormatObj *format;
-        rendererVTableObj *renderer = NULL;
-        rasterBufferObj *rb = NULL;
-
-        if (input_format) {
-            format = input_format;
-        }
-        else {
-            format = msCreateDefaultOutputFormat(NULL, "GD/GIF", "gdgif");
-            if (format == NULL)
-                format = msCreateDefaultOutputFormat(NULL, "GD/PNG", "gdpng");
-            if (format == NULL)
-
-            if (format)
-                msInitializeRendererVTable(format);
-        }
-        if (format == NULL) {
-            msSetError(15, "Could not create output format",
-                       "imageObj()");
-            return NULL;
-        }
-
-        if (file) {
-            
-            renderer = format->vtable;
-            rb = (rasterBufferObj*) malloc(sizeof(rasterBufferObj));
-            if (!rb) {
-                msSetError(2, NULL, "imageObj()");
-                return NULL;
-            }
-            if ( (renderer->loadImageFromFile((char *)file, rb)) == MS_FAILURE)
-                return NULL;
-
-            image = msImageCreate(rb->width, rb->height, format, NULL, NULL, 
-                                  resolution, defresolution, NULL);
-            renderer->mergeRasterBuffer(image, rb, 1.0, 0, 0, 0, 0, rb->width, rb->height);
-
-            msFreeRasterBuffer(rb);
-            free(rb);
-
-            return image;
-        }
-
-        image = msImageCreate(width, height, format, NULL, NULL, resolution, defresolution, NULL);
-        return image;
-    }
-SWIGINTERN void delete_imageObj(struct imageObj *self){
-        msFreeImage(self);    
-    }
-SWIGINTERN void imageObj_save(struct imageObj *self,char *filename,mapObj *map){
-        msSaveImage(map, self, filename );
-    }
-SWIGINTERN int imageObj_getSize(struct imageObj *self){
-        gdBuffer buffer;
-	int size=0;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-	size = buffer.size;
-            
-        if( buffer.data == NULL || buffer.size == 0 ) {
-            buffer.data = NULL;
-            msSetError(12, "Failed to get image buffer size", "getSize");
-        }
-	free(buffer.data);
-        return size;
-    }
-SWIGINTERN struct layerObj *new_layerObj(mapObj *map){
-        layerObj *layer;
-        int result;
-        
-        if (!map) {
-            layer = (layerObj *) malloc(sizeof(layerObj));
-            if (!layer) {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            } 
-            result = initLayer(layer, NULL);
-            if (result == MS_SUCCESS) {
-                layer->index = -1;
-                return layer;
-            }
-            else {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            }
-        }
-        else {
-            if(msGrowMapLayers(map) == NULL)
-                return(NULL);
-
-            if (initLayer((map->layers[map->numlayers]), map) == -1)
-                return(NULL);
-
-            map->layers[map->numlayers]->index = map->numlayers;
-            map->layerorder[map->numlayers] = map->numlayers;
-            map->numlayers++;
-	    MS_REFCNT_INCR(map->layers[map->numlayers-1]);
-
-            return (map->layers[map->numlayers-1]);
-        }
-    }
-SWIGINTERN void delete_layerObj(struct layerObj *self){
-        /*if (!self->map) {*/
-        if (self) {
-            if(freeLayer(self)==MS_SUCCESS) {
-            	free(self);
-	    }
-        }
-    }
-SWIGINTERN layerObj *layerObj_clone(struct layerObj *self){
-        layerObj *layer;
-        int result;
-
-        layer = (layerObj *) malloc(sizeof(layerObj));
-        if (!layer) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        } 
-        result = initLayer(layer, NULL);
-        if (result != MS_SUCCESS) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        }
-
-        if (msCopyLayer(layer, self) != MS_SUCCESS) {
-            freeLayer(layer);
-            free(layer);
-            layer = NULL;
-        }
-        layer->map = NULL;
-        layer->index = -1;
-        
-        return layer;
-    }
-SWIGINTERN int layerObj_updateFromString(struct layerObj *self,char *snippet){
-        return msUpdateLayerFromString(self, snippet, 0);
-    }
-SWIGINTERN char *layerObj_convertToString(struct layerObj *self){
-        return msWriteLayerToString(self);
-    }
-SWIGINTERN int layerObj_insertClass(struct layerObj *self,classObj *classobj,int index){
-        return msInsertClass(self, classobj, index);
-    }
-SWIGINTERN classObj *layerObj_removeClass(struct layerObj *self,int index){
-        classObj* c = msRemoveClass(self, index);
-	if (c != NULL) {
-		MS_REFCNT_INCR(c);
-	}
-	return c;
-    }
-SWIGINTERN int layerObj_open(struct layerObj *self){
-        int status;
-        status =  msLayerOpen(self);
-        if (status == MS_SUCCESS) {
-            return msLayerGetItems(self);
-        }
-        return status;
-    }
-SWIGINTERN int layerObj_whichShapes(struct layerObj *self,rectObj rect){
-        int oldconnectiontype = self->connectiontype;
-        self->connectiontype = MS_INLINE;
-
-        if(msLayerWhichItems(self, 1, NULL) != MS_SUCCESS) {
-            self->connectiontype = oldconnectiontype;
-            return MS_FAILURE;
-        }
-        self->connectiontype = oldconnectiontype;
-
-        return msLayerWhichShapes(self, rect, 0);
-    }
-SWIGINTERN shapeObj *layerObj_nextShape(struct layerObj *self){
-       int status;
-       shapeObj *shape;
-
-       shape = (shapeObj *)malloc(sizeof(shapeObj));
-       if (!shape) return NULL;
-       msInitShape(shape);
-
-       status = msLayerNextShape(self, shape);
-       if(status != MS_SUCCESS) {
-         msFreeShape(shape);
-	 free(shape);
-	 return NULL;
-       } else
-         return shape;
-    }
-SWIGINTERN void layerObj_close(struct layerObj *self){
-        msLayerClose(self);
-    }
-SWIGINTERN shapeObj *layerObj_getShape(struct layerObj *self,resultObj *record){
-        int retval;
-        shapeObj *shape;
-
-        if (!record) return NULL;
-    
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape) return NULL;
-
-        msInitShape(shape);
-        shape->type = self->type; /* is this right? */
-
-        retval = msLayerGetShape(self, shape, record);
-        return shape;
-    }
-SWIGINTERN int layerObj_getNumResults(struct layerObj *self){
-        if (!self->resultcache) return 0;
-        return self->resultcache->numresults;
-    }
-SWIGINTERN rectObj *layerObj_getResultsBounds(struct layerObj *self){
-        rectObj *bounds;
-        if (!self->resultcache) return NULL;
-        bounds = (rectObj *) malloc(sizeof(rectObj));
-        MS_COPYRECT(bounds, &self->resultcache->bounds);
-        return bounds;
-    }
-SWIGINTERN resultObj *layerObj_getResult(struct layerObj *self,int i){
-        if (!self->resultcache) return NULL;
-        if (i >= 0 && i < self->resultcache->numresults)
-            return &self->resultcache->results[i]; 
-        else
-            return NULL;
-    }
-SWIGINTERN classObj *layerObj_getClass(struct layerObj *self,int i){
-	classObj *result=NULL;
-        if (i >= 0 && i < self->numclasses) {
-            result=self->class[i]; 
-	    MS_REFCNT_INCR(result);
-	}
-	return result;
-    }
-SWIGINTERN char *layerObj_getItem(struct layerObj *self,int i){
-  
-        if (i >= 0 && i < self->numitems)
-            return (char *) (self->items[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int layerObj_setItems(struct layerObj *self,char **items,int numitems){
-        return msLayerSetItems(self, items, numitems);
-    }
-SWIGINTERN int layerObj_draw(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_drawQuery(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawQueryLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_queryByFilter(struct layerObj *self,mapObj *map,char *string){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_FILTER;
-
-        map->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-        map->query.filter->string = strdup(string);
-	map->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-        map->query.filter->compiled = 0;
-        map->query.filter->flags = 0;
-        map->query.filter->tokens = map->query.filter->curtoken = NULL;
-        
-        map->query.layer = self->index;
-     	map->query.rect = map->extent;
-
-	status = self->status;
-	self->status = 1;
-        retval = msQueryByFilter(map);
-        self->status = status;
-	return retval;
-    }
-SWIGINTERN int layerObj_queryByAttributes(struct layerObj *self,mapObj *map,char *qitem,char *qstring,int mode){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-        
-        map->query.type = MS_QUERY_BY_ATTRIBUTE;
-        map->query.mode = mode;
-        if(qitem) map->query.item = strdup(qitem);
-        if(qstring) map->query.str = strdup(qstring);
-        map->query.layer = self->index;
-        map->query.rect = map->extent;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByAttributes(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByPoint(struct layerObj *self,mapObj *map,pointObj *point,int mode,double buffer){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_POINT;
-        map->query.mode = mode;
-        map->query.point = *point;
-        map->query.buffer = buffer;
-        map->query.layer = self->index;
-        
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByPoint(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByRect(struct layerObj *self,mapObj *map,rectObj rect){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_RECT;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.rect = rect; 
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByRect(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByFeatures(struct layerObj *self,mapObj *map,int slayer){
-        int status;
-        int retval;
-
-        map->query.slayer = slayer;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByFeatures(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByShape(struct layerObj *self,mapObj *map,shapeObj *shape){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_SHAPE;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-        msInitShape(map->query.shape);
-        msCopyShape(shape, map->query.shape);
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByShape(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByIndex(struct layerObj *self,mapObj *map,int tileindex,int shapeindex,int bAddToQuery){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_INDEX;
-        map->query.mode = MS_QUERY_SINGLE;
-        map->query.tileindex = tileindex;
-        map->query.shapeindex = shapeindex;
-        map->query.clear_resultcache = !bAddToQuery;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByIndex(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN resultCacheObj *layerObj_getResults(struct layerObj *self){
-        return self->resultcache;
-    }
-SWIGINTERN int layerObj_setFilter(struct layerObj *self,char *filter){
-        if (!filter || strlen(filter) == 0) {
-            freeExpression(&self->filter);
-            return MS_SUCCESS;
-        }
-        else return msLoadExpressionString(&self->filter, filter);
-    }
-SWIGINTERN char *layerObj_getFilterString(struct layerObj *self){
-        return msGetExpressionString(&(self->filter));
-    }
-SWIGINTERN int layerObj_setWKTProjection(struct layerObj *self,char *wkt){
-        self->project = 1;
-        return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-    }
-SWIGINTERN char *layerObj_getProjection(struct layerObj *self){    
-        return (char *) msGetProjectionString(&(self->projection));
-    }
-SWIGINTERN int layerObj_setProjection(struct layerObj *self,char *proj4){
-        self->project = 1;
-        return msLoadProjectionString(&(self->projection), proj4);
-    }
-SWIGINTERN int layerObj_addFeature(struct layerObj *self,shapeObj *shape){    
-        self->connectiontype = MS_INLINE;
-        if(self->features != NULL && self->features->tailifhead != NULL) 
-            shape->index = self->features->tailifhead->shape.index + 1;
-        else 
-            shape->index = 0;
-        if (insertFeatureList(&(self->features), shape) == NULL) 
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_getNumFeatures(struct layerObj *self){
-        return msLayerGetNumFeatures(self);
-    }
-SWIGINTERN rectObj *layerObj_getExtent(struct layerObj *self){
-        rectObj *extent;
-        extent = (rectObj *) malloc(sizeof(rectObj));
-        msLayerGetExtent(self, extent);
-        return extent;
-    }
-SWIGINTERN int layerObj_setExtent(struct layerObj *self,double minx,double miny,double maxx,double maxy){
-        if (minx > maxx || miny > maxy) {
-            msSetError(34,
-                "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                "layerObj::setExtent()", minx, miny, maxx, maxy);
-            return MS_FAILURE;
-        }
-
-        return msLayerSetExtent(self, minx, miny, maxx, maxy);
-    }
-SWIGINTERN char *layerObj_getMetaData(struct layerObj *self,char *name){
-        char *value = NULL;
-        if (!name) {
-            msSetError(16, "NULL key", "getMetaData");
-        }
-     
-        value = (char *) msLookupHashTable(&(self->metadata), name);
-	/*
-	Umberto, 05/17/2006
-	Exceptions should be reserved for situations when a serious error occurred
-	and normal program flow must be interrupted.
-	In this case returning null should be more that enough.
-	*/
-
-        if (!value) {
-            msSetError(16, "Key %s does not exist", "getMetaData", name);
-            return NULL;
-        }
-
-        return value;
-    }
-SWIGINTERN int layerObj_setMetaData(struct layerObj *self,char *name,char *value){
-        if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_removeMetaData(struct layerObj *self,char *name){
-        return(msRemoveHashTable(&(self->metadata), name));
-    }
-SWIGINTERN char *layerObj_getFirstMetaDataKey(struct layerObj *self){
-        return (char *) msFirstKeyFromHashTable(&(self->metadata));
-    }
-SWIGINTERN char *layerObj_getNextMetaDataKey(struct layerObj *self,char *lastkey){
-        return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-    }
-SWIGINTERN char *layerObj_getWMSFeatureInfoURL(struct layerObj *self,mapObj *map,int click_x,int click_y,int feature_count,char *info_format){
-        return (char *) msWMSGetFeatureInfoURL(map, self, click_x, click_y,
-               feature_count, info_format);
-    }
-SWIGINTERN char *layerObj_executeWFSGetFeature(struct layerObj *self,layerObj *layer){
-        return (char *) msWFSExecuteGetFeature(layer);
-    }
-SWIGINTERN int layerObj_applySLD(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLD(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN int layerObj_applySLDURL(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLDURL(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN char *layerObj_generateSLD(struct layerObj *self){
-        return (char *) msSLDGenerateSLD(self->map, self->index, NULL);
-    }
-SWIGINTERN int layerObj_isVisible(struct layerObj *self){
-        if (!self->map)
-        {
-            msSetError(12,
-                "visibility has no meaning outside of a map context",
-                "isVisible()");
-            return MS_FAILURE;
-        }
-        return msLayerIsVisible(self->map, self);
-    }
-SWIGINTERN int layerObj_moveClassUp(struct layerObj *self,int index){
-        return msMoveClassUp(self, index);
-    }
-SWIGINTERN int layerObj_moveClassDown(struct layerObj *self,int index){
-        return msMoveClassDown(self, index);
-    }
-SWIGINTERN void layerObj_setProcessingKey(struct layerObj *self,char const *key,char const *value){
-	   msLayerSetProcessingKey( self, key, value );
-    }
-SWIGINTERN void layerObj_setProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN void layerObj_addProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN char *layerObj_getProcessing(struct layerObj *self,int index){
-        return (char *) msLayerGetProcessing(self, index);
-    }
-SWIGINTERN char *layerObj_getProcessingKey(struct layerObj *self,char const *key){
-      return (char *) msLayerGetProcessingKey(self, key);
-    }
-SWIGINTERN int layerObj_clearProcessing(struct layerObj *self){
-        return msLayerClearProcessing(self);
-    }
-SWIGINTERN int layerObj_setConnectionType(struct layerObj *self,int connectiontype,char const *library_str){    
-        /* Caller is responsible to close previous layer correctly before
-         * calling msConnectLayer() 
-         */
-        if (msLayerIsOpen(self))
-          msLayerClose(self);
-        return msConnectLayer(self, connectiontype, library_str);
-    }
-SWIGINTERN int layerObj_getClassIndex(struct layerObj *self,mapObj *map,shapeObj *shape,int *classgroup,int numclasses){
-        return msShapeGetClass(self, map, shape, classgroup, numclasses);
-    }
-SWIGINTERN char *layerObj_getGeomTransform(struct layerObj *self){
-      return self->_geomtransform.string;
-    }
-SWIGINTERN void layerObj_setGeomTransform(struct layerObj *self,char *transform){
-      msFree(self->_geomtransform.string);
-      if (!transform || strlen(transform) > 0) {
-        self->_geomtransform.string = msStrdup(transform);
-        self->_geomtransform.type = MS_GEOMTRANSFORM_EXPRESSION;
-      }
-      else {
-        self->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
-        self->_geomtransform.string = NULL;
-      }
-    }
-SWIGINTERN struct mapObj *new_mapObj(char *filename){
-        if (filename && strlen(filename))
-            return msLoadMap(filename, NULL);
-        else { /* create an empty map, no layers etc... */
-            return msNewMapObj();
-        }      
-    }
-SWIGINTERN void delete_mapObj(struct mapObj *self){
-        msFreeMap(self);
-    }
-SWIGINTERN mapObj *mapObj_clone(struct mapObj *self){
-        mapObj *dstMap;
-        dstMap = msNewMapObj();
-        if (msCopyMap(dstMap, self) != MS_SUCCESS) {
-            msFreeMap(dstMap);
-            dstMap = NULL;
-        }
-        return dstMap;
-    }
-SWIGINTERN int mapObj_insertLayer(struct mapObj *self,layerObj *layer,int index){
-        return msInsertLayer(self, layer, index);  
-    }
-SWIGINTERN layerObj *mapObj_removeLayer(struct mapObj *self,int index){
-    	layerObj *layer=msRemoveLayer(self, index);
-	MS_REFCNT_INCR(layer);
-        return layer;
-    }
-SWIGINTERN int mapObj_setExtent(struct mapObj *self,double minx,double miny,double maxx,double maxy){	
-	return msMapSetExtent( self, minx, miny, maxx, maxy );
-    }
-SWIGINTERN int mapObj_offsetExtent(struct mapObj *self,double x,double y){	
-	return msMapOffsetExtent( self, x, y );
-    }
-SWIGINTERN int mapObj_scaleExtent(struct mapObj *self,double zoomfactor,double minscaledenom,double maxscaledenom){	
-	return msMapScaleExtent( self, zoomfactor, minscaledenom, maxscaledenom );
-    }
-SWIGINTERN int mapObj_setCenter(struct mapObj *self,pointObj *center){	
-	return msMapSetCenter( self, center );
-    }
-SWIGINTERN int mapObj_setSize(struct mapObj *self,int width,int height){
-        return msMapSetSize(self, width, height);
-    }
-SWIGINTERN int mapObj_setRotation(struct mapObj *self,double rotation_angle){
-        return msMapSetRotation( self, rotation_angle );
-    }
-SWIGINTERN layerObj *mapObj_getLayer(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numlayers) {
-    	MS_REFCNT_INCR(self->layers[i]);
-      	return (self->layers[i]); /* returns an EXISTING layer */
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN layerObj *mapObj_getLayerByName(struct mapObj *self,char *name){
-    int i;
-
-    i = msGetLayerIndex(self, name);
-
-    if(i != -1) {
-      MS_REFCNT_INCR(self->layers[i]);
-      return (self->layers[i]); /* returns an EXISTING layer */
-    }
-    else
-      return NULL;
-  }
-SWIGINTERN int mapObj_getSymbolByName(struct mapObj *self,char *name){
-    return msGetSymbolIndex(&self->symbolset, name, 1);
-  }
-SWIGINTERN void mapObj_prepareQuery(struct mapObj *self){
-    int status;
-
-    status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scaledenom);
-    if(status != MS_SUCCESS) self->scaledenom = -1;
-  }
-SWIGINTERN imageObj *mapObj_prepareImage(struct mapObj *self){
-    return msPrepareImage(self, 0);
-  }
-SWIGINTERN void mapObj_setImageType(struct mapObj *self,char *imagetype){
-      outputFormatObj *format;
-
-      format = msSelectOutputFormat( self, imagetype );
-      if( format == NULL )
-	  msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		     "setImageType()", imagetype );
-      else
-      {  
-          msFree( self->imagetype );
-          self->imagetype = strdup(imagetype);
-          msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                               -1111, -1111 );
-      }
-  }
-SWIGINTERN void mapObj_selectOutputFormat(struct mapObj *self,char *imagetype){
-        outputFormatObj *format;
-
-        format = msSelectOutputFormat( self, imagetype );
-        if ( format == NULL )
-	        msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		               "setImageType()", imagetype );
-        else
-        {   
-            msFree( self->imagetype );
-            self->imagetype = strdup(imagetype);
-            msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                                 -1111, -1111 );
-        }
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormat(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numoutputformats) {
-    	MS_REFCNT_INCR(self->outputformatlist[i]);
-        return (self->outputformatlist[i]); 
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN void mapObj_setOutputFormat(struct mapObj *self,outputFormatObj *format){
-      msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                           -1111, -1111 );
-  }
-SWIGINTERN imageObj *mapObj_draw(struct mapObj *self){
-    return msDrawMap(self, 0);
-  }
-SWIGINTERN imageObj *mapObj_drawQuery(struct mapObj *self){
-    return msDrawMap(self, 1);
-  }
-SWIGINTERN imageObj *mapObj_drawLegend(struct mapObj *self){
-    return msDrawLegend(self, 0, NULL);
-  }
-SWIGINTERN imageObj *mapObj_drawScalebar(struct mapObj *self){
-    return msDrawScalebar(self);
-  }
-SWIGINTERN imageObj *mapObj_drawReferenceMap(struct mapObj *self){
-    return msDrawReferenceMap(self);
-  }
-SWIGINTERN int mapObj_embedScalebar(struct mapObj *self,imageObj *image){	
-    return msEmbedScalebar(self, image);
-  }
-SWIGINTERN int mapObj_embedLegend(struct mapObj *self,imageObj *image){	
-    return msEmbedLegend(self, image);
-  }
-SWIGINTERN int mapObj_drawLabelCache(struct mapObj *self,imageObj *image){
-    return msDrawLabelCache(image, self);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_getLabel(struct mapObj *self,int i){
-    return msGetLabelCacheMember(&(self->labelcache), i);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_nextLabel(struct mapObj *self){
-    static int i=0;
-
-    if(i<self->labelcache.numlabels)
-      return msGetLabelCacheMember(&(self->labelcache), i++);
-    else
-      return NULL;	
-  }
-SWIGINTERN int mapObj_queryByFilter(struct mapObj *self,char *string){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_FILTER;
-
-    self->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-    self->query.filter->string = strdup(string);
-    self->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-    self->query.filter->compiled = 0;
-    self->query.filter->flags = 0;
-    self->query.filter->tokens = self->query.filter->curtoken = NULL;
-    
-    self->query.rect = self->extent;
-
-    return msQueryByFilter(self);
-  }
-SWIGINTERN int mapObj_queryByPoint(struct mapObj *self,pointObj *point,int mode,double buffer){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_POINT;
-    self->query.mode = mode;
-    self->query.point = *point;
-    self->query.buffer = buffer;
-
-    return msQueryByPoint(self);
-  }
-SWIGINTERN int mapObj_queryByRect(struct mapObj *self,rectObj rect){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_RECT;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.rect = rect;
-
-    return msQueryByRect(self);
-  }
-SWIGINTERN int mapObj_queryByFeatures(struct mapObj *self,int slayer){
-    self->query.slayer = slayer;
-    return msQueryByFeatures(self);
-  }
-SWIGINTERN int mapObj_queryByShape(struct mapObj *self,shapeObj *shape){
-    msInitQuery(&(self->query));
-    
-    self->query.type = MS_QUERY_BY_SHAPE;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-    msInitShape(self->query.shape);
-    msCopyShape(shape, self->query.shape);
-
-    return msQueryByShape(self);
-  }
-SWIGINTERN int mapObj_setWKTProjection(struct mapObj *self,char *wkt){
-    return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-  }
-SWIGINTERN char *mapObj_getProjection(struct mapObj *self){
-    return msGetProjectionString(&(self->projection));
-  }
-SWIGINTERN int mapObj_setProjection(struct mapObj *self,char *proj4){
-    return msLoadProjectionString(&(self->projection), proj4);
-  }
-SWIGINTERN int mapObj_save(struct mapObj *self,char *filename){
-    return msSaveMap(self, filename);
-  }
-SWIGINTERN int mapObj_saveQuery(struct mapObj *self,char *filename,int results){
-    return msSaveQuery(self, filename, results);
-  }
-SWIGINTERN int mapObj_loadQuery(struct mapObj *self,char *filename){
-    return msLoadQuery(self, filename);
-  }
-SWIGINTERN void mapObj_freeQuery(struct mapObj *self,int qlayer){
-    msQueryFree(self, qlayer);
-  }
-SWIGINTERN int mapObj_saveQueryAsGML(struct mapObj *self,char *filename,char const *ns){
-    return msGMLWriteQuery(self, filename, ns);
-  }
-SWIGINTERN char *mapObj_getMetaData(struct mapObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->web.metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int mapObj_setMetaData(struct mapObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->web.metadata), name, value) == NULL)
-	return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN int mapObj_removeMetaData(struct mapObj *self,char *name){
-    return(msRemoveHashTable(&(self->web.metadata), name));
-  }
-SWIGINTERN char *mapObj_getFirstMetaDataKey(struct mapObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->web.metadata));
-  }
-SWIGINTERN char *mapObj_getNextMetaDataKey(struct mapObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->web.metadata), lastkey);
-  }
-SWIGINTERN int mapObj_setSymbolSet(struct mapObj *self,char *szFileName){
-    msFreeSymbolSet(&self->symbolset);
-    msInitSymbolSet(&self->symbolset);
-   
-    self->symbolset.filename = strdup(szFileName);
-
-    /* Symbolset shares same fontset as main mapfile */
-    self->symbolset.fontset = &(self->fontset);
-
-    return msLoadSymbolSet(&self->symbolset, self);
-  }
-SWIGINTERN int mapObj_getNumSymbols(struct mapObj *self){
-    return self->symbolset.numsymbols;
-  }
-SWIGINTERN int mapObj_setFontSet(struct mapObj *self,char *filename){
-    msFreeFontSet(&(self->fontset));
-    msInitFontSet(&(self->fontset));
-   
-    self->fontset.filename = strdup(filename);
-
-    return msLoadFontSet(&(self->fontset), self);
-  }
-SWIGINTERN int mapObj_saveMapContext(struct mapObj *self,char *szFileName){
-    return msSaveMapContext(self, szFileName);
-  }
-SWIGINTERN int mapObj_loadMapContext(struct mapObj *self,char *szFileName,int useUniqueNames){
-    return msLoadMapContext(self, szFileName, useUniqueNames);
-  }
-SWIGINTERN int mapObj_moveLayerUp(struct mapObj *self,int layerindex){
-    return msMoveLayerUp(self, layerindex);
-  }
-SWIGINTERN int mapObj_moveLayerDown(struct mapObj *self,int layerindex){
-    return msMoveLayerDown(self, layerindex);
-  }
-SWIGINTERN intarray *mapObj_getLayersDrawingOrder(struct mapObj *self){
-    int i;
-    intarray *order;
-    order = new_intarray(self->numlayers);
-    for (i=0; i<self->numlayers; i++)
-        
-
-
-        intarray_setitem(order, i, self->layerorder[i]);
-        
-    return order;
-  }
-SWIGINTERN int mapObj_setLayersDrawingOrder(struct mapObj *self,int *panIndexes){
-    return  msSetLayersdrawingOrder(self, panIndexes); 
-  }
-SWIGINTERN void mapObj_setConfigOption(struct mapObj *self,char *key,char *value){
-    msSetConfigOption(self,key,value);
-  }
-SWIGINTERN char *mapObj_getConfigOption(struct mapObj *self,char *key){
-    return (char *) msGetConfigOption(self,key);
-  }
-SWIGINTERN void mapObj_applyConfigOptions(struct mapObj *self){
-    msApplyMapConfigOptions( self );
-  }
-SWIGINTERN int mapObj_applySLD(struct mapObj *self,char *sld){
-      return msSLDApplySLD(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN int mapObj_applySLDURL(struct mapObj *self,char *sld){
-      return msSLDApplySLDURL(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN char *mapObj_generateSLD(struct mapObj *self){
-        return (char *) msSLDGenerateSLD(self, -1, NULL);
-    }
-SWIGINTERN char *mapObj_processTemplate(struct mapObj *self,int bGenerateImages,char **names,char **values,int numentries){
-        return msProcessTemplate(self, bGenerateImages, names, values,
-                                 numentries);
-    }
-SWIGINTERN char *mapObj_processLegendTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessLegendTemplate(self, names, values, numentries);
-    }
-SWIGINTERN char *mapObj_processQueryTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessQueryTemplate(self, 1, names, values, numentries);
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormatByName(struct mapObj *self,char *name){
-        return msSelectOutputFormat(self, name); 
-    }
-SWIGINTERN int mapObj_appendOutputFormat(struct mapObj *self,outputFormatObj *format){
-        return msAppendOutputFormat(self, format);
-    }
-SWIGINTERN int mapObj_removeOutputFormat(struct mapObj *self,char *name){
-        return msRemoveOutputFormat(self, name);
-    }
-SWIGINTERN int mapObj_loadOWSParameters(struct mapObj *self,cgiRequestObj *request,char *wmtver_string){
-        return msMapLoadOWSParameters(self, request, wmtver_string);
-    }
-SWIGINTERN int mapObj_OWSDispatch(struct mapObj *self,cgiRequestObj *req){
-	return msOWSDispatch( self, req, 1 );
-    }
-SWIGINTERN char *mapObj_convertToString(struct mapObj *self){
-        return msWriteMapToString(self);
-    }
-SWIGINTERN int mapObj_zoomPoint(struct mapObj *self,int zoomfactor,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        int         bMaxExtSet;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (zoomfactor == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx)  {
-            msSetError(12, "Georeferenced coordinates minx >= maxx",  "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy)  {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomPoint()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* --- -------------------------------------------------------- */
-        /*      zoom in                                                 */
-        /* ------------------------------------------------------------ */
-        if (zoomfactor > 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/(2*zoomfactor));        
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/(2*zoomfactor));
-        }
-
-        if (zoomfactor < 0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2)*(abs(zoomfactor));
-        }
-
-        if (zoomfactor == 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2);
-        }
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before zooming.                           */
-        /* ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-    
-        if (self->web.maxscaledenom > 0) {
-            if (zoomfactor < 0 && dfNewScale > self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /*  we do a spcial case for zoom in : we try to zoom as much as */
-        /*  possible using the mincale set in the .map.                 */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale < self->web.minscaledenom && zoomfactor > 1) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfGeoPosY, 
-                                                   self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger than 
-             * max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        /* ------------------------------------------------------------ */
-        /*      set the map extents with new values.                    */
-        /* ------------------------------------------------------------ */
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);      
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomRectangle(struct mapObj *self,rectObj *poPixRect,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        double      dfDeltaExt;
-        double dfMiddleX, dfMiddleY;
-        double dX, dY;
-        int bMaxExtSet;
-        
-        bMaxExtSet = 0;
-        dfNewScale = 0.0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) bMaxExtSet = 1;
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (poPixRect == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomRectangle");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min <= max.   */
-        /* ----------------------------------------------------------- */
-        if (poPixRect->minx >= poPixRect->maxx) {
-            msSetError(12, "image rectangle minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        /* This is not a typo: "maxx >= minx". For historical reason, we
-         * keep this as it is. See documentation for more info about this check. */
-        if (poPixRect->maxy >= poPixRect->miny) {
-            msSetError(12, "image rectangle maxy >= miny", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12,  "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-        }
-
-  
-        /* ----------------------------------------------------------- */
-        /*   Convert pixel rectangle to georeferenced rectangle        */
-        /* ----------------------------------------------------------- */
-        
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-
-        oNewGeorefExt.minx = Pix2Georef((int)poPixRect->minx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.maxx = Pix2Georef((int)poPixRect->maxx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.miny = Pix2Georef((int)poPixRect->miny, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-        oNewGeorefExt.maxy = Pix2Georef((int)poPixRect->maxy, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before setting extents.                   */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0 &&  dfNewScale > self->web.maxscaledenom)
-            return MS_FAILURE;
-
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom) {
-            dfMiddleX = oNewGeorefExt.minx + ((oNewGeorefExt.maxx - oNewGeorefExt.minx)/2);
-            dfMiddleY = oNewGeorefExt.miny + ((oNewGeorefExt.maxy - oNewGeorefExt.miny)/2);
-
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfMiddleY, self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfMiddleX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfMiddleY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfMiddleX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfMiddleY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width,  self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomScale(struct mapObj *self,double scale,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale, dfCurrentScale;
-        int         bMaxExtSet;
-        int nTmp;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        dfCurrentScale = 0.0;
-        nTmp = 0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (scale <= 0.0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL ) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomScale");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12,  "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* ------------------------------------------------------------ */
-        /*  Calculate new extents based on the scale.                   */
-        /* ------------------------------------------------------------ */
-
-        /* ============================================================ */
-        /*  make sure to take the smallest size because this is the one */
-        /*  that will be used to ajust the scale.                       */
-        /* ============================================================ */
-
-        if (self->width <  self->height)
-            nTmp = self->width;
-        else
-            nTmp = self->height;
-
-        /* To be consistent in swig mapscript and PHP mapscript, 
-           use the same function to calculate the delta extents. */
-        dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-
-        if (dfDeltaExt > 0.0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-        } else
-            return MS_FAILURE;
-
-        /* ------------------------------------------------------------ */
-        /*   get current scale.                                         */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(*poGeorefExt, self->units, self->width, self->height, self->resolution, &dfCurrentScale);
-
-        /* ------------------------------------------------------------ *
-         *   if the min and max scale are set in the map file, we will  *
-         *   use them to test before zooming.                           *
-         *                                                              *
-         *   This function has the same effect as zoomin or zoom out.
-         *   If the current scale is > newscale we zoom in; else it is
-         *   a zoom out.
-         * ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0) {
-            if (dfCurrentScale < dfNewScale && dfNewScale >  self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /* we do a special case for zoom in : we try to zoom as much as */
-        /* possible using the mincale set in the .map.                  */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom && dfCurrentScale > dfNewScale) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN rectObj *new_rectObj(double minx,double miny,double maxx,double maxy,int imageunits){	
-        rectObj *rect;
-    
-        if (imageunits == 0)
-        { 
-            if (minx > maxx || miny > maxy)
-            {
-                msSetError(34,
-                    "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-        else 
-        {
-            if (minx > maxx || maxy > miny) 
-            {
-                msSetError(34,
-                    "image (pixel/line) units { 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-    
-        rect = (rectObj *)calloc(1, sizeof(rectObj));
-        if (!rect)
-            return(NULL);
-    
-        rect->minx = minx;
-        rect->miny = miny;
-        rect->maxx = maxx;
-        rect->maxy = maxy;
-
-        return(rect);    	
-    }
-SWIGINTERN void delete_rectObj(rectObj *self){
-        free(self);
-    }
-SWIGINTERN int rectObj_project(rectObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectRect(projin, projout, self);
-    }
-SWIGINTERN double rectObj_fit(rectObj *self,int width,int height){
-        return  msAdjustExtent(self, width, height);
-    }
-SWIGINTERN int rectObj_draw(rectObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        shapeObj shape;
-
-        msInitShape(&shape);
-        msRectToPolygon(*self, &shape);
-        shape.classindex = classindex;
-        if(text && layer->class[classindex]->numlabels > 0) {
-          shape.text = strdup(text);
-          msShapeGetAnnotation(layer,&shape);
-        }
-        
-        msDrawShape(map, layer, &shape, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-
-        msFreeShape(&shape);
-    
-        return MS_SUCCESS;
-    }
-SWIGINTERN pointObj *rectObj_getCenter(rectObj *self){
-		pointObj *center;
-        center = (pointObj *)calloc(1, sizeof(pointObj));
-        if (!center) {
-            msSetError(2, "Failed to allocate memory for point", "getCenter()");
-            return NULL;
-        }
-        center->x = (self->minx + self->maxx)/2;
-        center->y = (self->miny + self->maxy)/2;
-        
-        return center;
-    }
-SWIGINTERN shapeObj *rectObj_toPolygon(rectObj *self){
-        lineObj line = {0,NULL};
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = MS_SHAPE_POLYGON;
-  
-        line.point = (pointObj *)malloc(sizeof(pointObj)*5);
-        line.point[0].x = self->minx;
-        line.point[0].y = self->miny;
-        line.point[1].x = self->minx;
-        line.point[1].y = self->maxy;
-        line.point[2].x = self->maxx;
-        line.point[2].y = self->maxy;
-        line.point[3].x = self->maxx;
-        line.point[3].y = self->miny;
-        line.point[4].x = line.point[0].x;
-        line.point[4].y = line.point[0].y;
-  
-        line.numpoints = 5;
-  
-        msAddLine(shape, &line);
-        msComputeBounds(shape);
-        
-        free(line.point);
-
-        return shape;
-    }
-SWIGINTERN char *rectObj_toString(rectObj *self){
-        char buffer[256];
-        char fmt[]="{ 'minx': %.16g , 'miny': %.16g , 'maxx': %.16g , 'maxy': %.16g }";
-        msRectToFormattedString(self, (char *) &fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN pointObj *new_pointObj(double x,double y,double z,double m){
-        pointObj *p;
-        p = (pointObj *)calloc(1,sizeof(pointObj));
-        if (!p) return NULL;
-        p->x = x;
-        p->y = y;
-
-
-
-
-        return p;
-    }
-SWIGINTERN void delete_pointObj(pointObj *self){
-        free(self);
-    }
-SWIGINTERN int pointObj_project(pointObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectPoint(projin, projout, self);
-    }
-SWIGINTERN int pointObj_draw(pointObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        return msDrawPoint(map, layer, self, image, classindex, text);
-    }
-SWIGINTERN double pointObj_distanceToPoint(pointObj *self,pointObj *point){
-        return msDistancePointToPoint(self, point);
-    }
-SWIGINTERN double pointObj_distanceToSegment(pointObj *self,pointObj *a,pointObj *b){
-        return msDistancePointToSegment(self, a, b);
-    }
-SWIGINTERN double pointObj_distanceToShape(pointObj *self,shapeObj *shape){
-        return msDistancePointToShape(self, shape);
-    }
-SWIGINTERN int pointObj_setXY(pointObj *self,double x,double y,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-	
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZ(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZM(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *pointObj_toString(pointObj *self){
-        char buffer[256];
-        const char *fmt;
-
-
-
-
-
-
-
-        fmt = "{ 'x': %.16g, 'y': %.16g }";
-
-	
-        msPointToFormattedString(self, fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN shapeObj *pointObj_toShape(pointObj *self){
-      shapeObj *shape;
-
-      shape = (shapeObj *) malloc(sizeof(shapeObj));
-      msInitShape(shape);
-    
-      shape->type = MS_SHAPE_POINT;
-      shape->line = (lineObj *) malloc(sizeof(lineObj));
-      shape->numlines = 1;
-      shape->line[0].point = (pointObj *) malloc(sizeof(pointObj));
-      shape->line[0].numpoints = 1;
-
-      shape->line[0].point[0].x = self->x;
-      shape->line[0].point[0].y = self->y;
-
-
-
-
-
-      return shape;
-    }
-SWIGINTERN lineObj *new_lineObj(){
-        lineObj *line;
-
-        line = (lineObj *)malloc(sizeof(lineObj));
-        if (!line)
-            return(NULL);
-
-        line->numpoints=0;
-        line->point=NULL;
-
-        return line;
-    }
-SWIGINTERN void delete_lineObj(lineObj *self){
-        free(self->point);
-        free(self);		
-    }
-SWIGINTERN int lineObj_project(lineObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectLine(projin, projout, self);
-    }
-SWIGINTERN pointObj *lineObj_get(lineObj *self,int i){
-        if (i<0 || i>=self->numpoints)
-            return NULL;
-        else
-            return &(self->point[i]);
-    }
-SWIGINTERN int lineObj_add(lineObj *self,pointObj *p){
-        if (self->numpoints == 0) { /* new */	
-        self->point = (pointObj *)malloc(sizeof(pointObj));      
-        if (!self->point)
-	        return MS_FAILURE;
-        } else { /* extend array */
-            self->point = (pointObj *)realloc(self->point, 
-                                      sizeof(pointObj)*(self->numpoints+1));
-        if (!self->point)
-	        return MS_FAILURE;
-        }
-
-        self->point[self->numpoints].x = p->x;
-        self->point[self->numpoints].y = p->y;
-        self->numpoints++;
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int lineObj_set(lineObj *self,int i,pointObj *p){
-        if (i<0 || i>=self->numpoints)
-            return MS_FAILURE;
-
-        self->point[i].x = p->x;
-        self->point[i].y = p->y;
-        return MS_SUCCESS;    
-    }
-SWIGINTERN shapeObj *new_shapeObj(int type){
-        shapeObj *shape;
-
-	shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-
-        msInitShape(shape);
-        if(type >= 0) shape->type = type;
-        
-        return shape;
-    }
-SWIGINTERN void delete_shapeObj(shapeObj *self){
-        msFreeShape(self);
-        free(self);		
-    }
-SWIGINTERN shapeObj *shapeObj_fromWKT(char *wkt){
-	shapeObj *shape;
-        
-        if(!wkt) return NULL;
-
-        shape = msShapeFromWKT(wkt);
-	if(!shape) return NULL;
-
-	return shape;
-    }
-SWIGINTERN int shapeObj_project(shapeObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectShape(projin, projout, self);
-    }
-SWIGINTERN lineObj *shapeObj_get(shapeObj *self,int i){
-        if (i<0 || i>=self->numlines)
-            return NULL;
-        else
-            return &(self->line[i]);
-    }
-SWIGINTERN int shapeObj_add(shapeObj *self,lineObj *line){
-        return msAddLine(self, line);
-    }
-SWIGINTERN int shapeObj_draw(shapeObj *self,mapObj *map,layerObj *layer,imageObj *image){
-        return msDrawShape(map, layer, self, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-    }
-SWIGINTERN void shapeObj_setBounds(shapeObj *self){    
-        msComputeBounds(self);
-        return;
-    }
-SWIGINTERN shapeObj *shapeObj_clone(shapeObj *self){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msCopyShape(self, shape);
-        return shape;
-    }
-SWIGINTERN int shapeObj_copy(shapeObj *self,shapeObj *dest){
-        return(msCopyShape(self, dest));
-    }
-SWIGINTERN char *shapeObj_toWKT(shapeObj *self){
-        return msShapeToWKT(self);
-    }
-SWIGINTERN shapeObj *shapeObj_buffer(shapeObj *self,double width){ return msGEOSBuffer(self, width); }
-SWIGINTERN shapeObj *shapeObj_simplify(shapeObj *self,double tolerance){ return msGEOSSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_topologyPreservingSimplify(shapeObj *self,double tolerance){ return msGEOSTopologyPreservingSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_convexHull(shapeObj *self){ return msGEOSConvexHull(self); }
-SWIGINTERN shapeObj *shapeObj_boundary(shapeObj *self){ return msGEOSBoundary(self); }
-SWIGINTERN pointObj *shapeObj_getCentroid(shapeObj *self){ return msGEOSGetCentroid(self); }
-SWIGINTERN shapeObj *shapeObj_Union(shapeObj *self,shapeObj *shape){ return msGEOSUnion(self, shape); }
-SWIGINTERN shapeObj *shapeObj_intersection(shapeObj *self,shapeObj *shape){ return msGEOSIntersection(self, shape); }
-SWIGINTERN shapeObj *shapeObj_difference(shapeObj *self,shapeObj *shape){ return msGEOSDifference(self, shape); }
-SWIGINTERN shapeObj *shapeObj_symDifference(shapeObj *self,shapeObj *shape){ return msGEOSSymDifference(self, shape); }
-SWIGINTERN int shapeObj_contains__SWIG_0(shapeObj *self,shapeObj *shape){ return msGEOSContains(self, shape); }
-SWIGINTERN int shapeObj_overlaps(shapeObj *self,shapeObj *shape){ return msGEOSOverlaps(self, shape); }
-SWIGINTERN int shapeObj_within(shapeObj *self,shapeObj *shape){ return msGEOSWithin(self, shape); }
-SWIGINTERN int shapeObj_crosses(shapeObj *self,shapeObj *shape){ return msGEOSCrosses(self, shape); }
-SWIGINTERN int shapeObj_intersects(shapeObj *self,shapeObj *shape){ return msGEOSIntersects(self, shape); }
-SWIGINTERN int shapeObj_touches(shapeObj *self,shapeObj *shape){ return msGEOSTouches(self, shape); }
-SWIGINTERN int shapeObj_equals(shapeObj *self,shapeObj *shape){ return msGEOSEquals(self, shape); }
-SWIGINTERN int shapeObj_disjoint(shapeObj *self,shapeObj *shape){ return msGEOSDisjoint(self, shape); }
-SWIGINTERN double shapeObj_getArea(shapeObj *self){ return msGEOSArea(self); }
-SWIGINTERN double shapeObj_getLength(shapeObj *self){ return msGEOSLength(self); }
-SWIGINTERN char *shapeObj_getValue(shapeObj *self,int i){
-        if (i >= 0 && i < self->numvalues && self->values)
-            return (self->values[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int shapeObj_contains__SWIG_1(shapeObj *self,pointObj *point){
-        if (self->type == MS_SHAPE_POLYGON)
-            return msIntersectPointPolygon(point, self);
-        
-        return -1;
-    }
-SWIGINTERN double shapeObj_distanceToPoint(shapeObj *self,pointObj *point){
-        return msDistancePointToShape(point, self); /* should there be a GEOS version of this? */
-    }
-SWIGINTERN double shapeObj_distanceToShape(shapeObj *self,shapeObj *shape){
-	return msGEOSDistance(self, shape); /* note this calls msDistanceShapeToShape() if GEOS support is not present */
-    }
-SWIGINTERN pointObj *shapeObj_getLabelPoint(shapeObj *self){
-        pointObj *point = (pointObj *)calloc(1, sizeof(pointObj));
-        if (point == NULL) {
-            msSetError(2, "Failed to allocate memory for point", "labelPoint()");
-            return NULL;
-        }
-
-        if(self->type == MS_SHAPE_POLYGON && msPolygonLabelPoint(self, point, -1) == MS_SUCCESS)
-            return point;
-
-        free(point);
-        return NULL;
-    }
-SWIGINTERN int shapeObj_setValue(shapeObj *self,int i,char *value){
-        if (!self->values || !value)
-        {
-            msSetError(19, "Can't set value", "setValue()");
-            return MS_FAILURE;
-        }
-        if (i >= 0 && i < self->numvalues)
-        {
-            msFree(self->values[i]);
-            self->values[i] = strdup(value);
-            if (!self->values[i])
-            {
-                return MS_FAILURE;
-            }
-            else return MS_SUCCESS;
-        }
-        else
-        {
-            msSetError(19, "Invalid value index", 
-                                  "setValue()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN void shapeObj_initValues(shapeObj *self,int numvalues){
-        int i;
-        
-        if(self->values) msFreeCharArray(self->values, self->numvalues);
-        self->values = NULL;
-        self->numvalues = 0;
-        
-        /* Allocate memory for the values */
-        if (numvalues > 0) {
-            if ((self->values = (char **)malloc(sizeof(char *)*numvalues)) == NULL) {
-                msSetError(2, "Failed to allocate memory for values", "shapeObj()");
-                return;
-            } else {
-                for (i=0; i<numvalues; i++) self->values[i] = strdup("");
-            }
-            self->numvalues = numvalues;
-        }
-    }
-SWIGINTERN char *DBFInfo_getFieldName(DBFInfo *self,int iField){
-        static char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, 
-                          &pnDecimals);
-	    return pszFieldName;
-    }
-SWIGINTERN int DBFInfo_getFieldWidth(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnWidth;
-    }
-SWIGINTERN int DBFInfo_getFieldDecimals(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnDecimals;
-    }
-SWIGINTERN int DBFInfo_getFieldType(DBFInfo *self,int iField){
-	    return msDBFGetFieldInfo(self, iField, NULL, NULL, NULL);
-    }
-SWIGINTERN shapefileObj *new_shapefileObj(char *filename,int type){    
-        shapefileObj *shapefile;
-        int status;
-
-        shapefile = (shapefileObj *)malloc(sizeof(shapefileObj));
-        if (!shapefile)
-            return NULL;
-
-        if (type == -1)
-            status = msShapefileOpen(shapefile, "rb", filename, 1);
-        else if (type == -2)
-            status = msShapefileOpen(shapefile, "rb+", filename, 1);
-        else
-            status = msShapefileCreate(shapefile, filename, type);
-
-        if (status == -1) {
-            msShapefileClose(shapefile);
-            free(shapefile);
-            return NULL;
-        }
- 
-        return(shapefile);
-    }
-SWIGINTERN void delete_shapefileObj(shapefileObj *self){
-        msShapefileClose(self);
-        free(self);  
-    }
-SWIGINTERN int shapefileObj_get(shapefileObj *self,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN shapeObj *shapefileObj_getShape(shapefileObj *self,int i){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msSHPReadShape(self->hSHP, i, shape);
-        return shape;
-
-    }
-SWIGINTERN int shapefileObj_getPoint(shapefileObj *self,int i,pointObj *point){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msSHPReadPoint(self->hSHP, i, point);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int shapefileObj_getTransformed(shapefileObj *self,mapObj *map,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-        msTransformShapeSimplify(shape, map->extent, map->cellsize);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN void shapefileObj_getExtent(shapefileObj *self,int i,rectObj *rect){
-        msSHPReadBounds(self->hSHP, i, rect);
-    }
-SWIGINTERN int shapefileObj_add(shapefileObj *self,shapeObj *shape){
-        /* Trap NULL or empty shapes -- bug 1201 */
-        if (!shape) 
-        {
-            msSetError(19, "Can't add NULL shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-        else if (!shape->line)
-        {
-            msSetError(19, "Can't add empty shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-
-        return msSHPWriteShape(self->hSHP, shape);	
-    }
-SWIGINTERN int shapefileObj_addPoint(shapefileObj *self,pointObj *point){    
-        return msSHPWritePoint(self->hSHP, point);	
-    }
-SWIGINTERN DBFInfo *shapefileObj_getDBF(shapefileObj *self){
-    	return self->hDBF;
-    }
-SWIGINTERN projectionObj *new_projectionObj(char *proj4){
-        int status;
-        projectionObj *proj=NULL;
-
-        proj = (projectionObj *)malloc(sizeof(projectionObj));
-        if (!proj) return NULL;
-        msInitProjection(proj);
-
-        status = msLoadProjectionString(proj, proj4);
-        if (status == -1) {
-            msFreeProjection(proj);
-            free(proj);
-            return NULL;
-        }
-
-        return proj;
-    }
-SWIGINTERN void delete_projectionObj(projectionObj *self){
-        msFreeProjection(self);
-        free(self);		
-    }
-SWIGINTERN int projectionObj_setWKTProjection(projectionObj *self,char *wkt){
-        /* no debug output here */
-        return msOGCWKT2ProjectionObj(wkt, self, 0);
-    }
-SWIGINTERN int projectionObj_getUnits(projectionObj *self){
-      return GetMapserverUnitUsingProj(self);
-    }
-SWIGINTERN colorObj *new_colorObj(int red,int green,int blue,int pen){
-        colorObj *color;
-        
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "colorObj()");
-            return NULL;
-        }
-    
-        color = (colorObj *)calloc(1, sizeof(colorObj));
-        if (!color)
-            return(NULL);
-    
-        MS_INIT_COLOR(*color, red, green, blue, 255);
-
-        return(color);    	
-    }
-SWIGINTERN void delete_colorObj(colorObj *self){
-        free(self);
-    }
-SWIGINTERN int colorObj_setRGB(colorObj *self,int red,int green,int blue){
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "setRGB()");
-            return MS_FAILURE;
-        }
-    
-        MS_INIT_COLOR(*self, red, green, blue, 255);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int colorObj_setHex(colorObj *self,char *psHexColor){
-        int red, green, blue;
-        if (psHexColor && strlen(psHexColor)== 7 && psHexColor[0] == '#') {
-            red = msHexToInt(psHexColor+1);
-            green = msHexToInt(psHexColor+3);
-            blue= msHexToInt(psHexColor+5);
-            if (red > 255 || green > 255 || blue > 255) {
-                msSetError(12, "Invalid color index.", "setHex()");
-                return MS_FAILURE;
-            }
-
-            MS_INIT_COLOR(*self, red, green, blue, 255);
-            return MS_SUCCESS;
-        }
-        else {
-            msSetError(12, "Invalid hex color.", "setHex()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN char *colorObj_toHex(colorObj *self){
-        char hexcolor[8] = "";
-
-        if (!self) 
-        {
-            msSetError(12, "Can't express NULL color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        if (self->red < 0 || self->green < 0 || self->blue < 0) 
-        {
-            msSetError(12, "Can't express invalid color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        snprintf(hexcolor, 8, "#%02x%02x%02x",
-                 self->red, self->green, self->blue);
-        return strdup(hexcolor);
-    }
-SWIGINTERN struct symbolObj *new_symbolObj(char *symbolname,char const *imagefile){
-        symbolObj *symbol;
-        symbol = (symbolObj *) malloc(sizeof(symbolObj));
-        initSymbol(symbol);
-        symbol->name = strdup(symbolname);
-        if (imagefile) {
-            msLoadImageSymbol(symbol, imagefile);
-        }
-        return symbol;
-    }
-SWIGINTERN void delete_symbolObj(struct symbolObj *self){
-		if (self) {
-            if (msFreeSymbol(self)==MS_SUCCESS) {
-            	free(self);
-				self=NULL;
-			}
-        }
-    }
-SWIGINTERN int symbolObj_setImagepath(struct symbolObj *self,char const *imagefile){
-	return msLoadImageSymbol(self, imagefile);
-    }
-SWIGINTERN int symbolObj_setPoints(struct symbolObj *self,lineObj *line){
-        int i;
-	self->sizex = 0;
-	self->sizey = 0;
-        for (i=0; i<line->numpoints; i++) {
-            MS_COPYPOINT(&(self->points[i]), &(line->point[i]));
-	    self->sizex = MS_MAX(self->sizex, self->points[i].x);
-	    self->sizey = MS_MAX(self->sizey, self->points[i].y);
-        }
-        self->numpoints = line->numpoints;
-        return self->numpoints;
-    }
-SWIGINTERN lineObj *symbolObj_getPoints(struct symbolObj *self){
-        int i;
-        lineObj *line;
-        line = (lineObj *) malloc(sizeof(lineObj));
-        line->point = (pointObj *) malloc(sizeof(pointObj)*(self->numpoints));
-        for (i=0; i<self->numpoints; i++) {
-            line->point[i].x = self->points[i].x;
-            line->point[i].y = self->points[i].y;
-        }
-        line->numpoints = self->numpoints;
-        return line;
-    }
-SWIGINTERN imageObj *symbolObj_getImage(struct symbolObj *self,outputFormatObj *input_format){
-        imageObj *image = NULL;
-        outputFormatObj *format = NULL;
-        rendererVTableObj *renderer = NULL;
-
-        if (self->type != MS_SYMBOL_PIXMAP)
-        {
-            msSetError(4, "Can't return image from non-pixmap symbol",
-                       "getImage()");
-            return NULL;
-        }
-    
-        if (input_format)
-        {
-            format = input_format;
-        }
-        else 
-        {
-            format = msCreateDefaultOutputFormat(NULL, "GD/GIF", "gdgif");
-            if (format == NULL)
-                format = msCreateDefaultOutputFormat(NULL, "GD/PNG", "gdpng");
-
-            if (format)
-                msInitializeRendererVTable(format);
-        }
-        
-        if (format == NULL) 
-        {
-            msSetError(15, "Could not create output format",
-                       "getImage()");
-            return NULL;
-        }
-
-        renderer = format->vtable;
-        msPreloadImageSymbol(renderer, self);
-        if (self->pixmap_buffer) 
-        {
-            image = msImageCreate(self->pixmap_buffer->width, self->pixmap_buffer->height, format, NULL, NULL,
-                                  MS_DEFAULT_RESOLUTION, MS_DEFAULT_RESOLUTION, NULL);
-            renderer->mergeRasterBuffer(image, self->pixmap_buffer, 1.0, 0, 0, 0, 0, 
-                                        self->pixmap_buffer->width, self->pixmap_buffer->height);
-        }
-
-        return image;
-    }
-SWIGINTERN int symbolObj_setImage(struct symbolObj *self,imageObj *image){
-        rendererVTableObj *renderer = NULL;
-        
-        renderer = image->format->vtable;
-        
-        if (self->pixmap_buffer) {
-            msFreeRasterBuffer(self->pixmap_buffer);
-            free(self->pixmap_buffer);
-        }
-        
-        self->pixmap_buffer = (rasterBufferObj*)malloc(sizeof(rasterBufferObj));
-        if (!self->pixmap_buffer) {
-            msSetError(2, NULL, "setImage()");
-            return MS_FAILURE;
-        }
-        self->type = MS_SYMBOL_PIXMAP;
-        renderer->getRasterBufferCopy(image, self->pixmap_buffer);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN struct errorObj *new_errorObj(){    
-        return msGetErrorObj();
-    }
-SWIGINTERN void delete_errorObj(struct errorObj *self){}
-SWIGINTERN errorObj *errorObj_next(struct errorObj *self){
-        errorObj *ep;	
-
-        if (self == NULL || self->next == NULL) return NULL;
-
-        ep = msGetErrorObj();
-        while (ep != self) {
-            /* We reached end of list of active errorObj and 
-               didn't find the errorObj... this is bad! */
-            if (ep->next == NULL) return NULL;
-            ep = ep->next;
-        }
-    
-        return ep->next;
-    }
-
-#include "../../mapserver.h"
-
-
-#include "../../maphash.h"
-
-SWIGINTERN hashTableObj *new_hashTableObj(){
-
-
-
-        return msCreateHashTable();
-    }
-SWIGINTERN void delete_hashTableObj(hashTableObj *self){
-        msFreeHashTable(self);
-    }
-SWIGINTERN int hashTableObj_set(hashTableObj *self,char *key,char *value){
-        if (msInsertHashTable(self, key, value) == NULL) {
-	        return MS_FAILURE;
-        }
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *hashTableObj_get(hashTableObj *self,char *key,char *default_value){
-        char *value = NULL;
-        if (!key) {
-            msSetError(16, "NULL key", "get");
-        }
-     
-        value = (char *) msLookupHashTable(self, key);
-        if (!value) {
-            return default_value;
-        }
-        return value;
-    }
-SWIGINTERN int hashTableObj_remove(hashTableObj *self,char *key){
-        return msRemoveHashTable(self, key);
-    }
-SWIGINTERN void hashTableObj_clear(hashTableObj *self){
-        msFreeHashItems(self);
-        initHashTable(self);
-    }
-SWIGINTERN char const *hashTableObj_nextKey(hashTableObj *self,char *prevkey){
-        return msNextKeyFromHashTable(self, (const char *) prevkey);
-    }
-
-static char *msGetEnvURL( const char *key, void *thread_context )
-{
-    if( strcmp(key,"REQUEST_METHOD") == 0 )
-        return "GET";
-
-    if( strcmp(key,"QUERY_STRING") == 0 )
-        return (char *) thread_context;
-
-    return NULL;
-}
-
-SWIGINTERN cgiRequestObj *new_cgiRequestObj(){
-        cgiRequestObj *request;
-
-        request = msAllocCgiObj();
-        if (!request) {
-            msSetError(13, "Failed to initialize object","OWSRequest()");
-            return NULL;
-        }
-        
-        return request;
-    }
-SWIGINTERN void delete_cgiRequestObj(cgiRequestObj *self){
-        msFreeCgiObj(self);
-    }
-SWIGINTERN int cgiRequestObj_loadParams(cgiRequestObj *self){
-	self->NumParams = loadParams( self, NULL, NULL, 0, NULL);
-	return self->NumParams;
-    }
-SWIGINTERN int cgiRequestObj_loadParamsFromURL(cgiRequestObj *self,char const *url){
-	self->NumParams = loadParams( self, msGetEnvURL, NULL, 0, (void*)url );
-	return self->NumParams;
-    }
-SWIGINTERN void cgiRequestObj_setParameter(cgiRequestObj *self,char *name,char *value){
-        int i;
-        
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "setItem()", 100);
-        }
-        
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                free(self->ParamValues[i]);
-                self->ParamValues[i] = strdup(value);
-                break;
-            }
-        }
-        if (i == self->NumParams) {
-            self->ParamNames[self->NumParams] = strdup(name);
-            self->ParamValues[self->NumParams] = strdup(value);
-            self->NumParams++;
-        }
-    }
-SWIGINTERN void cgiRequestObj_addParameter(cgiRequestObj *self,char *name,char *value){
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "addParameter()", 100);
-        }
-        self->ParamNames[self->NumParams] = strdup(name);
-        self->ParamValues[self->NumParams] = strdup(value);
-        self->NumParams++;
-    }
-SWIGINTERN char *cgiRequestObj_getName(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getName()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamNames[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValue(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getValue()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamValues[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValueByName(cgiRequestObj *self,char const *name){
-        int i;
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                return self->ParamValues[i];
-            }
-        }
-        return NULL;
-    }
-
-
-const char *msIO_getStdoutBufferString() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	return "";
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    /* write one zero byte and backtrack if it isn't already there */
-    if( buf->data_len == 0 || buf->data[buf->data_offset] != '\0' ) {
-        msIO_bufferWrite( buf, "", 1 );
-	buf->data_offset--;
-    }
-
-    return (const char *) (buf->data);
-}
-
-gdBuffer msIO_getStdoutBufferBytes() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-    gdBuffer     gdBuf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	gdBuf.data = (unsigned char*)"";
-	gdBuf.size = 0;
-	gdBuf.owns_data = MS_FALSE;
-	return gdBuf;
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    gdBuf.data = buf->data;
-    gdBuf.size = buf->data_offset;
-    gdBuf.owns_data = MS_TRUE;
-
-    /* we are seizing ownership of the buffer contents */
-    buf->data_offset = 0;
-    buf->data_len = 0;
-    buf->data = NULL;
-
-    return gdBuf;
-}
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_intarray(int jarg1) {
-  void * jresult ;
-  int arg1 ;
-  intarray *result = 0 ;
-  
-  arg1 = (int)jarg1; 
-  result = (intarray *)new_intarray(arg1);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_intarray(void * jarg1) {
-  intarray *arg1 = (intarray *) 0 ;
-  
-  arg1 = (intarray *)jarg1; 
-  delete_intarray(arg1);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_intarray_getitem(void * jarg1, int jarg2) {
-  int jresult ;
-  intarray *arg1 = (intarray *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (intarray *)jarg1; 
-  arg2 = (int)jarg2; 
-  result = (int)intarray_getitem(arg1,arg2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_intarray_setitem(void * jarg1, int jarg2, int jarg3) {
-  intarray *arg1 = (intarray *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  
-  arg1 = (intarray *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
-  intarray_setitem(arg1,arg2,arg3);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_intarray_cast(void * jarg1) {
-  void * jresult ;
-  intarray *arg1 = (intarray *) 0 ;
-  int *result = 0 ;
-  
-  arg1 = (intarray *)jarg1; 
-  result = (int *)intarray_cast(arg1);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MAX_ERROR_LEN_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(8192);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_TRUE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_FALSE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_UNKNOWN_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(-1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_ON_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_OFF_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_DEFAULT_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_EMBED_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(3);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_DELETE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(4);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_YES_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NO_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_GD_ALPHA_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1000);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_LAYER_ALLOCSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(64);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_CLASS_ALLOCSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(8);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_STYLE_ALLOCSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(4);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_LABEL_ALLOCSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MAX_LABEL_PRIORITY_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(10);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MAX_LABEL_FONTS_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(5);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_DEFAULT_LABEL_PRIORITY_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_LABEL_FORCE_GROUP_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_SWF_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_RAWDATA_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(3);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_IMAGEMAP_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(5);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_TEMPLATE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(8);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_OGR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(16);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_PLUGIN_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(100);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_CAIRO_RASTER_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(101);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_CAIRO_PDF_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(102);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_CAIRO_SVG_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(103);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_OGL_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(104);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_AGG_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(105);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_GD_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(106);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDER_WITH_KML_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(107);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_POSITIONS_LENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(14);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SINGLE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MULTIPLE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_CJC_DEFAULT_JOIN_MAXSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(3);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_STYLE_BINDING_LENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(12);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_LABEL_BINDING_LENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(9);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_fontSetObj_filename_get(void * jarg1) {
-  char * jresult ;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (fontSetObj *)jarg1; 
-  result = (char *) ((arg1)->filename);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_fontSetObj_numfonts_get(void * jarg1) {
-  int jresult ;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  int result;
-  
-  arg1 = (fontSetObj *)jarg1; 
-  result = (int) ((arg1)->numfonts);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_fontSetObj_fonts_get(void * jarg1) {
-  void * jresult ;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (fontSetObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->fonts);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_fontSetObj() {
-  void * jresult ;
-  fontSetObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (fontSetObj *)calloc(1, sizeof(fontSetObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_fontSetObj(void * jarg1) {
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  
-  arg1 = (fontSetObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_clusterObj_maxdistance_set(void * jarg1, double jarg2) {
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxdistance = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_clusterObj_maxdistance_get(void * jarg1) {
-  double jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double result;
-  
-  arg1 = (clusterObj *)jarg1; 
-  result = (double) ((arg1)->maxdistance);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_clusterObj_buffer_set(void * jarg1, double jarg2) {
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->buffer = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_clusterObj_buffer_get(void * jarg1) {
-  double jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double result;
-  
-  arg1 = (clusterObj *)jarg1; 
-  result = (double) ((arg1)->buffer);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_clusterObj_region_set(void * jarg1, char * jarg2) {
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->region) free((char*)arg1->region);
-    if (arg2) {
-      arg1->region = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->region,arg2);
-    } else {
-      arg1->region = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_clusterObj_region_get(void * jarg1) {
-  char * jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  result = (char *) ((arg1)->region);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_clusterObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)clusterObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_clusterObj_convertToString(void * jarg1) {
-  char * jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)clusterObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_clusterObj_setGroup(void * jarg1, char * jarg2) {
-  int jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)clusterObj_setGroup(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_clusterObj_getGroupString(void * jarg1) {
-  char * jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)clusterObj_getGroupString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_clusterObj_setFilter(void * jarg1, char * jarg2) {
-  int jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (clusterObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)clusterObj_setFilter(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_clusterObj_getFilterString(void * jarg1) {
-  char * jresult ;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)clusterObj_getFilterString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_clusterObj() {
-  void * jresult ;
-  clusterObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (clusterObj *)calloc(1, sizeof(clusterObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_clusterObj(void * jarg1) {
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  
-  arg1 = (clusterObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_numformatoptions_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->numformatoptions);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_name_set(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_name_get(void * jarg1) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_mimetype_set(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->mimetype) free((char*)arg1->mimetype);
-    if (arg2) {
-      arg1->mimetype = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mimetype,arg2);
-    } else {
-      arg1->mimetype = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_mimetype_get(void * jarg1) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (char *) ((arg1)->mimetype);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_driver_set(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->driver) free((char*)arg1->driver);
-    if (arg2) {
-      arg1->driver = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->driver,arg2);
-    } else {
-      arg1->driver = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_driver_get(void * jarg1) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (char *) ((arg1)->driver);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_extension_set(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->extension) free((char*)arg1->extension);
-    if (arg2) {
-      arg1->extension = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->extension,arg2);
-    } else {
-      arg1->extension = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_extension_get(void * jarg1) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (char *) ((arg1)->extension);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_renderer_set(void * jarg1, int jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->renderer = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_renderer_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->renderer);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_imagemode_set(void * jarg1, int jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->imagemode = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_imagemode_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->imagemode);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_transparent_set(void * jarg1, int jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->transparent = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_transparent_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->transparent);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_bands_set(void * jarg1, int jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->bands = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_bands_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->bands);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_inmapfile_set(void * jarg1, int jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->inmapfile = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_inmapfile_get(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  result = (int) ((arg1)->inmapfile);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_outputFormatObj(char * jarg1, char * jarg2) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) NULL ;
-  outputFormatObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (outputFormatObj *)new_outputFormatObj((char const *)arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_outputFormatObj(void * jarg1) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_outputFormatObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_setExtension(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    outputFormatObj_setExtension(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_setMimetype(void * jarg1, char * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    outputFormatObj_setMimetype(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_setOption(void * jarg1, char * jarg2, char * jarg3) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    outputFormatObj_setOption(arg1,(char const *)arg2,(char const *)arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_outputFormatObj_validate(void * jarg1) {
-  int jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)outputFormatObj_validate(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_getOption(void * jarg1, char * jarg2, char * jarg3) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) "" ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (char *)outputFormatObj_getOption(arg1,(char const *)arg2,(char const *)arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_outputFormatObj_getOptionAt(void * jarg1, int jarg2) {
-  char * jresult ;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)outputFormatObj_getOptionAt(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_outputFormatObj_attachDevice(void * jarg1, void * jarg2) {
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *arg2 = (void *) 0 ;
-  
-  arg1 = (outputFormatObj *)jarg1; 
-  arg2 = (void *)jarg2; 
-  {
-    errorObj *ms_error;
-    outputFormatObj_attachDevice(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NOOVERRIDE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(-1111);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_queryMapObj_height_set(void * jarg1, int jarg2) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_queryMapObj_height_get(void * jarg1) {
-  int jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int result;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_queryMapObj_width_set(void * jarg1, int jarg2) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_queryMapObj_width_get(void * jarg1) {
-  int jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int result;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_queryMapObj_status_set(void * jarg1, int jarg2) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_queryMapObj_status_get(void * jarg1) {
-  int jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int result;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_queryMapObj_style_set(void * jarg1, int jarg2) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->style = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_queryMapObj_style_get(void * jarg1) {
-  int jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int result;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  result = (int) ((arg1)->style);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_queryMapObj_color_set(void * jarg1, void * jarg2) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_queryMapObj_color_get(void * jarg1) {
-  void * jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_queryMapObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)queryMapObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_queryMapObj_convertToString(void * jarg1) {
-  char * jresult ;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)queryMapObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_queryMapObj() {
-  void * jresult ;
-  queryMapObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (queryMapObj *)calloc(1, sizeof(queryMapObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_queryMapObj(void * jarg1) {
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  
-  arg1 = (queryMapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_log_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->log) free((char*)arg1->log);
-    if (arg2) {
-      arg1->log = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->log,arg2);
-    } else {
-      arg1->log = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_log_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->log);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_imagepath_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->imagepath) free((char*)arg1->imagepath);
-    if (arg2) {
-      arg1->imagepath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->imagepath,arg2);
-    } else {
-      arg1->imagepath = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_imagepath_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->imagepath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_imageurl_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->imageurl) free((char*)arg1->imageurl);
-    if (arg2) {
-      arg1->imageurl = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->imageurl,arg2);
-    } else {
-      arg1->imageurl = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_imageurl_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->imageurl);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_temppath_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->temppath) free((char*)arg1->temppath);
-    if (arg2) {
-      arg1->temppath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->temppath,arg2);
-    } else {
-      arg1->temppath = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_temppath_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->temppath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_webObj_map_get(void * jarg1) {
-  void * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  struct mapObj *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (struct mapObj *) ((arg1)->map);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_template_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_template_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->template);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_header_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->header) free((char*)arg1->header);
-    if (arg2) {
-      arg1->header = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->header,arg2);
-    } else {
-      arg1->header = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_header_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->header);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_footer_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->footer) free((char*)arg1->footer);
-    if (arg2) {
-      arg1->footer = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->footer,arg2);
-    } else {
-      arg1->footer = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_footer_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->footer);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_empty_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->empty) free((char*)arg1->empty);
-    if (arg2) {
-      arg1->empty = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->empty,arg2);
-    } else {
-      arg1->empty = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_empty_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->empty);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_error_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->error) free((char*)arg1->error);
-    if (arg2) {
-      arg1->error = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->error,arg2);
-    } else {
-      arg1->error = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_error_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->error);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_extent_set(void * jarg1, void * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (rectObj *)jarg2; 
-  if (arg1) (arg1)->extent = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_webObj_extent_get(void * jarg1) {
-  void * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->extent);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_minscaledenom_set(void * jarg1, double jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_webObj_minscaledenom_get(void * jarg1) {
-  double jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  double result;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (double) ((arg1)->minscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_maxscaledenom_set(void * jarg1, double jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_webObj_maxscaledenom_get(void * jarg1) {
-  double jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  double result;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (double) ((arg1)->maxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_mintemplate_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->mintemplate) free((char*)arg1->mintemplate);
-    if (arg2) {
-      arg1->mintemplate = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mintemplate,arg2);
-    } else {
-      arg1->mintemplate = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_mintemplate_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->mintemplate);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_maxtemplate_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->maxtemplate) free((char*)arg1->maxtemplate);
-    if (arg2) {
-      arg1->maxtemplate = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->maxtemplate,arg2);
-    } else {
-      arg1->maxtemplate = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_maxtemplate_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->maxtemplate);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_queryformat_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->queryformat) free((char*)arg1->queryformat);
-    if (arg2) {
-      arg1->queryformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->queryformat,arg2);
-    } else {
-      arg1->queryformat = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_queryformat_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->queryformat);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_legendformat_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->legendformat) free((char*)arg1->legendformat);
-    if (arg2) {
-      arg1->legendformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->legendformat,arg2);
-    } else {
-      arg1->legendformat = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_legendformat_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->legendformat);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_webObj_browseformat_set(void * jarg1, char * jarg2) {
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->browseformat) free((char*)arg1->browseformat);
-    if (arg2) {
-      arg1->browseformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->browseformat,arg2);
-    } else {
-      arg1->browseformat = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_browseformat_get(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (char *) ((arg1)->browseformat);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_webObj_metadata_get(void * jarg1) {
-  void * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->metadata);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_webObj_validation_get(void * jarg1) {
-  void * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->validation);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_webObj() {
-  void * jresult ;
-  webObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (webObj *)new_webObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_webObj(void * jarg1) {
-  webObj *arg1 = (webObj *) 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_webObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_webObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (webObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)webObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_webObj_convertToString(void * jarg1) {
-  char * jresult ;
-  webObj *arg1 = (webObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (webObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)webObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_autoangle_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->autoangle = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_autoangle_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->autoangle);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_color_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_color_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_backgroundcolor_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_backgroundcolor_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_opacity_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->opacity = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_opacity_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->opacity);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_mincolor_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->mincolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_mincolor_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->mincolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_maxcolor_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->maxcolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_maxcolor_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->maxcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_minvalue_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minvalue = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_minvalue_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->minvalue);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_maxvalue_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxvalue = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_maxvalue_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->maxvalue);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_rangeitem_set(void * jarg1, char * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->rangeitem) free((char*)arg1->rangeitem);
-    if (arg2) {
-      arg1->rangeitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->rangeitem,arg2);
-    } else {
-      arg1->rangeitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_styleObj_rangeitem_get(void * jarg1) {
-  char * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (char *) ((arg1)->rangeitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_rangeitemindex_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->rangeitemindex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_rangeitemindex_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->rangeitemindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_symbol_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->symbol = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_symbol_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->symbol);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_symbolname_set(void * jarg1, char * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->symbolname) free((char*)arg1->symbolname);
-    if (arg2) {
-      arg1->symbolname = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->symbolname,arg2);
-    } else {
-      arg1->symbolname = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_styleObj_symbolname_get(void * jarg1) {
-  char * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (char *) ((arg1)->symbolname);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_size_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->size = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_size_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->size);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_minsize_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_minsize_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->minsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_maxsize_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_maxsize_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->maxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_patternlength_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->patternlength = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_patternlength_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->patternlength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_pattern_set(void * jarg1, void * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double *arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double *)jarg2; 
-  {
-    size_t ii;
-    double *b = (double *) arg1->pattern;
-    for (ii = 0; ii < (size_t)MS_MAXPATTERNLENGTH; ii++) b[ii] = *((double *) arg2 + ii);
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_pattern_get(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double *)(double *) ((arg1)->pattern);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_gap_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->gap = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_gap_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->gap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_initialgap_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->initialgap = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_initialgap_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->initialgap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_position_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->position = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_position_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->position);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_linecap_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->linecap = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_linecap_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->linecap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_linejoin_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->linejoin = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_linejoin_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->linejoin);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_linejoinmaxsize_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->linejoinmaxsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_linejoinmaxsize_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->linejoinmaxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_width_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_width_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_outlinewidth_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->outlinewidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_outlinewidth_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->outlinewidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_minwidth_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minwidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_minwidth_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->minwidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_maxwidth_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxwidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_maxwidth_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->maxwidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_offsetx_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->offsetx = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_offsetx_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->offsetx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_offsety_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->offsety = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_offsety_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->offsety);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_polaroffsetpixel_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->polaroffsetpixel = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_polaroffsetpixel_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->polaroffsetpixel);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_polaroffsetangle_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->polaroffsetangle = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_polaroffsetangle_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->polaroffsetangle);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_angle_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->angle = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_angle_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->angle);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_antialias_set(void * jarg1, int jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->antialias = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_antialias_get(void * jarg1) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (int) ((arg1)->antialias);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_minscaledenom_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_minscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->minscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_maxscaledenom_set(void * jarg1, double jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_styleObj_maxscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  result = (double) ((arg1)->maxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_styleObj(void * jarg1) {
-  void * jresult ;
-  classObj *arg1 = (classObj *) NULL ;
-  struct styleObj *result = 0 ;
-  
-  arg1 = (classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (struct styleObj *)new_styleObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_styleObj(void * jarg1) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_styleObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)styleObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_styleObj_convertToString(void * jarg1) {
-  char * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)styleObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_styleObj_clone(void * jarg1) {
-  void * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (styleObj *)styleObj_clone(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_setSymbolByName(void * jarg1, void * jarg2, char * jarg3) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)styleObj_setSymbolByName(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_removeBinding(void * jarg1, int jarg2) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)styleObj_removeBinding(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_styleObj_setBinding(void * jarg1, int jarg2, char * jarg3) {
-  int jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)styleObj_setBinding(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_styleObj_getBinding(void * jarg1, int jarg2) {
-  char * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)styleObj_getBinding(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_styleObj_getGeomTransform(void * jarg1) {
-  char * jresult ;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)styleObj_getGeomTransform(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_styleObj_setGeomTransform(void * jarg1, char * jarg2) {
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct styleObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    styleObj_setGeomTransform(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelLeaderObj_maxdistance_set(void * jarg1, int jarg2) {
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->maxdistance = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelLeaderObj_maxdistance_get(void * jarg1) {
-  int jresult ;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int result;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  result = (int) ((arg1)->maxdistance);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelLeaderObj_gridstep_set(void * jarg1, int jarg2) {
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->gridstep = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelLeaderObj_gridstep_get(void * jarg1) {
-  int jresult ;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int result;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  result = (int) ((arg1)->gridstep);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelLeaderObj_numstyles_get(void * jarg1) {
-  int jresult ;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int result;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  result = (int) ((arg1)->numstyles);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelLeaderObj() {
-  void * jresult ;
-  labelLeaderObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (labelLeaderObj *)calloc(1, sizeof(labelLeaderObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelLeaderObj(void * jarg1) {
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  
-  arg1 = (labelLeaderObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_font_set(void * jarg1, char * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->font) free((char*)arg1->font);
-    if (arg2) {
-      arg1->font = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->font,arg2);
-    } else {
-      arg1->font = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_font_get(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (char *) ((arg1)->font);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_type_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  enum MS_FONT_TYPE arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (enum MS_FONT_TYPE)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_type_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  enum MS_FONT_TYPE result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (enum MS_FONT_TYPE) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_color_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_color_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_outlinewidth_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->outlinewidth = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_outlinewidth_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->outlinewidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_shadowcolor_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->shadowcolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_shadowcolor_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->shadowcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_shadowsizex_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->shadowsizex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_shadowsizex_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->shadowsizex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_shadowsizey_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->shadowsizey = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_shadowsizey_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->shadowsizey);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_size_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->size = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_size_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->size);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_minsize_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_minsize_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->minsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_maxsize_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_maxsize_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->maxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_position_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->position = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_position_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->position);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_offsetx_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->offsetx = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_offsetx_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->offsetx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_offsety_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->offsety = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_offsety_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->offsety);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_angle_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->angle = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_angle_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->angle);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_anglemode_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->anglemode = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_anglemode_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->anglemode);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_buffer_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->buffer = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_buffer_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->buffer);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_antialias_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->antialias = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_antialias_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->antialias);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_align_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->align = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_align_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->align);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_wrap_set(void * jarg1, char jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char)jarg2; 
-  if (arg1) (arg1)->wrap = arg2;
-}
-
-
-SWIGEXPORT char SWIGSTDCALL CSharp_labelObj_wrap_get(void * jarg1) {
-  char jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (char) ((arg1)->wrap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_maxlength_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->maxlength = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_maxlength_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->maxlength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_minlength_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->minlength = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_minlength_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->minlength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_space_size_10_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->space_size_10 = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_space_size_10_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->space_size_10);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_minfeaturesize_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->minfeaturesize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_minfeaturesize_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->minfeaturesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_autominfeaturesize_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->autominfeaturesize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_autominfeaturesize_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->autominfeaturesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_minscaledenom_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_minscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->minscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_maxscaledenom_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_maxscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->maxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_mindistance_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->mindistance = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_mindistance_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->mindistance);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_repeatdistance_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->repeatdistance = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_repeatdistance_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->repeatdistance);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_maxoverlapangle_set(void * jarg1, double jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxoverlapangle = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelObj_maxoverlapangle_get(void * jarg1) {
-  double jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (double) ((arg1)->maxoverlapangle);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_partials_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->partials = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_partials_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->partials);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_force_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->force = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_force_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->force);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_encoding_set(void * jarg1, char * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->encoding) free((char*)arg1->encoding);
-    if (arg2) {
-      arg1->encoding = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->encoding,arg2);
-    } else {
-      arg1->encoding = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_encoding_get(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (char *) ((arg1)->encoding);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_priority_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->priority = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_priority_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->priority);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_status_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_status_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_numstyles_set(void * jarg1, int jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->numstyles = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_numstyles_get(void * jarg1) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (int) ((arg1)->numstyles);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_annotext_set(void * jarg1, char * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->annotext) free((char*)arg1->annotext);
-    if (arg2) {
-      arg1->annotext = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->annotext,arg2);
-    } else {
-      arg1->annotext = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_annotext_get(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (char *) ((arg1)->annotext);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_annopoint_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  if (arg1) (arg1)->annopoint = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_annopoint_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (pointObj *)& ((arg1)->annopoint);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_annopoly_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  if (arg1) (arg1)->annopoly = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_annopoly_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (shapeObj *) ((arg1)->annopoly);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelObj_leader_set(void * jarg1, void * jarg2) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (labelLeaderObj *)jarg2; 
-  if (arg1) (arg1)->leader = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_leader_get(void * jarg1) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  labelLeaderObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  result = (labelLeaderObj *)& ((arg1)->leader);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelObj() {
-  void * jresult ;
-  struct labelObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (struct labelObj *)new_labelObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelObj(void * jarg1) {
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_labelObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_convertToString(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)labelObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_removeBinding(void * jarg1, int jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_removeBinding(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_getBinding(void * jarg1, int jarg2) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)labelObj_getBinding(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_setBinding(void * jarg1, int jarg2, char * jarg3) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_setBinding(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_setExpression(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_setExpression(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_getExpressionString(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)labelObj_getExpressionString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_setText(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_setText(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_labelObj_getTextString(void * jarg1) {
-  char * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)labelObj_getTextString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_getStyle(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (styleObj *)labelObj_getStyle(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_insertStyle(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  int arg3 = (int) -1 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (styleObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_insertStyle(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelObj_removeStyle(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (styleObj *)labelObj_removeStyle(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_moveStyleUp(void * jarg1, int jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_moveStyleUp(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelObj_moveStyleDown(void * jarg1, int jarg2) {
-  int jresult ;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct labelObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)labelObj_moveStyleDown(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_status_set(void * jarg1, int jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_status_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_numstyles_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->numstyles);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_numlabels_set(void * jarg1, int jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->numlabels = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_numlabels_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->numlabels);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_name_set(void * jarg1, char * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_name_get(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_title_set(void * jarg1, char * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->title) free((char*)arg1->title);
-    if (arg2) {
-      arg1->title = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->title,arg2);
-    } else {
-      arg1->title = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_title_get(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (char *) ((arg1)->title);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_template_set(void * jarg1, char * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_template_get(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (char *) ((arg1)->template);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_type_set(void * jarg1, int jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_type_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_metadata_get(void * jarg1) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->metadata);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_validation_get(void * jarg1) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->validation);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_minscaledenom_set(void * jarg1, double jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_classObj_minscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (double) ((arg1)->minscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_maxscaledenom_set(void * jarg1, double jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_classObj_maxscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (double) ((arg1)->maxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_minfeaturesize_set(void * jarg1, int jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->minfeaturesize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_minfeaturesize_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->minfeaturesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_layer_get(void * jarg1) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  struct layerObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (struct layerObj *) ((arg1)->layer);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_debug_set(void * jarg1, int jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->debug = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_debug_get(void * jarg1) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (int) ((arg1)->debug);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_keyimage_set(void * jarg1, char * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->keyimage) free((char*)arg1->keyimage);
-    if (arg2) {
-      arg1->keyimage = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->keyimage,arg2);
-    } else {
-      arg1->keyimage = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_keyimage_get(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (char *) ((arg1)->keyimage);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_group_set(void * jarg1, char * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->group) free((char*)arg1->group);
-    if (arg2) {
-      arg1->group = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->group,arg2);
-    } else {
-      arg1->group = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_group_get(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (char *) ((arg1)->group);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_classObj_leader_set(void * jarg1, void * jarg2) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (labelLeaderObj *)jarg2; 
-  if (arg1) (arg1)->leader = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_leader_get(void * jarg1) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  labelLeaderObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  result = (labelLeaderObj *)& ((arg1)->leader);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_classObj(void * jarg1) {
-  void * jresult ;
-  layerObj *arg1 = (layerObj *) NULL ;
-  struct classObj *result = 0 ;
-  
-  arg1 = (layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (struct classObj *)new_classObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_classObj(void * jarg1) {
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_classObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_convertToString(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_clone(void * jarg1) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  classObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (classObj *)classObj_clone(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_setExpression(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_setExpression(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_getExpressionString(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_getExpressionString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_setText(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_setText(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_getTextString(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_getTextString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_getMetaData(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_getMetaData(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_setMetaData(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_setMetaData(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_getFirstMetaDataKey(void * jarg1) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_getFirstMetaDataKey(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_classObj_getNextMetaDataKey(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)classObj_getNextMetaDataKey(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_drawLegendIcon(void * jarg1, void * jarg2, void * jarg3, int jarg4, int jarg5, void * jarg6, int jarg7, int jarg8) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  imageObj *arg6 = (imageObj *) 0 ;
-  int arg7 ;
-  int arg8 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (layerObj *)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (imageObj *)jarg6; 
-  arg7 = (int)jarg7; 
-  arg8 = (int)jarg8; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_drawLegendIcon(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_createLegendIcon(void * jarg1, void * jarg2, void * jarg3, int jarg4, int jarg5) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (layerObj *)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)classObj_createLegendIcon(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_getLabel(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  labelObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (labelObj *)classObj_getLabel(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_addLabel(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  labelObj *arg2 = (labelObj *) 0 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (labelObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_addLabel(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_removeLabel(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  labelObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (labelObj *)classObj_removeLabel(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_getStyle(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (styleObj *)classObj_getStyle(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_insertStyle(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  int arg3 = (int) -1 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (styleObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_insertStyle(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_classObj_removeStyle(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (styleObj *)classObj_removeStyle(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_moveStyleUp(void * jarg1, int jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_moveStyleUp(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_classObj_moveStyleDown(void * jarg1, int jarg2) {
-  int jresult ;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct classObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)classObj_moveStyleDown(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelCacheMemberObj_featuresize_get(void * jarg1) {
-  double jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  double result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (double) ((arg1)->featuresize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_styles_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (styleObj *) ((arg1)->styles);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_numstyles_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->numstyles);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_labels_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  labelObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (labelObj *) ((arg1)->labels);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_numlabels_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->numlabels);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_layerindex_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->layerindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_classindex_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->classindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_shapetype_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->shapetype);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_point_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (pointObj *)& ((arg1)->point);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_poly_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (shapeObj *) ((arg1)->poly);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_status_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheMemberObj_markerid_get(void * jarg1) {
-  int jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->markerid);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_leaderline_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  lineObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (lineObj *) ((arg1)->leaderline);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheMemberObj_leaderbbox_get(void * jarg1) {
-  void * jresult ;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  result = (rectObj *) ((arg1)->leaderbbox);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelCacheMemberObj() {
-  void * jresult ;
-  labelCacheMemberObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (labelCacheMemberObj *)calloc(1, sizeof(labelCacheMemberObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelCacheMemberObj(void * jarg1) {
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  
-  arg1 = (labelCacheMemberObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_markerCacheMemberObj_id_get(void * jarg1) {
-  int jresult ;
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  int result;
-  
-  arg1 = (markerCacheMemberObj *)jarg1; 
-  result = (int) ((arg1)->id);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_markerCacheMemberObj_poly_get(void * jarg1) {
-  void * jresult ;
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (markerCacheMemberObj *)jarg1; 
-  result = (shapeObj *) ((arg1)->poly);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_markerCacheMemberObj() {
-  void * jresult ;
-  markerCacheMemberObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (markerCacheMemberObj *)calloc(1, sizeof(markerCacheMemberObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_markerCacheMemberObj(void * jarg1) {
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  
-  arg1 = (markerCacheMemberObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheSlotObj_labels_get(void * jarg1) {
-  void * jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (labelCacheMemberObj *) ((arg1)->labels);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheSlotObj_numlabels_get(void * jarg1) {
-  int jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (int) ((arg1)->numlabels);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheSlotObj_cachesize_get(void * jarg1) {
-  int jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (int) ((arg1)->cachesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheSlotObj_markers_get(void * jarg1) {
-  void * jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  markerCacheMemberObj *result = 0 ;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (markerCacheMemberObj *) ((arg1)->markers);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheSlotObj_nummarkers_get(void * jarg1) {
-  int jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (int) ((arg1)->nummarkers);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheSlotObj_markercachesize_get(void * jarg1) {
-  int jresult ;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  result = (int) ((arg1)->markercachesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelCacheSlotObj() {
-  void * jresult ;
-  labelCacheSlotObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (labelCacheSlotObj *)calloc(1, sizeof(labelCacheSlotObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelCacheSlotObj(void * jarg1) {
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  
-  arg1 = (labelCacheSlotObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelCacheObj_slots_get(void * jarg1) {
-  void * jresult ;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  labelCacheSlotObj *result = 0 ;
-  
-  arg1 = (labelCacheObj *)jarg1; 
-  result = (labelCacheSlotObj *)(labelCacheSlotObj *) ((arg1)->slots);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheObj_numlabels_get(void * jarg1) {
-  int jresult ;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheObj *)jarg1; 
-  result = (int) ((arg1)->numlabels);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelCacheObj_gutter_get(void * jarg1) {
-  int jresult ;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (labelCacheObj *)jarg1; 
-  result = (int) ((arg1)->gutter);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelCacheObj_freeCache(void * jarg1) {
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  
-  arg1 = (labelCacheObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    labelCacheObj_freeCache(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelCacheObj() {
-  void * jresult ;
-  labelCacheObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (labelCacheObj *)calloc(1, sizeof(labelCacheObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelCacheObj(void * jarg1) {
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  
-  arg1 = (labelCacheObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT long SWIGSTDCALL CSharp_resultObj_shapeindex_get(void * jarg1) {
-  long jresult ;
-  resultObj *arg1 = (resultObj *) 0 ;
-  long result;
-  
-  arg1 = (resultObj *)jarg1; 
-  result = (long) ((arg1)->shapeindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_resultObj_tileindex_get(void * jarg1) {
-  int jresult ;
-  resultObj *arg1 = (resultObj *) 0 ;
-  int result;
-  
-  arg1 = (resultObj *)jarg1; 
-  result = (int) ((arg1)->tileindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_resultObj_resultindex_get(void * jarg1) {
-  int jresult ;
-  resultObj *arg1 = (resultObj *) 0 ;
-  int result;
-  
-  arg1 = (resultObj *)jarg1; 
-  result = (int) ((arg1)->resultindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_resultObj_classindex_get(void * jarg1) {
-  int jresult ;
-  resultObj *arg1 = (resultObj *) 0 ;
-  int result;
-  
-  arg1 = (resultObj *)jarg1; 
-  result = (int) ((arg1)->classindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_resultObj(long jarg1) {
-  void * jresult ;
-  long arg1 ;
-  resultObj *result = 0 ;
-  
-  arg1 = (long)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (resultObj *)new_resultObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_resultObj(void * jarg1) {
-  resultObj *arg1 = (resultObj *) 0 ;
-  
-  arg1 = (resultObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_resultObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_resultCacheObj_numresults_get(void * jarg1) {
-  int jresult ;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  result = (int) ((arg1)->numresults);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_resultCacheObj_bounds_get(void * jarg1) {
-  void * jresult ;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->bounds);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_resultCacheObj_usegetshape_set(void * jarg1, int jarg2) {
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->usegetshape = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_resultCacheObj_usegetshape_get(void * jarg1) {
-  int jresult ;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  result = (int) ((arg1)->usegetshape);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_resultCacheObj_getResult(void * jarg1, int jarg2) {
-  void * jresult ;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int arg2 ;
-  resultObj *result = 0 ;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (resultObj *)resultCacheObj_getResult(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_resultCacheObj() {
-  void * jresult ;
-  resultCacheObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (resultCacheObj *)calloc(1, sizeof(resultCacheObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_resultCacheObj(void * jarg1) {
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  
-  arg1 = (resultCacheObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolSetObj_filename_set(void * jarg1, char * jarg2) {
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->filename) free((char*)arg1->filename);
-    if (arg2) {
-      arg1->filename = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->filename,arg2);
-    } else {
-      arg1->filename = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_symbolSetObj_filename_get(void * jarg1) {
-  char * jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  result = (char *) ((arg1)->filename);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolSetObj_imagecachesize_set(void * jarg1, int jarg2) {
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->imagecachesize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_imagecachesize_get(void * jarg1) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  result = (int) ((arg1)->imagecachesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_numsymbols_get(void * jarg1) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  result = (int) ((arg1)->numsymbols);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_maxsymbols_get(void * jarg1) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  result = (int) ((arg1)->maxsymbols);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_symbolSetObj(char * jarg1) {
-  void * jresult ;
-  char *arg1 = (char *) NULL ;
-  symbolSetObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (symbolSetObj *)new_symbolSetObj((char const *)arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_symbolSetObj(void * jarg1) {
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_symbolSetObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolSetObj_getSymbol(void * jarg1, int jarg2) {
-  void * jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  symbolObj *result = 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (symbolObj *)symbolSetObj_getSymbol(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolSetObj_getSymbolByName(void * jarg1, char * jarg2) {
-  void * jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  symbolObj *result = 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (symbolObj *)symbolSetObj_getSymbolByName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_index(void * jarg1, char * jarg2) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolSetObj_index(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_appendSymbol(void * jarg1, void * jarg2) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  symbolObj *arg2 = (symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (symbolObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolSetObj_appendSymbol(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolSetObj_removeSymbol(void * jarg1, int jarg2) {
-  void * jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  symbolObj *result = 0 ;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (symbolObj *)symbolSetObj_removeSymbol(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolSetObj_save(void * jarg1, char * jarg2) {
-  int jresult ;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (symbolSetObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolSetObj_save(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_extent_set(void * jarg1, void * jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (rectObj *)jarg2; 
-  if (arg1) (arg1)->extent = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_referenceMapObj_extent_get(void * jarg1) {
-  void * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->extent);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_height_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_height_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_width_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_width_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_color_set(void * jarg1, void * jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_referenceMapObj_color_get(void * jarg1) {
-  void * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_referenceMapObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_image_set(void * jarg1, char * jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->image) free((char*)arg1->image);
-    if (arg2) {
-      arg1->image = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->image,arg2);
-    } else {
-      arg1->image = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_referenceMapObj_image_get(void * jarg1) {
-  char * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (char *) ((arg1)->image);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_status_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_status_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_marker_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->marker = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_marker_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->marker);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_markername_set(void * jarg1, char * jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->markername) free((char*)arg1->markername);
-    if (arg2) {
-      arg1->markername = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->markername,arg2);
-    } else {
-      arg1->markername = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_referenceMapObj_markername_get(void * jarg1) {
-  char * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (char *) ((arg1)->markername);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_markersize_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->markersize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_markersize_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->markersize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_minboxsize_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->minboxsize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_minboxsize_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->minboxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_referenceMapObj_maxboxsize_set(void * jarg1, int jarg2) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->maxboxsize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_maxboxsize_get(void * jarg1) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (int) ((arg1)->maxboxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_referenceMapObj_map_get(void * jarg1) {
-  void * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  struct mapObj *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  result = (struct mapObj *) ((arg1)->map);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_referenceMapObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)referenceMapObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_referenceMapObj_convertToString(void * jarg1) {
-  char * jresult ;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)referenceMapObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_referenceMapObj() {
-  void * jresult ;
-  referenceMapObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (referenceMapObj *)calloc(1, sizeof(referenceMapObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_referenceMapObj(void * jarg1) {
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  
-  arg1 = (referenceMapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_imagecolor_set(void * jarg1, void * jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->imagecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scalebarObj_imagecolor_get(void * jarg1) {
-  void * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->imagecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_height_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_height_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_width_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_width_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_style_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->style = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_style_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->style);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_intervals_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->intervals = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_intervals_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->intervals);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_label_set(void * jarg1, void * jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  labelObj arg2 ;
-  labelObj *argp2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  argp2 = (labelObj *)jarg2; 
-  if (!argp2) {
-    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null labelObj", 0);
-    return ;
-  }
-  arg2 = *argp2; 
-  if (arg1) (arg1)->label = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scalebarObj_label_get(void * jarg1) {
-  void * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  labelObj result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result =  ((arg1)->label);
-  {
-    labelObj * resultptr = (labelObj *) malloc(sizeof(labelObj));
-    memmove(resultptr, &result, sizeof(labelObj));
-    jresult = resultptr;
-  }
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_color_set(void * jarg1, void * jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scalebarObj_color_get(void * jarg1) {
-  void * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_backgroundcolor_set(void * jarg1, void * jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scalebarObj_backgroundcolor_get(void * jarg1) {
-  void * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scalebarObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_units_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->units = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_units_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->units);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_status_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_status_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_position_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->position = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_position_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->position);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_postlabelcache_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->postlabelcache = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_postlabelcache_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->postlabelcache);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scalebarObj_align_set(void * jarg1, int jarg2) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->align = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_align_get(void * jarg1) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  result = (int) ((arg1)->align);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scalebarObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)scalebarObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_scalebarObj_convertToString(void * jarg1) {
-  char * jresult ;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)scalebarObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_scalebarObj() {
-  void * jresult ;
-  scalebarObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (scalebarObj *)calloc(1, sizeof(scalebarObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_scalebarObj(void * jarg1) {
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  
-  arg1 = (scalebarObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_imagecolor_set(void * jarg1, void * jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->imagecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_legendObj_imagecolor_get(void * jarg1) {
-  void * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->imagecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_legendObj_label_get(void * jarg1) {
-  void * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  labelObj result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result =  ((arg1)->label);
-  {
-    labelObj * resultptr = (labelObj *) malloc(sizeof(labelObj));
-    memmove(resultptr, &result, sizeof(labelObj));
-    jresult = resultptr;
-  }
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_keysizex_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->keysizex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_keysizex_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->keysizex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_keysizey_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->keysizey = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_keysizey_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->keysizey);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_keyspacingx_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->keyspacingx = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_keyspacingx_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->keyspacingx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_keyspacingy_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->keyspacingy = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_keyspacingy_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->keyspacingy);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_legendObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_status_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_status_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_height_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_height_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_width_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_width_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_position_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->position = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_position_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->position);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_postlabelcache_set(void * jarg1, int jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->postlabelcache = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_postlabelcache_get(void * jarg1) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (int) ((arg1)->postlabelcache);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_legendObj_template_set(void * jarg1, char * jarg2) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_legendObj_template_get(void * jarg1) {
-  char * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (char *) ((arg1)->template);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_legendObj_map_get(void * jarg1) {
-  void * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  struct mapObj *result = 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  result = (struct mapObj *) ((arg1)->map);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_legendObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (legendObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)legendObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_legendObj_convertToString(void * jarg1) {
-  char * jresult ;
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)legendObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_legendObj() {
-  void * jresult ;
-  legendObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (legendObj *)calloc(1, sizeof(legendObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_legendObj(void * jarg1) {
-  legendObj *arg1 = (legendObj *) 0 ;
-  
-  arg1 = (legendObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_imageObj_width_get(void * jarg1) {
-  int jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_imageObj_height_get(void * jarg1) {
-  int jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_imageObj_resolution_get(void * jarg1) {
-  double jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  double result;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (double) ((arg1)->resolution);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_imageObj_resolutionfactor_get(void * jarg1) {
-  double jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  double result;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (double) ((arg1)->resolutionfactor);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_imageObj_imagepath_get(void * jarg1) {
-  char * jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (char *) ((arg1)->imagepath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_imageObj_imageurl_get(void * jarg1) {
-  char * jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (char *) ((arg1)->imageurl);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_imageObj_format_get(void * jarg1) {
-  void * jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  outputFormatObj *result = 0 ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  result = (outputFormatObj *) ((arg1)->format);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_imageObj_getBytes(void * jarg1, SWIG_CSharpByteArrayHelperCallback jarg2) {
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  SWIG_CSharpByteArrayHelperCallback arg2 ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  arg2 = (SWIG_CSharpByteArrayHelperCallback)jarg2; 
-  {
-    errorObj *ms_error;
-    imageObj_getBytes(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_imageObj(int jarg1, int jarg2, void * jarg3, char * jarg4, double jarg5, double jarg6) {
-  void * jresult ;
-  int arg1 ;
-  int arg2 ;
-  outputFormatObj *arg3 = (outputFormatObj *) NULL ;
-  char *arg4 = (char *) NULL ;
-  double arg5 = (double) MS_DEFAULT_RESOLUTION ;
-  double arg6 = (double) MS_DEFAULT_RESOLUTION ;
-  struct imageObj *result = 0 ;
-  
-  arg1 = (int)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (outputFormatObj *)jarg3; 
-  arg4 = (char *)jarg4; 
-  arg5 = (double)jarg5; 
-  arg6 = (double)jarg6; 
-  {
-    errorObj *ms_error;
-    result = (struct imageObj *)new_imageObj(arg1,arg2,arg3,(char const *)arg4,arg5,arg6);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_imageObj(void * jarg1) {
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_imageObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_imageObj_save(void * jarg1, char * jarg2, void * jarg3) {
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  mapObj *arg3 = (mapObj *) NULL ;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (mapObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    imageObj_save(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_imageObj_getSize(void * jarg1) {
-  int jresult ;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct imageObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)imageObj_getSize(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenEntryObj_minscale_set(void * jarg1, double jarg2) {
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscale = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_scaleTokenEntryObj_minscale_get(void * jarg1) {
-  double jresult ;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double result;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  result = (double) ((arg1)->minscale);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenEntryObj_maxscale_set(void * jarg1, double jarg2) {
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscale = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_scaleTokenEntryObj_maxscale_get(void * jarg1) {
-  double jresult ;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double result;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  result = (double) ((arg1)->maxscale);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenEntryObj_value_set(void * jarg1, char * jarg2) {
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->value) free((char*)arg1->value);
-    if (arg2) {
-      arg1->value = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->value,arg2);
-    } else {
-      arg1->value = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_scaleTokenEntryObj_value_get(void * jarg1) {
-  char * jresult ;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  result = (char *) ((arg1)->value);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_scaleTokenEntryObj() {
-  void * jresult ;
-  scaleTokenEntryObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (scaleTokenEntryObj *)calloc(1, sizeof(scaleTokenEntryObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_scaleTokenEntryObj(void * jarg1) {
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  
-  arg1 = (scaleTokenEntryObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenObj_name_set(void * jarg1, char * jarg2) {
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_scaleTokenObj_name_get(void * jarg1) {
-  char * jresult ;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenObj_n_entries_set(void * jarg1, int jarg2) {
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->n_entries = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_scaleTokenObj_n_entries_get(void * jarg1) {
-  int jresult ;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  int result;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  result = (int) ((arg1)->n_entries);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_scaleTokenObj_tokens_set(void * jarg1, void * jarg2) {
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  scaleTokenEntryObj *arg2 = (scaleTokenEntryObj *) 0 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  arg2 = (scaleTokenEntryObj *)jarg2; 
-  if (arg1) (arg1)->tokens = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_scaleTokenObj_tokens_get(void * jarg1) {
-  void * jresult ;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  scaleTokenEntryObj *result = 0 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  result = (scaleTokenEntryObj *) ((arg1)->tokens);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_scaleTokenObj() {
-  void * jresult ;
-  scaleTokenObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (scaleTokenObj *)calloc(1, sizeof(scaleTokenObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_scaleTokenObj(void * jarg1) {
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  
-  arg1 = (scaleTokenObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_classitem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->classitem) free((char*)arg1->classitem);
-    if (arg2) {
-      arg1->classitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->classitem,arg2);
-    } else {
-      arg1->classitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_classitem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->classitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_numclasses_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->numclasses);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_maxclasses_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->maxclasses);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_index_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->index);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_map_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  struct mapObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (struct mapObj *) ((arg1)->map);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_header_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->header) free((char*)arg1->header);
-    if (arg2) {
-      arg1->header = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->header,arg2);
-    } else {
-      arg1->header = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_header_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->header);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_footer_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->footer) free((char*)arg1->footer);
-    if (arg2) {
-      arg1->footer = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->footer,arg2);
-    } else {
-      arg1->footer = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_footer_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->footer);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_template_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_template_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->template);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_name_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_name_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_group_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->group) free((char*)arg1->group);
-    if (arg2) {
-      arg1->group = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->group,arg2);
-    } else {
-      arg1->group = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_group_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->group);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_status_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_status_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_data_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->data) free((char*)arg1->data);
-    if (arg2) {
-      arg1->data = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->data,arg2);
-    } else {
-      arg1->data = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_data_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->data);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_type_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_LAYER_TYPE arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (enum MS_LAYER_TYPE)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_type_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_LAYER_TYPE result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (enum MS_LAYER_TYPE) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_tolerance_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->tolerance = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_tolerance_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->tolerance);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_toleranceunits_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->toleranceunits = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_toleranceunits_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->toleranceunits);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_symbolscaledenom_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->symbolscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_symbolscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->symbolscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_minscaledenom_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_minscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->minscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_maxscaledenom_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_maxscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->maxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_minfeaturesize_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->minfeaturesize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_minfeaturesize_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->minfeaturesize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_labelminscaledenom_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->labelminscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_labelminscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->labelminscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_labelmaxscaledenom_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->labelmaxscaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_labelmaxscaledenom_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->labelmaxscaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_mingeowidth_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->mingeowidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_mingeowidth_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->mingeowidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_maxgeowidth_set(void * jarg1, double jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxgeowidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_layerObj_maxgeowidth_get(void * jarg1) {
-  double jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (double) ((arg1)->maxgeowidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_sizeunits_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->sizeunits = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_sizeunits_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->sizeunits);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_maxfeatures_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->maxfeatures = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_maxfeatures_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->maxfeatures);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_startindex_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->startindex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_startindex_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->startindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_offsite_set(void * jarg1, void * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->offsite = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_offsite_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->offsite);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_transform_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->transform = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_transform_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->transform);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_labelcache_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->labelcache = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_labelcache_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->labelcache);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_postlabelcache_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->postlabelcache = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_postlabelcache_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->postlabelcache);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_labelitem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->labelitem) free((char*)arg1->labelitem);
-    if (arg2) {
-      arg1->labelitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->labelitem,arg2);
-    } else {
-      arg1->labelitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_labelitem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->labelitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_tileitem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->tileitem) free((char*)arg1->tileitem);
-    if (arg2) {
-      arg1->tileitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tileitem,arg2);
-    } else {
-      arg1->tileitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_tileitem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->tileitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_tileindex_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->tileindex) free((char*)arg1->tileindex);
-    if (arg2) {
-      arg1->tileindex = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tileindex,arg2);
-    } else {
-      arg1->tileindex = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_tileindex_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->tileindex);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_tilesrs_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->tilesrs) free((char*)arg1->tilesrs);
-    if (arg2) {
-      arg1->tilesrs = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tilesrs,arg2);
-    } else {
-      arg1->tilesrs = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_tilesrs_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->tilesrs);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_units_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->units = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_units_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->units);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_connection_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->connection) free((char*)arg1->connection);
-    if (arg2) {
-      arg1->connection = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->connection,arg2);
-    } else {
-      arg1->connection = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_connection_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->connection);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_plugin_library_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->plugin_library) free((char*)arg1->plugin_library);
-    if (arg2) {
-      arg1->plugin_library = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->plugin_library,arg2);
-    } else {
-      arg1->plugin_library = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_plugin_library_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->plugin_library);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_plugin_library_original_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->plugin_library_original) free((char*)arg1->plugin_library_original);
-    if (arg2) {
-      arg1->plugin_library_original = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->plugin_library_original,arg2);
-    } else {
-      arg1->plugin_library_original = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_plugin_library_original_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->plugin_library_original);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_connectiontype_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_CONNECTION_TYPE arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (enum MS_CONNECTION_TYPE)jarg2; 
-  if (arg1) (arg1)->connectiontype = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_connectiontype_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_CONNECTION_TYPE result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (enum MS_CONNECTION_TYPE) ((arg1)->connectiontype);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_numitems_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->numitems);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_bandsitem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->bandsitem) free((char*)arg1->bandsitem);
-    if (arg2) {
-      arg1->bandsitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->bandsitem,arg2);
-    } else {
-      arg1->bandsitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_bandsitem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->bandsitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_filteritem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->filteritem) free((char*)arg1->filteritem);
-    if (arg2) {
-      arg1->filteritem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->filteritem,arg2);
-    } else {
-      arg1->filteritem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_filteritem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->filteritem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_styleitem_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->styleitem) free((char*)arg1->styleitem);
-    if (arg2) {
-      arg1->styleitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->styleitem,arg2);
-    } else {
-      arg1->styleitem = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_styleitem_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->styleitem);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_requires_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->requires) free((char*)arg1->requires);
-    if (arg2) {
-      arg1->requires = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->requires,arg2);
-    } else {
-      arg1->requires = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_requires_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->requires);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_labelrequires_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->labelrequires) free((char*)arg1->labelrequires);
-    if (arg2) {
-      arg1->labelrequires = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->labelrequires,arg2);
-    } else {
-      arg1->labelrequires = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_labelrequires_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->labelrequires);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_metadata_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->metadata);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_validation_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->validation);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_bindvals_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->bindvals);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_cluster_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  clusterObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (clusterObj *)& ((arg1)->cluster);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_opacity_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->opacity = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_opacity_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->opacity);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_dump_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->dump = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_dump_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->dump);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_debug_set(void * jarg1, int jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->debug = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_debug_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->debug);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_extent_get(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->extent);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_numprocessing_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->numprocessing);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_numjoins_get(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (int) ((arg1)->numjoins);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_classgroup_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->classgroup) free((char*)arg1->classgroup);
-    if (arg2) {
-      arg1->classgroup = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->classgroup,arg2);
-    } else {
-      arg1->classgroup = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_classgroup_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->classgroup);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_mask_set(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->mask) free((char*)arg1->mask);
-    if (arg2) {
-      arg1->mask = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mask,arg2);
-    } else {
-      arg1->mask = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_mask_get(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  result = (char *) ((arg1)->mask);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_layerObj(void * jarg1) {
-  void * jresult ;
-  mapObj *arg1 = (mapObj *) NULL ;
-  struct layerObj *result = 0 ;
-  
-  arg1 = (mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (struct layerObj *)new_layerObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_layerObj(void * jarg1) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_layerObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_clone(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  layerObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (layerObj *)layerObj_clone(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_updateFromString(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_updateFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_convertToString(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_insertClass(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  classObj *arg2 = (classObj *) 0 ;
-  int arg3 = (int) -1 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (classObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_insertClass(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_removeClass(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  classObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (classObj *)layerObj_removeClass(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_open(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_open(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_whichShapes(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  rectObj arg2 ;
-  rectObj *argp2 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  argp2 = (rectObj *)jarg2; 
-  if (!argp2) {
-    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null rectObj", 0);
-    return 0;
-  }
-  arg2 = *argp2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_whichShapes(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_nextShape(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)layerObj_nextShape(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_close(void * jarg1) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    layerObj_close(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getShape(void * jarg1, void * jarg2) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  resultObj *arg2 = (resultObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (resultObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)layerObj_getShape(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_getNumResults(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_getNumResults(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getResultsBounds(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (rectObj *)layerObj_getResultsBounds(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getResult(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  resultObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (resultObj *)layerObj_getResult(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getClass(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  classObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (classObj *)layerObj_getClass(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getItem(void * jarg1, int jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getItem(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setItems(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  int arg3 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char **)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setItems(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_draw(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  imageObj *arg3 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (imageObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_draw(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_drawQuery(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  imageObj *arg3 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (imageObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_drawQuery(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByFilter(void * jarg1, void * jarg2, char * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByFilter(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByAttributes(void * jarg1, void * jarg2, char * jarg3, char * jarg4, int jarg5) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int arg5 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (char *)jarg3; 
-  arg4 = (char *)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByAttributes(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByPoint(void * jarg1, void * jarg2, void * jarg3, int jarg4, double jarg5) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  double arg5 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (double)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByPoint(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByRect(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  rectObj arg3 ;
-  rectObj *argp3 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  argp3 = (rectObj *)jarg3; 
-  if (!argp3) {
-    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null rectObj", 0);
-    return 0;
-  }
-  arg3 = *argp3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByRect(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByFeatures(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByFeatures(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByShape(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (shapeObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByShape(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_queryByIndex(void * jarg1, void * jarg2, int jarg3, int jarg4, int jarg5) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  int arg5 = (int) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_queryByIndex(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getResults(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  resultCacheObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (resultCacheObj *)layerObj_getResults(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setFilter(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setFilter(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getFilterString(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getFilterString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setWKTProjection(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setWKTProjection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getProjection(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getProjection(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setProjection(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setProjection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_addFeature(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_addFeature(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_getNumFeatures(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_getNumFeatures(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_layerObj_getExtent(void * jarg1) {
-  void * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (rectObj *)layerObj_getExtent(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setExtent(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 = (double) -1.0 ;
-  double arg3 = (double) -1.0 ;
-  double arg4 = (double) -1.0 ;
-  double arg5 = (double) -1.0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  arg5 = (double)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setExtent(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getMetaData(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getMetaData(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setMetaData(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setMetaData(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_removeMetaData(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_removeMetaData(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getFirstMetaDataKey(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getFirstMetaDataKey(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getNextMetaDataKey(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getNextMetaDataKey(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getWMSFeatureInfoURL(void * jarg1, void * jarg2, int jarg3, int jarg4, int jarg5, char * jarg6) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (char *)jarg6; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getWMSFeatureInfoURL(arg1,arg2,arg3,arg4,arg5,arg6);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_executeWFSGetFeature(void * jarg1, void * jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  layerObj *arg2 = (layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (layerObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_executeWFSGetFeature(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_applySLD(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_applySLD(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_applySLDURL(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_applySLDURL(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_generateSLD(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_generateSLD(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_isVisible(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_isVisible(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_moveClassUp(void * jarg1, int jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_moveClassUp(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_moveClassDown(void * jarg1, int jarg2) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_moveClassDown(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_setProcessingKey(void * jarg1, char * jarg2, char * jarg3) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    layerObj_setProcessingKey(arg1,(char const *)arg2,(char const *)arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_setProcessing(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    layerObj_setProcessing(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_addProcessing(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    layerObj_addProcessing(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getProcessing(void * jarg1, int jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getProcessing(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getProcessingKey(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getProcessingKey(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_clearProcessing(void * jarg1) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_clearProcessing(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_setConnectionType(void * jarg1, int jarg2, char * jarg3) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_setConnectionType(arg1,arg2,(char const *)arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_layerObj_getClassIndex(void * jarg1, void * jarg2, void * jarg3, void * jarg4, int jarg5) {
-  int jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  int *arg4 = (int *) NULL ;
-  int arg5 = (int) 0 ;
-  int result;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (shapeObj *)jarg3; 
-  arg4 = (int *)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)layerObj_getClassIndex(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_layerObj_getGeomTransform(void * jarg1) {
-  char * jresult ;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)layerObj_getGeomTransform(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_layerObj_setGeomTransform(void * jarg1, char * jarg2) {
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct layerObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    layerObj_setGeomTransform(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_name_set(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_name_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_status_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->status = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_status_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->status);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_height_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_height_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_width_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_width_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_maxsize_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->maxsize = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_maxsize_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->maxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_numlayers_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->numlayers);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_maxlayers_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->maxlayers);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_symbolset_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  symbolSetObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (symbolSetObj *)& ((arg1)->symbolset);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_fontset_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  fontSetObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (fontSetObj *)& ((arg1)->fontset);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_labelcache_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  labelCacheObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (labelCacheObj *)& ((arg1)->labelcache);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_transparent_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->transparent = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_transparent_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->transparent);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_interlace_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->interlace = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_interlace_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->interlace);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_imagequality_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->imagequality = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_imagequality_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->imagequality);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_extent_set(void * jarg1, void * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (rectObj *)jarg2; 
-  if (arg1) (arg1)->extent = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_extent_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->extent);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_cellsize_set(void * jarg1, double jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->cellsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_mapObj_cellsize_get(void * jarg1) {
-  double jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (double) ((arg1)->cellsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_units_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  enum MS_UNITS arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (enum MS_UNITS)jarg2; 
-  if (arg1) (arg1)->units = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_units_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  enum MS_UNITS result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (enum MS_UNITS) ((arg1)->units);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_scaledenom_set(void * jarg1, double jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->scaledenom = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_mapObj_scaledenom_get(void * jarg1) {
-  double jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (double) ((arg1)->scaledenom);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_resolution_set(void * jarg1, double jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->resolution = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_mapObj_resolution_get(void * jarg1) {
-  double jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (double) ((arg1)->resolution);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_defresolution_set(void * jarg1, double jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->defresolution = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_mapObj_defresolution_get(void * jarg1) {
-  double jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (double) ((arg1)->defresolution);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_shapepath_set(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->shapepath) free((char*)arg1->shapepath);
-    if (arg2) {
-      arg1->shapepath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->shapepath,arg2);
-    } else {
-      arg1->shapepath = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_shapepath_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->shapepath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_mappath_set(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->mappath) free((char*)arg1->mappath);
-    if (arg2) {
-      arg1->mappath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mappath,arg2);
-    } else {
-      arg1->mappath = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_mappath_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->mappath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_imagecolor_set(void * jarg1, void * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->imagecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_imagecolor_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->imagecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_numoutputformats_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->numoutputformats);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_outputformat_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  outputFormatObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (outputFormatObj *) ((arg1)->outputformat);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_imagetype_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->imagetype);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_reference_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  referenceMapObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (referenceMapObj *)& ((arg1)->reference);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_scalebar_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  scalebarObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (scalebarObj *)& ((arg1)->scalebar);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_legend_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  legendObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (legendObj *)& ((arg1)->legend);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_querymap_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  queryMapObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (queryMapObj *)& ((arg1)->querymap);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_web_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  webObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (webObj *)& ((arg1)->web);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_layerorder_set(void * jarg1, void * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int *arg2 = (int *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int *)jarg2; 
-  if (arg1) (arg1)->layerorder = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_layerorder_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int *) ((arg1)->layerorder);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_debug_set(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->debug = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_debug_get(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (int) ((arg1)->debug);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_datapattern_set(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->datapattern) free((char*)arg1->datapattern);
-    if (arg2) {
-      arg1->datapattern = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->datapattern,arg2);
-    } else {
-      arg1->datapattern = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_datapattern_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->datapattern);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_templatepattern_set(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->templatepattern) free((char*)arg1->templatepattern);
-    if (arg2) {
-      arg1->templatepattern = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->templatepattern,arg2);
-    } else {
-      arg1->templatepattern = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_templatepattern_get(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (char *) ((arg1)->templatepattern);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_configoptions_get(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  hashTableObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  result = (hashTableObj *)& ((arg1)->configoptions);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_mapObj(char * jarg1) {
-  void * jresult ;
-  char *arg1 = (char *) "" ;
-  struct mapObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (struct mapObj *)new_mapObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_mapObj(void * jarg1) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_mapObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_clone(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  mapObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (mapObj *)mapObj_clone(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_insertLayer(void * jarg1, void * jarg2, int jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  layerObj *arg2 = (layerObj *) 0 ;
-  int arg3 = (int) -1 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (layerObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_insertLayer(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_removeLayer(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  layerObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (layerObj *)mapObj_removeLayer(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setExtent(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  arg5 = (double)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setExtent(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_offsetExtent(void * jarg1, double jarg2, double jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_offsetExtent(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_scaleExtent(void * jarg1, double jarg2, double jarg3, double jarg4) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_scaleExtent(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setCenter(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setCenter(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setSize(void * jarg1, int jarg2, int jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setSize(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setRotation(void * jarg1, double jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setRotation(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getLayer(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  layerObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (layerObj *)mapObj_getLayer(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getLayerByName(void * jarg1, char * jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  layerObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (layerObj *)mapObj_getLayerByName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_getSymbolByName(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_getSymbolByName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_prepareQuery(void * jarg1) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    mapObj_prepareQuery(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_prepareImage(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_prepareImage(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_setImageType(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    mapObj_setImageType(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_selectOutputFormat(void * jarg1, char * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    mapObj_selectOutputFormat(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getOutputFormat(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  outputFormatObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (outputFormatObj *)mapObj_getOutputFormat(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_setOutputFormat(void * jarg1, void * jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (outputFormatObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    mapObj_setOutputFormat(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_draw(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_draw(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_drawQuery(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_drawQuery(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_drawLegend(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_drawLegend(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_drawScalebar(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_drawScalebar(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_drawReferenceMap(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)mapObj_drawReferenceMap(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_embedScalebar(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_embedScalebar(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_embedLegend(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_embedLegend(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_drawLabelCache(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_drawLabelCache(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getLabel(void * jarg1, int jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (labelCacheMemberObj *)mapObj_getLabel(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_nextLabel(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (labelCacheMemberObj *)mapObj_nextLabel(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_queryByFilter(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_queryByFilter(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_queryByPoint(void * jarg1, void * jarg2, int jarg3, double jarg4) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int arg3 ;
-  double arg4 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (double)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_queryByPoint(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_queryByRect(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj arg2 ;
-  rectObj *argp2 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  argp2 = (rectObj *)jarg2; 
-  if (!argp2) {
-    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null rectObj", 0);
-    return 0;
-  }
-  arg2 = *argp2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_queryByRect(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_queryByFeatures(void * jarg1, int jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_queryByFeatures(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_queryByShape(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_queryByShape(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setWKTProjection(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setWKTProjection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_getProjection(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_getProjection(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setProjection(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setProjection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_save(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_save(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_saveQuery(void * jarg1, char * jarg2, int jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int arg3 = (int) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_saveQuery(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_loadQuery(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_loadQuery(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_freeQuery(void * jarg1, int jarg2) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 = (int) -1 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    mapObj_freeQuery(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_saveQueryAsGML(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) "GOMF" ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_saveQueryAsGML(arg1,arg2,(char const *)arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_getMetaData(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_getMetaData(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setMetaData(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setMetaData(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_removeMetaData(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_removeMetaData(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_getFirstMetaDataKey(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_getFirstMetaDataKey(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_getNextMetaDataKey(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_getNextMetaDataKey(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setSymbolSet(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setSymbolSet(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_getNumSymbols(void * jarg1) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_getNumSymbols(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setFontSet(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setFontSet(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_saveMapContext(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_saveMapContext(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_loadMapContext(void * jarg1, char * jarg2, int jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int arg3 = (int) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_loadMapContext(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_moveLayerUp(void * jarg1, int jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_moveLayerUp(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_moveLayerDown(void * jarg1, int jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_moveLayerDown(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getLayersDrawingOrder(void * jarg1) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  intarray *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (intarray *)mapObj_getLayersDrawingOrder(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_setLayersDrawingOrder(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int *arg2 = (int *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_setLayersDrawingOrder(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_setConfigOption(void * jarg1, char * jarg2, char * jarg3) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    mapObj_setConfigOption(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_getConfigOption(void * jarg1, char * jarg2) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_getConfigOption(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_mapObj_applyConfigOptions(void * jarg1) {
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    mapObj_applyConfigOptions(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_applySLD(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_applySLD(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_applySLDURL(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_applySLDURL(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_generateSLD(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_generateSLD(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_processTemplate(void * jarg1, int jarg2, void * jarg3, void * jarg4, int jarg5) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  char **arg3 = (char **) 0 ;
-  char **arg4 = (char **) 0 ;
-  int arg5 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (char **)jarg3; 
-  arg4 = (char **)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_processTemplate(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_processLegendTemplate(void * jarg1, void * jarg2, void * jarg3, int jarg4) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  char **arg3 = (char **) 0 ;
-  int arg4 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char **)jarg2; 
-  arg3 = (char **)jarg3; 
-  arg4 = (int)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_processLegendTemplate(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_processQueryTemplate(void * jarg1, void * jarg2, void * jarg3, int jarg4) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  char **arg3 = (char **) 0 ;
-  int arg4 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char **)jarg2; 
-  arg3 = (char **)jarg3; 
-  arg4 = (int)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_processQueryTemplate(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_mapObj_getOutputFormatByName(void * jarg1, char * jarg2) {
-  void * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  outputFormatObj *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (outputFormatObj *)mapObj_getOutputFormatByName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_appendOutputFormat(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (outputFormatObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_appendOutputFormat(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_removeOutputFormat(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_removeOutputFormat(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_loadOWSParameters(void * jarg1, void * jarg2, char * jarg3) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-  char *arg3 = (char *) "1.1.1" ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (cgiRequestObj *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_loadOWSParameters(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_OWSDispatch(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (cgiRequestObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_OWSDispatch(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_mapObj_convertToString(void * jarg1) {
-  char * jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)mapObj_convertToString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_zoomPoint(void * jarg1, int jarg2, void * jarg3, int jarg4, int jarg5, void * jarg6, void * jarg7) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  rectObj *arg7 = (rectObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (rectObj *)jarg6; 
-  arg7 = (rectObj *)jarg7; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_zoomPoint(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_zoomRectangle(void * jarg1, void * jarg2, int jarg3, int jarg4, void * jarg5, void * jarg6) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  rectObj *arg5 = (rectObj *) 0 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (rectObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (rectObj *)jarg5; 
-  arg6 = (rectObj *)jarg6; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_zoomRectangle(arg1,arg2,arg3,arg4,arg5,arg6);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_mapObj_zoomScale(void * jarg1, double jarg2, void * jarg3, int jarg4, int jarg5, void * jarg6, void * jarg7) {
-  int jresult ;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  rectObj *arg7 = (rectObj *) 0 ;
-  int result;
-  
-  arg1 = (struct mapObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  arg4 = (int)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (rectObj *)jarg6; 
-  arg7 = (rectObj *)jarg7; 
-  {
-    errorObj *ms_error;
-    result = (int)mapObj_zoomScale(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_msSaveImage(void * jarg1, void * jarg2, char * jarg3) {
-  int jresult ;
-  mapObj *arg1 = (mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (mapObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)msSaveImage(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msFreeImage(void * jarg1) {
-  imageObj *arg1 = (imageObj *) 0 ;
-  
-  arg1 = (imageObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    msFreeImage(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_msSetup() {
-  int jresult ;
-  int result;
-  
-  {
-    errorObj *ms_error;
-    result = (int)msSetup();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msCleanup(int jarg1) {
-  int arg1 ;
-  
-  arg1 = (int)jarg1; 
-  {
-    errorObj *ms_error;
-    msCleanup(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_msLoadMapFromString(char * jarg1, char * jarg2) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) 0 ;
-  mapObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (mapObj *)msLoadMapFromString(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_width_set(void * jarg1, double jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_strokeStyleObj_width_get(void * jarg1) {
-  double jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (double) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_patternlength_set(void * jarg1, int jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->patternlength = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_strokeStyleObj_patternlength_get(void * jarg1) {
-  int jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (int) ((arg1)->patternlength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_pattern_set(void * jarg1, void * jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double *arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (double *)jarg2; 
-  {
-    size_t ii;
-    double *b = (double *) arg1->pattern;
-    for (ii = 0; ii < (size_t)MS_MAXPATTERNLENGTH; ii++) b[ii] = *((double *) arg2 + ii);
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_strokeStyleObj_pattern_get(void * jarg1) {
-  void * jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double *result = 0 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (double *)(double *) ((arg1)->pattern);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_patternoffset_set(void * jarg1, double jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->patternoffset = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_strokeStyleObj_patternoffset_get(void * jarg1) {
-  double jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (double) ((arg1)->patternoffset);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_color_set(void * jarg1, void * jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_strokeStyleObj_color_get(void * jarg1) {
-  void * jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_linecap_set(void * jarg1, int jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->linecap = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_strokeStyleObj_linecap_get(void * jarg1) {
-  int jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (int) ((arg1)->linecap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_linejoin_set(void * jarg1, int jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->linejoin = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_strokeStyleObj_linejoin_get(void * jarg1) {
-  int jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (int) ((arg1)->linejoin);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_strokeStyleObj_linejoinmaxsize_set(void * jarg1, double jarg2) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->linejoinmaxsize = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_strokeStyleObj_linejoinmaxsize_get(void * jarg1) {
-  double jresult ;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  result = (double) ((arg1)->linejoinmaxsize);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_strokeStyleObj() {
-  void * jresult ;
-  strokeStyleObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (strokeStyleObj *)calloc(1, sizeof(strokeStyleObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_strokeStyleObj(void * jarg1) {
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  
-  arg1 = (strokeStyleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_color_set(void * jarg1, void * jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolStyleObj_color_get(void * jarg1) {
-  void * jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_backgroundcolor_set(void * jarg1, void * jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->backgroundcolor = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolStyleObj_backgroundcolor_get(void * jarg1) {
-  void * jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->backgroundcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_outlinewidth_set(void * jarg1, double jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->outlinewidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolStyleObj_outlinewidth_get(void * jarg1) {
-  double jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (double) ((arg1)->outlinewidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolStyleObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_scale_set(void * jarg1, double jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->scale = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolStyleObj_scale_get(void * jarg1) {
-  double jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (double) ((arg1)->scale);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_rotation_set(void * jarg1, double jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->rotation = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolStyleObj_rotation_get(void * jarg1) {
-  double jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (double) ((arg1)->rotation);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_gap_set(void * jarg1, double jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->gap = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolStyleObj_gap_get(void * jarg1) {
-  double jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (double) ((arg1)->gap);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolStyleObj_style_set(void * jarg1, void * jarg2) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  arg2 = (styleObj *)jarg2; 
-  if (arg1) (arg1)->style = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolStyleObj_style_get(void * jarg1) {
-  void * jresult ;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  styleObj *result = 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  result = (styleObj *) ((arg1)->style);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_symbolStyleObj() {
-  void * jresult ;
-  symbolStyleObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (symbolStyleObj *)calloc(1, sizeof(symbolStyleObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_symbolStyleObj(void * jarg1) {
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  
-  arg1 = (symbolStyleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_symbol_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  symbolObj *arg2 = (symbolObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (symbolObj *)jarg2; 
-  if (arg1) (arg1)->symbol = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_symbol_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  symbolObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (symbolObj *) ((arg1)->symbol);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_width_set(void * jarg1, int jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->width = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_tileCacheObj_width_get(void * jarg1) {
-  int jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (int) ((arg1)->width);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_height_set(void * jarg1, int jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->height = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_tileCacheObj_height_get(void * jarg1) {
-  int jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int result;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (int) ((arg1)->height);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_color_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_color_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_backgroundcolor_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_backgroundcolor_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_outlinewidth_set(void * jarg1, double jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->outlinewidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_tileCacheObj_outlinewidth_get(void * jarg1) {
-  double jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double result;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (double) ((arg1)->outlinewidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_rotation_set(void * jarg1, double jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->rotation = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_tileCacheObj_rotation_get(void * jarg1) {
-  double jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double result;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (double) ((arg1)->rotation);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_scale_set(void * jarg1, double jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->scale = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_tileCacheObj_scale_get(void * jarg1) {
-  double jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double result;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (double) ((arg1)->scale);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_image_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  if (arg1) (arg1)->image = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_image_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (imageObj *) ((arg1)->image);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_tileCacheObj_next_set(void * jarg1, void * jarg2) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  tileCacheObj *arg2 = (tileCacheObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  arg2 = (tileCacheObj *)jarg2; 
-  if (arg1) (arg1)->next = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_tileCacheObj_next_get(void * jarg1) {
-  void * jresult ;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  tileCacheObj *result = 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  result = (tileCacheObj *) ((arg1)->next);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_tileCacheObj() {
-  void * jresult ;
-  struct tileCacheObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (struct tileCacheObj *)calloc(1, sizeof(struct tileCacheObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_tileCacheObj(void * jarg1) {
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  
-  arg1 = (struct tileCacheObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_fonts_set(void * jarg1, void * jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  char **arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (char **)jarg2; 
-  {
-    size_t ii;
-    char * *b = (char * *) arg1->fonts;
-    for (ii = 0; ii < (size_t)5; ii++) b[ii] = *((char * *) arg2 + ii);
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelStyleObj_fonts_get(void * jarg1) {
-  void * jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  char **result = 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (char **)(char **) ((arg1)->fonts);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_numfonts_set(void * jarg1, int jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->numfonts = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelStyleObj_numfonts_get(void * jarg1) {
-  int jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int result;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (int) ((arg1)->numfonts);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_size_set(void * jarg1, double jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->size = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelStyleObj_size_get(void * jarg1) {
-  double jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (double) ((arg1)->size);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_rotation_set(void * jarg1, double jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->rotation = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelStyleObj_rotation_get(void * jarg1) {
-  double jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (double) ((arg1)->rotation);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_color_set(void * jarg1, void * jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->color = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelStyleObj_color_get(void * jarg1) {
-  void * jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->color);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_outlinewidth_set(void * jarg1, double jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->outlinewidth = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_labelStyleObj_outlinewidth_get(void * jarg1) {
-  double jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double result;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (double) ((arg1)->outlinewidth);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_outlinecolor_set(void * jarg1, void * jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (colorObj *)jarg2; 
-  if (arg1) (arg1)->outlinecolor = arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_labelStyleObj_outlinecolor_get(void * jarg1) {
-  void * jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *result = 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (colorObj *) ((arg1)->outlinecolor);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_labelStyleObj_antialias_set(void * jarg1, int jarg2) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->antialias = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_labelStyleObj_antialias_get(void * jarg1) {
-  int jresult ;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int result;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  result = (int) ((arg1)->antialias);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_labelStyleObj() {
-  void * jresult ;
-  labelStyleObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (labelStyleObj *)calloc(1, sizeof(labelStyleObj));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_labelStyleObj(void * jarg1) {
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  
-  arg1 = (labelStyleObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_rectObj_minx_set(void * jarg1, double jarg2) {
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minx = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_rectObj_minx_get(void * jarg1) {
-  double jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double result;
-  
-  arg1 = (rectObj *)jarg1; 
-  result = (double) ((arg1)->minx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_rectObj_miny_set(void * jarg1, double jarg2) {
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->miny = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_rectObj_miny_get(void * jarg1) {
-  double jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double result;
-  
-  arg1 = (rectObj *)jarg1; 
-  result = (double) ((arg1)->miny);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_rectObj_maxx_set(void * jarg1, double jarg2) {
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxx = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_rectObj_maxx_get(void * jarg1) {
-  double jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double result;
-  
-  arg1 = (rectObj *)jarg1; 
-  result = (double) ((arg1)->maxx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_rectObj_maxy_set(void * jarg1, double jarg2) {
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxy = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_rectObj_maxy_get(void * jarg1) {
-  double jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double result;
-  
-  arg1 = (rectObj *)jarg1; 
-  result = (double) ((arg1)->maxy);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_rectObj(double jarg1, double jarg2, double jarg3, double jarg4, int jarg5) {
-  void * jresult ;
-  double arg1 = (double) -1.0 ;
-  double arg2 = (double) -1.0 ;
-  double arg3 = (double) -1.0 ;
-  double arg4 = (double) -1.0 ;
-  int arg5 = (int) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (double)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  arg5 = (int)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (rectObj *)new_rectObj(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_rectObj(void * jarg1) {
-  rectObj *arg1 = (rectObj *) 0 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_rectObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_rectObj_project(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (projectionObj *)jarg2; 
-  arg3 = (projectionObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)rectObj_project(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_rectObj_fit(void * jarg1, int jarg2, int jarg3) {
-  double jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  double result;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (double)rectObj_fit(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_rectObj_draw(void * jarg1, void * jarg2, void * jarg3, void * jarg4, int jarg5, char * jarg6) {
-  int jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  int result;
-  
-  arg1 = (rectObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (layerObj *)jarg3; 
-  arg4 = (imageObj *)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (char *)jarg6; 
-  {
-    errorObj *ms_error;
-    result = (int)rectObj_draw(arg1,arg2,arg3,arg4,arg5,arg6);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_rectObj_getCenter(void * jarg1) {
-  void * jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (pointObj *)rectObj_getCenter(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_rectObj_toPolygon(void * jarg1) {
-  void * jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)rectObj_toPolygon(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_rectObj_toString(void * jarg1) {
-  char * jresult ;
-  rectObj *arg1 = (rectObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (rectObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)rectObj_toString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_pointObj_x_set(void * jarg1, double jarg2) {
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->x = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_pointObj_x_get(void * jarg1) {
-  double jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double result;
-  
-  arg1 = (pointObj *)jarg1; 
-  result = (double) ((arg1)->x);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_pointObj_y_set(void * jarg1, double jarg2) {
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->y = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_pointObj_y_get(void * jarg1) {
-  double jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double result;
-  
-  arg1 = (pointObj *)jarg1; 
-  result = (double) ((arg1)->y);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_pointObj(double jarg1, double jarg2, double jarg3, double jarg4) {
-  void * jresult ;
-  double arg1 = (double) 0.0 ;
-  double arg2 = (double) 0.0 ;
-  double arg3 = (double) 0.0 ;
-  double arg4 = (double) -2e38 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (double)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (pointObj *)new_pointObj(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_pointObj(void * jarg1) {
-  pointObj *arg1 = (pointObj *) 0 ;
-  
-  arg1 = (pointObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_pointObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_pointObj_project(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (projectionObj *)jarg2; 
-  arg3 = (projectionObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)pointObj_project(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_pointObj_draw(void * jarg1, void * jarg2, void * jarg3, void * jarg4, int jarg5, char * jarg6) {
-  int jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  int result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (layerObj *)jarg3; 
-  arg4 = (imageObj *)jarg4; 
-  arg5 = (int)jarg5; 
-  arg6 = (char *)jarg6; 
-  {
-    errorObj *ms_error;
-    result = (int)pointObj_draw(arg1,arg2,arg3,arg4,arg5,arg6);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_pointObj_distanceToPoint(void * jarg1, void * jarg2) {
-  double jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  double result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (double)pointObj_distanceToPoint(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_pointObj_distanceToSegment(void * jarg1, void * jarg2, void * jarg3) {
-  double jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  double result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (double)pointObj_distanceToSegment(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_pointObj_distanceToShape(void * jarg1, void * jarg2) {
-  double jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  double result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (double)pointObj_distanceToShape(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_pointObj_setXY(void * jarg1, double jarg2, double jarg3, double jarg4) {
-  int jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 = (double) -2e38 ;
-  int result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)pointObj_setXY(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_pointObj_setXYZ(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5) {
-  int jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 = (double) -2e38 ;
-  int result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  arg5 = (double)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)pointObj_setXYZ(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_pointObj_setXYZM(void * jarg1, double jarg2, double jarg3, double jarg4, double jarg5) {
-  int jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 ;
-  int result;
-  
-  arg1 = (pointObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  arg3 = (double)jarg3; 
-  arg4 = (double)jarg4; 
-  arg5 = (double)jarg5; 
-  {
-    errorObj *ms_error;
-    result = (int)pointObj_setXYZM(arg1,arg2,arg3,arg4,arg5);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_pointObj_toString(void * jarg1) {
-  char * jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (pointObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)pointObj_toString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_pointObj_toShape(void * jarg1) {
-  void * jresult ;
-  pointObj *arg1 = (pointObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (pointObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)pointObj_toShape(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_lineObj_numpoints_get(void * jarg1) {
-  int jresult ;
-  lineObj *arg1 = (lineObj *) 0 ;
-  int result;
-  
-  arg1 = (lineObj *)jarg1; 
-  result = (int) ((arg1)->numpoints);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_lineObj() {
-  void * jresult ;
-  lineObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (lineObj *)new_lineObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_lineObj(void * jarg1) {
-  lineObj *arg1 = (lineObj *) 0 ;
-  
-  arg1 = (lineObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_lineObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_lineObj_project(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  lineObj *arg1 = (lineObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (lineObj *)jarg1; 
-  arg2 = (projectionObj *)jarg2; 
-  arg3 = (projectionObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)lineObj_project(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_lineObj_get(void * jarg1, int jarg2) {
-  void * jresult ;
-  lineObj *arg1 = (lineObj *) 0 ;
-  int arg2 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (lineObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (pointObj *)lineObj_get(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_lineObj_add(void * jarg1, void * jarg2) {
-  int jresult ;
-  lineObj *arg1 = (lineObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (lineObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)lineObj_add(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_lineObj_set(void * jarg1, int jarg2, void * jarg3) {
-  int jresult ;
-  lineObj *arg1 = (lineObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (lineObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)lineObj_set(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_numlines_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->numlines);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_numvalues_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->numvalues);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_bounds_set(void * jarg1, void * jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (rectObj *)jarg2; 
-  if (arg1) (arg1)->bounds = *arg2;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_bounds_get(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->bounds);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_type_set(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_type_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_index_set(void * jarg1, long jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  long arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (long)jarg2; 
-  if (arg1) (arg1)->index = arg2;
-}
-
-
-SWIGEXPORT long SWIGSTDCALL CSharp_shapeObj_index_get(void * jarg1) {
-  long jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  long result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (long) ((arg1)->index);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_tileindex_set(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->tileindex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_tileindex_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->tileindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_classindex_set(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->classindex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_classindex_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->classindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_text_set(void * jarg1, char * jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->text) free((char*)arg1->text);
-    if (arg2) {
-      arg1->text = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->text,arg2);
-    } else {
-      arg1->text = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_shapeObj_text_get(void * jarg1) {
-  char * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (char *) ((arg1)->text);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_scratch_set(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->scratch = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_scratch_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->scratch);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_resultindex_set(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->resultindex = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_resultindex_get(void * jarg1) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  result = (int) ((arg1)->resultindex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_shapeObj(int jarg1) {
-  void * jresult ;
-  int arg1 = (int) MS_SHAPE_NULL ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (int)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)new_shapeObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_shapeObj(void * jarg1) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_shapeObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_fromWKT(char * jarg1) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_fromWKT(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_project(void * jarg1, void * jarg2, void * jarg3) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (projectionObj *)jarg2; 
-  arg3 = (projectionObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_project(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_get(void * jarg1, int jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  lineObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (lineObj *)shapeObj_get(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_add(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  lineObj *arg2 = (lineObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (lineObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_add(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_draw(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (layerObj *)jarg3; 
-  arg4 = (imageObj *)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_draw(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_setBounds(void * jarg1) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    shapeObj_setBounds(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_clone(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_clone(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_copy(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_copy(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_shapeObj_toWKT(void * jarg1) {
-  char * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)shapeObj_toWKT(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_buffer(void * jarg1, double jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_buffer(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_simplify(void * jarg1, double jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_simplify(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_topologyPreservingSimplify(void * jarg1, double jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_topologyPreservingSimplify(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_convexHull(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_convexHull(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_boundary(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_boundary(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_getCentroid(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (pointObj *)shapeObj_getCentroid(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_Union(void * jarg1, void * jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_Union(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_intersection(void * jarg1, void * jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_intersection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_difference(void * jarg1, void * jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_difference(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_symDifference(void * jarg1, void * jarg2) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapeObj_symDifference(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_contains__SWIG_0(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_contains__SWIG_0(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_overlaps(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_overlaps(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_within(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_within(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_crosses(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_crosses(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_intersects(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_intersects(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_touches(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_touches(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_equals(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_equals(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_disjoint(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_disjoint(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_shapeObj_getArea(void * jarg1) {
-  double jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (double)shapeObj_getArea(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_shapeObj_getLength(void * jarg1) {
-  double jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (double)shapeObj_getLength(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_shapeObj_getValue(void * jarg1, int jarg2) {
-  char * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)shapeObj_getValue(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_contains__SWIG_1(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_contains__SWIG_1(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_shapeObj_distanceToPoint(void * jarg1, void * jarg2) {
-  double jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  double result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (double)shapeObj_distanceToPoint(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_shapeObj_distanceToShape(void * jarg1, void * jarg2) {
-  double jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  double result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (double)shapeObj_distanceToShape(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapeObj_getLabelPoint(void * jarg1) {
-  void * jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *result = 0 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (pointObj *)shapeObj_getLabelPoint(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapeObj_setValue(void * jarg1, int jarg2, char * jarg3) {
-  int jresult ;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)shapeObj_setValue(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapeObj_initValues(void * jarg1, int jarg2) {
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (shapeObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    shapeObj_initValues(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SHX_BUFFER_PAGE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1024);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHAPEFILE_POINT_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHAPEFILE_ARC_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(3);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHAPEFILE_POLYGON_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(5);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHAPEFILE_MULTIPOINT_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(8);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_POINTZ_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(11);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_ARCZ_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(13);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_POLYGONZ_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(15);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_MULTIPOINTZ_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(18);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_POINTM_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(21);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_ARCM_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(23);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_POLYGONM_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(25);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHP_MULTIPOINTM_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(28);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_nRecords_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->nRecords);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_DBFInfo_nRecordLength_get(void * jarg1) {
-  unsigned int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  unsigned int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (unsigned int) ((arg1)->nRecordLength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_nHeaderLength_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->nHeaderLength);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_nFields_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->nFields);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_DBFInfo_panFieldOffset_get(void * jarg1) {
-  void * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int *) ((arg1)->panFieldOffset);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_DBFInfo_panFieldSize_get(void * jarg1) {
-  void * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int *) ((arg1)->panFieldSize);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_DBFInfo_panFieldDecimals_get(void * jarg1) {
-  void * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int *) ((arg1)->panFieldDecimals);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_DBFInfo_pachFieldType_get(void * jarg1) {
-  char * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (char *) ((arg1)->pachFieldType);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_DBFInfo_pszHeader_get(void * jarg1) {
-  char * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (char *) ((arg1)->pszHeader);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_nCurrentRecord_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->nCurrentRecord);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_bCurrentRecordModified_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->bCurrentRecordModified);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_DBFInfo_pszCurrentRecord_get(void * jarg1) {
-  char * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (char *) ((arg1)->pszCurrentRecord);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_bNoHeader_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->bNoHeader);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_bUpdated_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->bUpdated);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_DBFInfo_pszStringField_get(void * jarg1) {
-  char * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (char *) ((arg1)->pszStringField);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_nStringFieldLen_get(void * jarg1) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  result = (int) ((arg1)->nStringFieldLen);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_DBFInfo_getFieldName(void * jarg1, int jarg2) {
-  char * jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)DBFInfo_getFieldName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_getFieldWidth(void * jarg1, int jarg2) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)DBFInfo_getFieldWidth(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_getFieldDecimals(void * jarg1, int jarg2) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)DBFInfo_getFieldDecimals(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_DBFInfo_getFieldType(void * jarg1, int jarg2) {
-  int jresult ;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  int result;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)DBFInfo_getFieldType(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_DBFInfo() {
-  void * jresult ;
-  DBFInfo *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (DBFInfo *)calloc(1, sizeof(DBFInfo));
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_DBFInfo(void * jarg1) {
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  
-  arg1 = (DBFInfo *)jarg1; 
-  {
-    errorObj *ms_error;
-    free((char *) arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_shapefileObj_source_get(void * jarg1) {
-  char * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (char *)(char *) ((arg1)->source);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_type_get(void * jarg1) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (int) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_numshapes_get(void * jarg1) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (int) ((arg1)->numshapes);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapefileObj_bounds_get(void * jarg1) {
-  void * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->bounds);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_lastshape_get(void * jarg1) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (int) ((arg1)->lastshape);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapefileObj_status_get(void * jarg1) {
-  void * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  ms_bitarray result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (ms_bitarray) ((arg1)->status);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapefileObj_statusbounds_get(void * jarg1) {
-  void * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  rectObj *result = 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (rectObj *)& ((arg1)->statusbounds);
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_isopen_get(void * jarg1) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  result = (int) ((arg1)->isopen);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_shapefileObj(char * jarg1, int jarg2) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  int arg2 = (int) -1 ;
-  shapefileObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapefileObj *)new_shapefileObj(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_shapefileObj(void * jarg1) {
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_shapefileObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_get(void * jarg1, int jarg2, void * jarg3) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (shapeObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)shapefileObj_get(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapefileObj_getShape(void * jarg1, int jarg2) {
-  void * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  shapeObj *result = 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (shapeObj *)shapefileObj_getShape(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_getPoint(void * jarg1, int jarg2, void * jarg3) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (pointObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)shapefileObj_getPoint(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_getTransformed(void * jarg1, void * jarg2, int jarg3, void * jarg4) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  shapeObj *arg4 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (mapObj *)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (shapeObj *)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)shapefileObj_getTransformed(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_shapefileObj_getExtent(void * jarg1, int jarg2, void * jarg3) {
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  rectObj *arg3 = (rectObj *) 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (rectObj *)jarg3; 
-  {
-    errorObj *ms_error;
-    shapefileObj_getExtent(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_add(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (shapeObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapefileObj_add(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_shapefileObj_addPoint(void * jarg1, void * jarg2) {
-  int jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int result;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  arg2 = (pointObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)shapefileObj_addPoint(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_shapefileObj_getDBF(void * jarg1) {
-  void * jresult ;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  DBFInfo *result = 0 ;
-  
-  arg1 = (shapefileObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (DBFInfo *)shapefileObj_getDBF(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_wkp_none_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_wkp_lonlat_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_wkp_gmerc_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_projectionObj_numargs_get(void * jarg1) {
-  int jresult ;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (projectionObj *)jarg1; 
-  result = (int) ((arg1)->numargs);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_projectionObj_automatic_get(void * jarg1) {
-  int jresult ;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (projectionObj *)jarg1; 
-  result = (int) ((arg1)->automatic);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_projectionObj_wellknownprojection_set(void * jarg1, int jarg2) {
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (projectionObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->wellknownprojection = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_projectionObj_wellknownprojection_get(void * jarg1) {
-  int jresult ;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (projectionObj *)jarg1; 
-  result = (int) ((arg1)->wellknownprojection);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_projectionObj(char * jarg1) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  projectionObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (projectionObj *)new_projectionObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_projectionObj(void * jarg1) {
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  
-  arg1 = (projectionObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_projectionObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_projectionObj_setWKTProjection(void * jarg1, char * jarg2) {
-  int jresult ;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (projectionObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)projectionObj_setWKTProjection(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_projectionObj_getUnits(void * jarg1) {
-  int jresult ;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int result;
-  
-  arg1 = (projectionObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)projectionObj_getUnits(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SYMBOL_ALLOCSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(64);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MAXVECTORPOINTS_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(100);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MAXPATTERNLENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(10);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_IMAGECACHESIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(6);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_colorObj_red_set(void * jarg1, int jarg2) {
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->red = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_red_get(void * jarg1) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  result = (int) ((arg1)->red);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_colorObj_green_set(void * jarg1, int jarg2) {
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->green = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_green_get(void * jarg1) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  result = (int) ((arg1)->green);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_colorObj_blue_set(void * jarg1, int jarg2) {
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->blue = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_blue_get(void * jarg1) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  result = (int) ((arg1)->blue);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_colorObj_alpha_set(void * jarg1, int jarg2) {
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->alpha = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_alpha_get(void * jarg1) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  result = (int) ((arg1)->alpha);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_colorObj(int jarg1, int jarg2, int jarg3, int jarg4) {
-  void * jresult ;
-  int arg1 = (int) 0 ;
-  int arg2 = (int) 0 ;
-  int arg3 = (int) 0 ;
-  int arg4 = (int) MS_PEN_UNSET ;
-  colorObj *result = 0 ;
-  
-  arg1 = (int)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (int)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (colorObj *)new_colorObj(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_colorObj(void * jarg1) {
-  colorObj *arg1 = (colorObj *) 0 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_colorObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_setRGB(void * jarg1, int jarg2, int jarg3, int jarg4) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  int arg4 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  arg3 = (int)jarg3; 
-  arg4 = (int)jarg4; 
-  {
-    errorObj *ms_error;
-    result = (int)colorObj_setRGB(arg1,arg2,arg3,arg4);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_colorObj_setHex(void * jarg1, char * jarg2) {
-  int jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (colorObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)colorObj_setHex(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_colorObj_toHex(void * jarg1) {
-  char * jresult ;
-  colorObj *arg1 = (colorObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (colorObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)colorObj_toHex(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_name_set(void * jarg1, char * jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_symbolObj_name_get(void * jarg1) {
-  char * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (char *) ((arg1)->name);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_type_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_type_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_inmapfile_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->inmapfile = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_inmapfile_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->inmapfile);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_sizex_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->sizex = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_sizex_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->sizex);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_sizey_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->sizey = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_sizey_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->sizey);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_minx_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->minx = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_minx_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->minx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_miny_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->miny = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_miny_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->miny);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_maxx_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxx = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_maxx_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->maxx);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_maxy_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->maxy = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_maxy_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->maxy);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_refcount_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->refcount);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_numpoints_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->numpoints);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_filled_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->filled = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_filled_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->filled);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_anchorpoint_x_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->anchorpoint_x = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_anchorpoint_x_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->anchorpoint_x);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_anchorpoint_y_set(void * jarg1, double jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (double)jarg2; 
-  if (arg1) (arg1)->anchorpoint_y = arg2;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_symbolObj_anchorpoint_y_get(void * jarg1) {
-  double jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (double) ((arg1)->anchorpoint_y);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_symbolObj_imagepath_get(void * jarg1) {
-  char * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (char *) ((arg1)->imagepath);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_transparent_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->transparent = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_transparent_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->transparent);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_transparentcolor_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->transparentcolor = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_transparentcolor_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->transparentcolor);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_character_set(void * jarg1, char * jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->character) free((char*)arg1->character);
-    if (arg2) {
-      arg1->character = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->character,arg2);
-    } else {
-      arg1->character = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_symbolObj_character_get(void * jarg1) {
-  char * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (char *) ((arg1)->character);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_antialias_set(void * jarg1, int jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->antialias = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_antialias_get(void * jarg1) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (int) ((arg1)->antialias);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_symbolObj_font_set(void * jarg1, char * jarg2) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->font) free((char*)arg1->font);
-    if (arg2) {
-      arg1->font = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->font,arg2);
-    } else {
-      arg1->font = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_symbolObj_font_get(void * jarg1) {
-  char * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  result = (char *) ((arg1)->font);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_symbolObj(char * jarg1, char * jarg2) {
-  void * jresult ;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) NULL ;
-  struct symbolObj *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (struct symbolObj *)new_symbolObj(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_symbolObj(void * jarg1) {
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_symbolObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_setImagepath(void * jarg1, char * jarg2) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolObj_setImagepath(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_setPoints(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  lineObj *arg2 = (lineObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (lineObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolObj_setPoints(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolObj_getPoints(void * jarg1) {
-  void * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  lineObj *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (lineObj *)symbolObj_getPoints(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_symbolObj_getImage(void * jarg1, void * jarg2) {
-  void * jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  imageObj *result = 0 ;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (outputFormatObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (imageObj *)symbolObj_getImage(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_symbolObj_setImage(void * jarg1, void * jarg2) {
-  int jresult ;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  int result;
-  
-  arg1 = (struct symbolObj *)jarg1; 
-  arg2 = (imageObj *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)symbolObj_setImage(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NOERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(0);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_IOERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(1);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MEMERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_TYPEERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(3);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SYMERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(4);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_REGEXERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(5);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_TTFERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(6);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_DBFERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(7);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_GDERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(8);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_IDENTERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(9);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_EOFERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(10);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_PROJERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(11);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MISCERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(12);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_CGIERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(13);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WEBERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(14);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_IMGERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(15);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_HASHERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(16);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_JOINERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(17);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NOTFOUND_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(18);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SHPERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(19);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_PARSEERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(20);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SDEERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(21);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_OGRERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(22);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_QUERYERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(23);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WMSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(24);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WMSCONNERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(25);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_ORACLESPATIALERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(26);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WFSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(27);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WFSCONNERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(28);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_MAPCONTEXTERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(29);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_HTTPERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(30);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_CHILDERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(31);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_WCSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(32);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_GEOSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(33);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RECTERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(34);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_TIMEERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(35);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_GMLERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(36);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_SOSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(37);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NULLPARENTERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(38);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_AGGERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(39);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_OWSERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(40);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_OGLERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(42);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_RENDERERERR_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(43);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_NUMERRORCODES_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(44);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MESSAGELENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(2048);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_ROUTINELENGTH_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(64);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_MS_ERROR_LANGUAGE_get() {
-  char * jresult ;
-  char *result = 0 ;
-  
-  result = (char *)("en-US");
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_errorObj_code_set(void * jarg1, int jarg2) {
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->code = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_errorObj_code_get(void * jarg1) {
-  int jresult ;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int result;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  result = (int) ((arg1)->code);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_errorObj_routine_set(void * jarg1, char * jarg2) {
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *arg2 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if(arg2) {
-      strncpy((char*)arg1->routine, (const char *)arg2, 64-1);
-      arg1->routine[64-1] = 0;
-    } else {
-      arg1->routine[0] = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_errorObj_routine_get(void * jarg1) {
-  char * jresult ;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  result = (char *)(char *) ((arg1)->routine);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_errorObj_message_set(void * jarg1, char * jarg2) {
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *arg2 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if(arg2) {
-      strncpy((char*)arg1->message, (const char *)arg2, 2048-1);
-      arg1->message[2048-1] = 0;
-    } else {
-      arg1->message[0] = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_errorObj_message_get(void * jarg1) {
-  char * jresult ;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  result = (char *)(char *) ((arg1)->message);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_errorObj_isreported_set(void * jarg1, int jarg2) {
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int arg2 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  if (arg1) (arg1)->isreported = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_errorObj_isreported_get(void * jarg1) {
-  int jresult ;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int result;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  result = (int) ((arg1)->isreported);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_errorObj() {
-  void * jresult ;
-  struct errorObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (struct errorObj *)new_errorObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_errorObj(void * jarg1) {
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_errorObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_errorObj_next(void * jarg1) {
-  void * jresult ;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  errorObj *result = 0 ;
-  
-  arg1 = (struct errorObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (errorObj *)errorObj_next(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_msGetErrorObj() {
-  void * jresult ;
-  errorObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (errorObj *)msGetErrorObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msResetErrorList() {
-  {
-    errorObj *ms_error;
-    msResetErrorList();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_msGetVersion() {
-  char * jresult ;
-  char *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (char *)msGetVersion();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_msGetVersionInt() {
-  int jresult ;
-  int result;
-  
-  {
-    errorObj *ms_error;
-    result = (int)msGetVersionInt();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_msGetErrorString(char * jarg1) {
-  char * jresult ;
-  char *arg1 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (char *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (char *)msGetErrorString(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_HASHSIZE_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(41);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_hashTableObj_numitems_get(void * jarg1) {
-  int jresult ;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  int result;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  result = (int) ((arg1)->numitems);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_hashTableObj() {
-  void * jresult ;
-  hashTableObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (hashTableObj *)new_hashTableObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_hashTableObj(void * jarg1) {
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_hashTableObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_hashTableObj_set(void * jarg1, char * jarg2, char * jarg3) {
-  int jresult ;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  int result;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (int)hashTableObj_set(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_hashTableObj_get(void * jarg1, char * jarg2, char * jarg3) {
-  char * jresult ;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) NULL ;
-  char *result = 0 ;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    result = (char *)hashTableObj_get(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_hashTableObj_remove(void * jarg1, char * jarg2) {
-  int jresult ;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)hashTableObj_remove(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_hashTableObj_clear(void * jarg1) {
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    hashTableObj_clear(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_hashTableObj_nextKey(void * jarg1, char * jarg2) {
-  char * jresult ;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) NULL ;
-  char *result = 0 ;
-  
-  arg1 = (hashTableObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)hashTableObj_nextKey(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_MS_DEFAULT_CGI_PARAMS_get() {
-  int jresult ;
-  int result;
-  
-  result = (int)(100);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_OWSRequest_NumParams_get(void * jarg1) {
-  int jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int result;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  result = (int) ((arg1)->NumParams);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_type_set(void * jarg1, int jarg2) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  enum MS_REQUEST_TYPE arg2 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (enum MS_REQUEST_TYPE)jarg2; 
-  if (arg1) (arg1)->type = arg2;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_OWSRequest_type_get(void * jarg1) {
-  int jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  enum MS_REQUEST_TYPE result;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  result = (enum MS_REQUEST_TYPE) ((arg1)->type);
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_contenttype_set(void * jarg1, char * jarg2) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->contenttype) free((char*)arg1->contenttype);
-    if (arg2) {
-      arg1->contenttype = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->contenttype,arg2);
-    } else {
-      arg1->contenttype = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_contenttype_get(void * jarg1) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  result = (char *) ((arg1)->contenttype);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_postrequest_set(void * jarg1, char * jarg2) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->postrequest) free((char*)arg1->postrequest);
-    if (arg2) {
-      arg1->postrequest = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->postrequest,arg2);
-    } else {
-      arg1->postrequest = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_postrequest_get(void * jarg1) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  result = (char *) ((arg1)->postrequest);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_httpcookiedata_set(void * jarg1, char * jarg2) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    if (arg1->httpcookiedata) free((char*)arg1->httpcookiedata);
-    if (arg2) {
-      arg1->httpcookiedata = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->httpcookiedata,arg2);
-    } else {
-      arg1->httpcookiedata = 0;
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_httpcookiedata_get(void * jarg1) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  result = (char *) ((arg1)->httpcookiedata);
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_OWSRequest() {
-  void * jresult ;
-  cgiRequestObj *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (cgiRequestObj *)new_cgiRequestObj();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = (void *)result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_OWSRequest(void * jarg1) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    delete_cgiRequestObj(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_OWSRequest_loadParams(void * jarg1) {
-  int jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int result;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  {
-    errorObj *ms_error;
-    result = (int)cgiRequestObj_loadParams(arg1);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_OWSRequest_loadParamsFromURL(void * jarg1, char * jarg2) {
-  int jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int result;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (int)cgiRequestObj_loadParamsFromURL(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = result; 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_setParameter(void * jarg1, char * jarg2, char * jarg3) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    cgiRequestObj_setParameter(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_OWSRequest_addParameter(void * jarg1, char * jarg2, char * jarg3) {
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  arg3 = (char *)jarg3; 
-  {
-    errorObj *ms_error;
-    cgiRequestObj_addParameter(arg1,arg2,arg3);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_getName(void * jarg1, int jarg2) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)cgiRequestObj_getName(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_getValue(void * jarg1, int jarg2) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int arg2 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (int)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)cgiRequestObj_getValue(arg1,arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_OWSRequest_getValueByName(void * jarg1, char * jarg2) {
-  char * jresult ;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *result = 0 ;
-  
-  arg1 = (cgiRequestObj *)jarg1; 
-  arg2 = (char *)jarg2; 
-  {
-    errorObj *ms_error;
-    result = (char *)cgiRequestObj_getValueByName(arg1,(char const *)arg2);
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msConnPoolCloseUnreferenced() {
-  {
-    errorObj *ms_error;
-    msConnPoolCloseUnreferenced();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msIO_resetHandlers() {
-  {
-    errorObj *ms_error;
-    msIO_resetHandlers();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msIO_installStdoutToBuffer() {
-  {
-    errorObj *ms_error;
-    msIO_installStdoutToBuffer();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msIO_installStdinFromBuffer() {
-  {
-    errorObj *ms_error;
-    msIO_installStdinFromBuffer();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_msIO_stripStdoutBufferContentType() {
-  char * jresult ;
-  char *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (char *)msIO_stripStdoutBufferContentType();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  free(result);
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msIO_stripStdoutBufferContentHeaders() {
-  {
-    errorObj *ms_error;
-    msIO_stripStdoutBufferContentHeaders();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_msIO_getStdoutBufferString() {
-  char * jresult ;
-  char *result = 0 ;
-  
-  {
-    errorObj *ms_error;
-    result = (char *)msIO_getStdoutBufferString();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return 0;
-      }
-      msResetErrorList();
-    }
-  }
-  jresult = SWIG_csharp_string_callback((const char *)result); 
-  return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_msIO_getStdoutBufferBytes() {
-  gdBuffer result;
-  
-  {
-    errorObj *ms_error;
-    result = msIO_getStdoutBufferBytes();
-    ms_error = msGetErrorObj();
-    if (ms_error != NULL && ms_error->code != MS_NOERR) {
-      if (ms_error->code != MS_NOTFOUND && ms_error->code != -1) {
-        char* msg = msGetErrorString(";"); 
-        if (msg) {
-          SWIG_CSharpException(SWIG_SystemError, msg);
-          free(msg);
-        }
-        else SWIG_CSharpException(SWIG_SystemError, "MapScript unknown error");
-        msResetErrorList();
-        return ;
-      }
-      msResetErrorList();
-    }
-  }
-  SWIG_csharp_bytearray_callback((&result)->data, (&result)->size);
-  if( (&result)->owns_data ) msFree((&result)->data); 
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
diff --git a/mapscript/csharp/markerCacheMemberObj.cs b/mapscript/csharp/markerCacheMemberObj.cs
deleted file mode 100644
index c5dd77b..0000000
--- a/mapscript/csharp/markerCacheMemberObj.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class markerCacheMemberObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal markerCacheMemberObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(markerCacheMemberObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(markerCacheMemberObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(markerCacheMemberObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~markerCacheMemberObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_markerCacheMemberObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(markerCacheMemberObj.getCPtr((markerCacheMemberObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int id {
-    get {
-      int ret = mapscriptPINVOKE.markerCacheMemberObj_id_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public shapeObj poly {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.markerCacheMemberObj_poly_get(swigCPtr);
-      shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public markerCacheMemberObj() : this(mapscriptPINVOKE.new_markerCacheMemberObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/outputFormatObj.cs b/mapscript/csharp/outputFormatObj.cs
deleted file mode 100644
index 96f26e2..0000000
--- a/mapscript/csharp/outputFormatObj.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class outputFormatObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal outputFormatObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(outputFormatObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(outputFormatObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(outputFormatObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~outputFormatObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_outputFormatObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(outputFormatObj.getCPtr((outputFormatObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numformatoptions {
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_numformatoptions_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.outputFormatObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.outputFormatObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string mimetype {
-    set {
-      mapscriptPINVOKE.outputFormatObj_mimetype_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.outputFormatObj_mimetype_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string driver {
-    set {
-      mapscriptPINVOKE.outputFormatObj_driver_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.outputFormatObj_driver_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string extension {
-    set {
-      mapscriptPINVOKE.outputFormatObj_extension_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.outputFormatObj_extension_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int renderer {
-    set {
-      mapscriptPINVOKE.outputFormatObj_renderer_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_renderer_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int imagemode {
-    set {
-      mapscriptPINVOKE.outputFormatObj_imagemode_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_imagemode_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int transparent {
-    set {
-      mapscriptPINVOKE.outputFormatObj_transparent_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_transparent_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int bands {
-    set {
-      mapscriptPINVOKE.outputFormatObj_bands_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_bands_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int inmapfile {
-    set {
-      mapscriptPINVOKE.outputFormatObj_inmapfile_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.outputFormatObj_inmapfile_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public outputFormatObj(string driver, string name) : this(mapscriptPINVOKE.new_outputFormatObj(driver, name), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void setExtension(string extension) {
-    mapscriptPINVOKE.outputFormatObj_setExtension(swigCPtr, extension);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void setMimetype(string mimetype) {
-    mapscriptPINVOKE.outputFormatObj_setMimetype(swigCPtr, mimetype);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public void setOption(string key, string value) {
-    mapscriptPINVOKE.outputFormatObj_setOption(swigCPtr, key, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int validate() {
-    int ret = mapscriptPINVOKE.outputFormatObj_validate(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getOption(string key, string value) {
-    string ret = mapscriptPINVOKE.outputFormatObj_getOption(swigCPtr, key, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getOptionAt(int i) {
-    string ret = mapscriptPINVOKE.outputFormatObj_getOptionAt(swigCPtr, i);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void attachDevice(IntPtr device) {
-    mapscriptPINVOKE.outputFormatObj_attachDevice(swigCPtr, device);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/pointObj.cs b/mapscript/csharp/pointObj.cs
deleted file mode 100644
index 14fea12..0000000
--- a/mapscript/csharp/pointObj.cs
+++ /dev/null
@@ -1,174 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class pointObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal pointObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(pointObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(pointObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(pointObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~pointObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_pointObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(pointObj.getCPtr((pointObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double x {
-    set {
-      mapscriptPINVOKE.pointObj_x_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.pointObj_x_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double y {
-    set {
-      mapscriptPINVOKE.pointObj_y_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.pointObj_y_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public pointObj(double x, double y, double z, double m) : this(mapscriptPINVOKE.new_pointObj(x, y, z, m), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int project(projectionObj projin, projectionObj projout) {
-    int ret = mapscriptPINVOKE.pointObj_project(swigCPtr, projectionObj.getCPtr(projin), projectionObj.getCPtr(projout));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int draw(mapObj map, layerObj layer, imageObj image, int classindex, string text) {
-    int ret = mapscriptPINVOKE.pointObj_draw(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), imageObj.getCPtr(image), classindex, text);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double distanceToPoint(pointObj point) {
-    double ret = mapscriptPINVOKE.pointObj_distanceToPoint(swigCPtr, pointObj.getCPtr(point));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double distanceToSegment(pointObj a, pointObj b) {
-    double ret = mapscriptPINVOKE.pointObj_distanceToSegment(swigCPtr, pointObj.getCPtr(a), pointObj.getCPtr(b));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double distanceToShape(shapeObj shape) {
-    double ret = mapscriptPINVOKE.pointObj_distanceToShape(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setXY(double x, double y, double m) {
-    int ret = mapscriptPINVOKE.pointObj_setXY(swigCPtr, x, y, m);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setXYZ(double x, double y, double z, double m) {
-    int ret = mapscriptPINVOKE.pointObj_setXYZ(swigCPtr, x, y, z, m);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setXYZM(double x, double y, double z, double m) {
-    int ret = mapscriptPINVOKE.pointObj_setXYZM(swigCPtr, x, y, z, m);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string toString() {
-    string ret = mapscriptPINVOKE.pointObj_toString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj toShape() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.pointObj_toShape(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/projectionObj.cs b/mapscript/csharp/projectionObj.cs
deleted file mode 100644
index bb71765..0000000
--- a/mapscript/csharp/projectionObj.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class projectionObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal projectionObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(projectionObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(projectionObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(projectionObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~projectionObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_projectionObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(projectionObj.getCPtr((projectionObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numargs {
-    get {
-      int ret = mapscriptPINVOKE.projectionObj_numargs_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int automatic {
-    get {
-      int ret = mapscriptPINVOKE.projectionObj_automatic_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int wellknownprojection {
-    set {
-      mapscriptPINVOKE.projectionObj_wellknownprojection_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.projectionObj_wellknownprojection_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public projectionObj(string proj4) : this(mapscriptPINVOKE.new_projectionObj(proj4), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int setWKTProjection(string wkt) {
-    int ret = mapscriptPINVOKE.projectionObj_setWKTProjection(swigCPtr, wkt);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getUnits() {
-    int ret = mapscriptPINVOKE.projectionObj_getUnits(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/queryMapObj.cs b/mapscript/csharp/queryMapObj.cs
deleted file mode 100644
index 1a79210..0000000
--- a/mapscript/csharp/queryMapObj.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class queryMapObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal queryMapObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(queryMapObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(queryMapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(queryMapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~queryMapObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_queryMapObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(queryMapObj.getCPtr((queryMapObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.queryMapObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.queryMapObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.queryMapObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.queryMapObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.queryMapObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.queryMapObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int style {
-    set {
-      mapscriptPINVOKE.queryMapObj_style_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.queryMapObj_style_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.queryMapObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.queryMapObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.queryMapObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.queryMapObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public queryMapObj() : this(mapscriptPINVOKE.new_queryMapObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/rectObj.cs b/mapscript/csharp/rectObj.cs
deleted file mode 100644
index 1df813e..0000000
--- a/mapscript/csharp/rectObj.cs
+++ /dev/null
@@ -1,176 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class rectObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal rectObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(rectObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(rectObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(rectObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~rectObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_rectObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(rectObj.getCPtr((rectObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double minx {
-    set {
-      mapscriptPINVOKE.rectObj_minx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.rectObj_minx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double miny {
-    set {
-      mapscriptPINVOKE.rectObj_miny_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.rectObj_miny_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxx {
-    set {
-      mapscriptPINVOKE.rectObj_maxx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.rectObj_maxx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxy {
-    set {
-      mapscriptPINVOKE.rectObj_maxy_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.rectObj_maxy_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj(double minx, double miny, double maxx, double maxy, int imageunits) : this(mapscriptPINVOKE.new_rectObj(minx, miny, maxx, maxy, imageunits), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int project(projectionObj projin, projectionObj projout) {
-    int ret = mapscriptPINVOKE.rectObj_project(swigCPtr, projectionObj.getCPtr(projin), projectionObj.getCPtr(projout));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double fit(int width, int height) {
-    double ret = mapscriptPINVOKE.rectObj_fit(swigCPtr, width, height);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int draw(mapObj map, layerObj layer, imageObj image, int classindex, string text) {
-    int ret = mapscriptPINVOKE.rectObj_draw(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), imageObj.getCPtr(image), classindex, text);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public pointObj getCenter() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.rectObj_getCenter(swigCPtr);
-    pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj toPolygon() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.rectObj_toPolygon(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string toString() {
-    string ret = mapscriptPINVOKE.rectObj_toString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/referenceMapObj.cs b/mapscript/csharp/referenceMapObj.cs
deleted file mode 100644
index 10420ce..0000000
--- a/mapscript/csharp/referenceMapObj.cs
+++ /dev/null
@@ -1,260 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class referenceMapObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal referenceMapObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(referenceMapObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(referenceMapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(referenceMapObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~referenceMapObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_referenceMapObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(referenceMapObj.getCPtr((referenceMapObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public rectObj extent {
-    set {
-      mapscriptPINVOKE.referenceMapObj_extent_set(swigCPtr, rectObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.referenceMapObj_extent_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.referenceMapObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.referenceMapObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.referenceMapObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.referenceMapObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.referenceMapObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.referenceMapObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string image {
-    set {
-      mapscriptPINVOKE.referenceMapObj_image_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.referenceMapObj_image_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.referenceMapObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int marker {
-    set {
-      mapscriptPINVOKE.referenceMapObj_marker_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_marker_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string markername {
-    set {
-      mapscriptPINVOKE.referenceMapObj_markername_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.referenceMapObj_markername_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int markersize {
-    set {
-      mapscriptPINVOKE.referenceMapObj_markersize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_markersize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int minboxsize {
-    set {
-      mapscriptPINVOKE.referenceMapObj_minboxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_minboxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxboxsize {
-    set {
-      mapscriptPINVOKE.referenceMapObj_maxboxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.referenceMapObj_maxboxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public mapObj map {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.referenceMapObj_map_get(swigCPtr);
-      mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.referenceMapObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.referenceMapObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public referenceMapObj() : this(mapscriptPINVOKE.new_referenceMapObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/resultCacheObj.cs b/mapscript/csharp/resultCacheObj.cs
deleted file mode 100644
index 547393c..0000000
--- a/mapscript/csharp/resultCacheObj.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class resultCacheObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal resultCacheObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(resultCacheObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(resultCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(resultCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~resultCacheObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_resultCacheObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(resultCacheObj.getCPtr((resultCacheObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numresults {
-    get {
-      int ret = mapscriptPINVOKE.resultCacheObj_numresults_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj bounds {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.resultCacheObj_bounds_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int usegetshape {
-    set {
-      mapscriptPINVOKE.resultCacheObj_usegetshape_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.resultCacheObj_usegetshape_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public resultObj getResult(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.resultCacheObj_getResult(swigCPtr, i);
-    resultObj ret = (cPtr == IntPtr.Zero) ? null : new resultObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public resultCacheObj() : this(mapscriptPINVOKE.new_resultCacheObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/resultObj.cs b/mapscript/csharp/resultObj.cs
deleted file mode 100644
index 4acbd86..0000000
--- a/mapscript/csharp/resultObj.cs
+++ /dev/null
@@ -1,120 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class resultObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal resultObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(resultObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(resultObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(resultObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~resultObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_resultObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(resultObj.getCPtr((resultObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int shapeindex {
-    get {
-      int ret = mapscriptPINVOKE.resultObj_shapeindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int tileindex {
-    get {
-      int ret = mapscriptPINVOKE.resultObj_tileindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int resultindex {
-    get {
-      int ret = mapscriptPINVOKE.resultObj_resultindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int classindex {
-    get {
-      int ret = mapscriptPINVOKE.resultObj_classindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public resultObj(int shapeindex) : this(mapscriptPINVOKE.new_resultObj(shapeindex), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/scaleTokenEntryObj.cs b/mapscript/csharp/scaleTokenEntryObj.cs
deleted file mode 100644
index 4b17951..0000000
--- a/mapscript/csharp/scaleTokenEntryObj.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class scaleTokenEntryObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal scaleTokenEntryObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(scaleTokenEntryObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(scaleTokenEntryObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(scaleTokenEntryObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~scaleTokenEntryObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_scaleTokenEntryObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(scaleTokenEntryObj.getCPtr((scaleTokenEntryObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double minscale {
-    set {
-      mapscriptPINVOKE.scaleTokenEntryObj_minscale_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.scaleTokenEntryObj_minscale_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscale {
-    set {
-      mapscriptPINVOKE.scaleTokenEntryObj_maxscale_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.scaleTokenEntryObj_maxscale_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string value {
-    set {
-      mapscriptPINVOKE.scaleTokenEntryObj_value_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.scaleTokenEntryObj_value_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public scaleTokenEntryObj() : this(mapscriptPINVOKE.new_scaleTokenEntryObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/scaleTokenObj.cs b/mapscript/csharp/scaleTokenObj.cs
deleted file mode 100644
index dc7ae71..0000000
--- a/mapscript/csharp/scaleTokenObj.cs
+++ /dev/null
@@ -1,126 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class scaleTokenObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal scaleTokenObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(scaleTokenObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(scaleTokenObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(scaleTokenObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~scaleTokenObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_scaleTokenObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(scaleTokenObj.getCPtr((scaleTokenObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.scaleTokenObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.scaleTokenObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int n_entries {
-    set {
-      mapscriptPINVOKE.scaleTokenObj_n_entries_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scaleTokenObj_n_entries_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public scaleTokenEntryObj tokens {
-    set {
-      mapscriptPINVOKE.scaleTokenObj_tokens_set(swigCPtr, scaleTokenEntryObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.scaleTokenObj_tokens_get(swigCPtr);
-      scaleTokenEntryObj ret = (cPtr == IntPtr.Zero) ? null : new scaleTokenEntryObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public scaleTokenObj() : this(mapscriptPINVOKE.new_scaleTokenObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/scalebarObj.cs b/mapscript/csharp/scalebarObj.cs
deleted file mode 100644
index 68590d5..0000000
--- a/mapscript/csharp/scalebarObj.cs
+++ /dev/null
@@ -1,277 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class scalebarObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal scalebarObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(scalebarObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(scalebarObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(scalebarObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~scalebarObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_scalebarObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(scalebarObj.getCPtr((scalebarObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public colorObj imagecolor {
-    set {
-      mapscriptPINVOKE.scalebarObj_imagecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.scalebarObj_imagecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.scalebarObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.scalebarObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int style {
-    set {
-      mapscriptPINVOKE.scalebarObj_style_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_style_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int intervals {
-    set {
-      mapscriptPINVOKE.scalebarObj_intervals_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_intervals_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public labelObj label {
-    set {
-      mapscriptPINVOKE.scalebarObj_label_set(swigCPtr, labelObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE */
-    get {
-      labelObj ret = new labelObj(mapscriptPINVOKE.scalebarObj_label_get(swigCPtr), false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.scalebarObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.scalebarObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj backgroundcolor {
-    set {
-      mapscriptPINVOKE.scalebarObj_backgroundcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.scalebarObj_backgroundcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.scalebarObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.scalebarObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int units {
-    set {
-      mapscriptPINVOKE.scalebarObj_units_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_units_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int status {
-    set {
-      mapscriptPINVOKE.scalebarObj_status_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_status_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int position {
-    set {
-      mapscriptPINVOKE.scalebarObj_position_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_position_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int postlabelcache {
-    set {
-      mapscriptPINVOKE.scalebarObj_postlabelcache_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_postlabelcache_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int align {
-    set {
-      mapscriptPINVOKE.scalebarObj_align_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.scalebarObj_align_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.scalebarObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.scalebarObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public scalebarObj() : this(mapscriptPINVOKE.new_scalebarObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/shapeObj.cs b/mapscript/csharp/shapeObj.cs
deleted file mode 100644
index fbe57ed..0000000
--- a/mapscript/csharp/shapeObj.cs
+++ /dev/null
@@ -1,444 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class shapeObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal shapeObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(shapeObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(shapeObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(shapeObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~shapeObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_shapeObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(shapeObj.getCPtr((shapeObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int numlines {
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_numlines_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numvalues {
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_numvalues_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj bounds {
-    set {
-      mapscriptPINVOKE.shapeObj_bounds_set(swigCPtr, rectObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.shapeObj_bounds_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int type {
-    set {
-      mapscriptPINVOKE.shapeObj_type_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int index {
-    set {
-      mapscriptPINVOKE.shapeObj_index_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_index_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int tileindex {
-    set {
-      mapscriptPINVOKE.shapeObj_tileindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_tileindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int classindex {
-    set {
-      mapscriptPINVOKE.shapeObj_classindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_classindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string text {
-    set {
-      mapscriptPINVOKE.shapeObj_text_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.shapeObj_text_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int scratch {
-    set {
-      mapscriptPINVOKE.shapeObj_scratch_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_scratch_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int resultindex {
-    set {
-      mapscriptPINVOKE.shapeObj_resultindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.shapeObj_resultindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public shapeObj(int type) : this(mapscriptPINVOKE.new_shapeObj(type), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public static shapeObj fromWKT(string wkt) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_fromWKT(wkt);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int project(projectionObj projin, projectionObj projout) {
-    int ret = mapscriptPINVOKE.shapeObj_project(swigCPtr, projectionObj.getCPtr(projin), projectionObj.getCPtr(projout));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public lineObj get(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_get(swigCPtr, i);
-    lineObj ret = (cPtr == IntPtr.Zero) ? null : new lineObj(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int add(lineObj line) {
-    int ret = mapscriptPINVOKE.shapeObj_add(swigCPtr, lineObj.getCPtr(line));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int draw(mapObj map, layerObj layer, imageObj image) {
-    int ret = mapscriptPINVOKE.shapeObj_draw(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setBounds() {
-    mapscriptPINVOKE.shapeObj_setBounds(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public shapeObj clone() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_clone(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int copy(shapeObj dest) {
-    int ret = mapscriptPINVOKE.shapeObj_copy(swigCPtr, shapeObj.getCPtr(dest));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string toWKT() {
-    string ret = mapscriptPINVOKE.shapeObj_toWKT(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj buffer(double width) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_buffer(swigCPtr, width);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj simplify(double tolerance) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_simplify(swigCPtr, tolerance);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj topologyPreservingSimplify(double tolerance) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_topologyPreservingSimplify(swigCPtr, tolerance);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj convexHull() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_convexHull(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj boundary() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_boundary(swigCPtr);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public pointObj getCentroid() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_getCentroid(swigCPtr);
-    pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj Union(shapeObj shape) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_Union(swigCPtr, shapeObj.getCPtr(shape));
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj intersection(shapeObj shape) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_intersection(swigCPtr, shapeObj.getCPtr(shape));
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj difference(shapeObj shape) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_difference(swigCPtr, shapeObj.getCPtr(shape));
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj symDifference(shapeObj shape) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_symDifference(swigCPtr, shapeObj.getCPtr(shape));
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int contains(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_contains__SWIG_0(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int overlaps(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_overlaps(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int within(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_within(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int crosses(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_crosses(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int intersects(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_intersects(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int touches(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_touches(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int equals(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_equals(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int disjoint(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapeObj_disjoint(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double getArea() {
-    double ret = mapscriptPINVOKE.shapeObj_getArea(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double getLength() {
-    double ret = mapscriptPINVOKE.shapeObj_getLength(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getValue(int i) {
-    string ret = mapscriptPINVOKE.shapeObj_getValue(swigCPtr, i);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int contains(pointObj point) {
-    int ret = mapscriptPINVOKE.shapeObj_contains__SWIG_1(swigCPtr, pointObj.getCPtr(point));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double distanceToPoint(pointObj point) {
-    double ret = mapscriptPINVOKE.shapeObj_distanceToPoint(swigCPtr, pointObj.getCPtr(point));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public double distanceToShape(shapeObj shape) {
-    double ret = mapscriptPINVOKE.shapeObj_distanceToShape(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public pointObj getLabelPoint() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapeObj_getLabelPoint(swigCPtr);
-    pointObj ret = (cPtr == IntPtr.Zero) ? null : new pointObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setValue(int i, string value) {
-    int ret = mapscriptPINVOKE.shapeObj_setValue(swigCPtr, i, value);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void initValues(int numvalues) {
-    mapscriptPINVOKE.shapeObj_initValues(swigCPtr, numvalues);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/shapefileObj.cs b/mapscript/csharp/shapefileObj.cs
deleted file mode 100644
index 9f28d58..0000000
--- a/mapscript/csharp/shapefileObj.cs
+++ /dev/null
@@ -1,209 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class shapefileObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal shapefileObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(shapefileObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(shapefileObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(shapefileObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~shapefileObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_shapefileObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(shapefileObj.getCPtr((shapefileObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string source {
-    get {
-      string ret = mapscriptPINVOKE.shapefileObj_source_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int type {
-    get {
-      int ret = mapscriptPINVOKE.shapefileObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numshapes {
-    get {
-      int ret = mapscriptPINVOKE.shapefileObj_numshapes_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj bounds {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.shapefileObj_bounds_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int lastshape {
-    get {
-      int ret = mapscriptPINVOKE.shapefileObj_lastshape_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_uint32_t status {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.shapefileObj_status_get(swigCPtr);
-      SWIGTYPE_p_uint32_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_uint32_t(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj statusbounds {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.shapefileObj_statusbounds_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int isopen {
-    get {
-      int ret = mapscriptPINVOKE.shapefileObj_isopen_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public shapefileObj(string filename, int type) : this(mapscriptPINVOKE.new_shapefileObj(filename, type), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int get(int i, shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapefileObj_get(swigCPtr, i, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public shapeObj getShape(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapefileObj_getShape(swigCPtr, i);
-    shapeObj ret = (cPtr == IntPtr.Zero) ? null : new shapeObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getPoint(int i, pointObj point) {
-    int ret = mapscriptPINVOKE.shapefileObj_getPoint(swigCPtr, i, pointObj.getCPtr(point));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int getTransformed(mapObj map, int i, shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapefileObj_getTransformed(swigCPtr, mapObj.getCPtr(map), i, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void getExtent(int i, rectObj rect) {
-    mapscriptPINVOKE.shapefileObj_getExtent(swigCPtr, i, rectObj.getCPtr(rect));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int add(shapeObj shape) {
-    int ret = mapscriptPINVOKE.shapefileObj_add(swigCPtr, shapeObj.getCPtr(shape));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int addPoint(pointObj point) {
-    int ret = mapscriptPINVOKE.shapefileObj_addPoint(swigCPtr, pointObj.getCPtr(point));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public DBFInfo getDBF() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.shapefileObj_getDBF(swigCPtr);
-    DBFInfo ret = (cPtr == IntPtr.Zero) ? null : new DBFInfo(cPtr, false, ThisOwn_false());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/strokeStyleObj.cs b/mapscript/csharp/strokeStyleObj.cs
deleted file mode 100644
index d41057d..0000000
--- a/mapscript/csharp/strokeStyleObj.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class strokeStyleObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal strokeStyleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(strokeStyleObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(strokeStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(strokeStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~strokeStyleObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_strokeStyleObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(strokeStyleObj.getCPtr((strokeStyleObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public double width {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.strokeStyleObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int patternlength {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_patternlength_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.strokeStyleObj_patternlength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double[] pattern {
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.strokeStyleObj_pattern_get(swigCPtr);
-      double[] ret = new double[patternlength];
-      if (patternlength > 0) {       
-	        System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, patternlength);
-      }
-      
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-    set {
-      IntPtr cPtr = mapscriptPINVOKE.strokeStyleObj_pattern_get(swigCPtr);
-      if (value.Length > 0) {       
-	        System.Runtime.InteropServices.Marshal.Copy(value, 0, cPtr, value.Length);
-      }
-      patternlength = value.Length;
-      
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    }
-    
-  }
-
-  public double patternoffset {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_patternoffset_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.strokeStyleObj_patternoffset_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.strokeStyleObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int linecap {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_linecap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.strokeStyleObj_linecap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int linejoin {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_linejoin_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.strokeStyleObj_linejoin_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double linejoinmaxsize {
-    set {
-      mapscriptPINVOKE.strokeStyleObj_linejoinmaxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.strokeStyleObj_linejoinmaxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public strokeStyleObj() : this(mapscriptPINVOKE.new_strokeStyleObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/styleObj.cs b/mapscript/csharp/styleObj.cs
deleted file mode 100644
index 0311f50..0000000
--- a/mapscript/csharp/styleObj.cs
+++ /dev/null
@@ -1,605 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class styleObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal styleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(styleObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(styleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(styleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~styleObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_styleObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(styleObj.getCPtr((styleObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.styleObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int autoangle {
-    set {
-      mapscriptPINVOKE.styleObj_autoangle_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_autoangle_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.styleObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj backgroundcolor {
-    set {
-      mapscriptPINVOKE.styleObj_backgroundcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_backgroundcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.styleObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int opacity {
-    set {
-      mapscriptPINVOKE.styleObj_opacity_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_opacity_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj mincolor {
-    set {
-      mapscriptPINVOKE.styleObj_mincolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_mincolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj maxcolor {
-    set {
-      mapscriptPINVOKE.styleObj_maxcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_maxcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minvalue {
-    set {
-      mapscriptPINVOKE.styleObj_minvalue_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_minvalue_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxvalue {
-    set {
-      mapscriptPINVOKE.styleObj_maxvalue_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_maxvalue_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string rangeitem {
-    set {
-      mapscriptPINVOKE.styleObj_rangeitem_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.styleObj_rangeitem_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int rangeitemindex {
-    set {
-      mapscriptPINVOKE.styleObj_rangeitemindex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_rangeitemindex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int symbol {
-    set {
-      mapscriptPINVOKE.styleObj_symbol_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_symbol_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string symbolname {
-    set {
-      mapscriptPINVOKE.styleObj_symbolname_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.styleObj_symbolname_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double size {
-    set {
-      mapscriptPINVOKE.styleObj_size_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_size_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minsize {
-    set {
-      mapscriptPINVOKE.styleObj_minsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_minsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxsize {
-    set {
-      mapscriptPINVOKE.styleObj_maxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_maxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int patternlength {
-    set {
-      mapscriptPINVOKE.styleObj_patternlength_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_patternlength_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double[] pattern {
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_pattern_get(swigCPtr);
-      double[] ret = new double[patternlength];
-      if (patternlength > 0) {       
-	        System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, patternlength);
-      }
-      
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-    set {
-      IntPtr cPtr = mapscriptPINVOKE.styleObj_pattern_get(swigCPtr);
-      if (value.Length > 0) {       
-	        System.Runtime.InteropServices.Marshal.Copy(value, 0, cPtr, value.Length);
-      }
-      patternlength = value.Length;
-      
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    }
-    
-  }
-
-  public double gap {
-    set {
-      mapscriptPINVOKE.styleObj_gap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_gap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double initialgap {
-    set {
-      mapscriptPINVOKE.styleObj_initialgap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_initialgap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int position {
-    set {
-      mapscriptPINVOKE.styleObj_position_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_position_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int linecap {
-    set {
-      mapscriptPINVOKE.styleObj_linecap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_linecap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int linejoin {
-    set {
-      mapscriptPINVOKE.styleObj_linejoin_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_linejoin_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double linejoinmaxsize {
-    set {
-      mapscriptPINVOKE.styleObj_linejoinmaxsize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_linejoinmaxsize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double width {
-    set {
-      mapscriptPINVOKE.styleObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double outlinewidth {
-    set {
-      mapscriptPINVOKE.styleObj_outlinewidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_outlinewidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minwidth {
-    set {
-      mapscriptPINVOKE.styleObj_minwidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_minwidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxwidth {
-    set {
-      mapscriptPINVOKE.styleObj_maxwidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_maxwidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double offsetx {
-    set {
-      mapscriptPINVOKE.styleObj_offsetx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_offsetx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double offsety {
-    set {
-      mapscriptPINVOKE.styleObj_offsety_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_offsety_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double polaroffsetpixel {
-    set {
-      mapscriptPINVOKE.styleObj_polaroffsetpixel_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_polaroffsetpixel_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double polaroffsetangle {
-    set {
-      mapscriptPINVOKE.styleObj_polaroffsetangle_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_polaroffsetangle_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double angle {
-    set {
-      mapscriptPINVOKE.styleObj_angle_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_angle_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int antialias {
-    set {
-      mapscriptPINVOKE.styleObj_antialias_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.styleObj_antialias_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minscaledenom {
-    set {
-      mapscriptPINVOKE.styleObj_minscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_minscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscaledenom {
-    set {
-      mapscriptPINVOKE.styleObj_maxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.styleObj_maxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public styleObj(classObj parent_class) : this(mapscriptPINVOKE.new_styleObj(classObj.getCPtr(parent_class)), true, parent_class) {
-  
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-}
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.styleObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.styleObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public styleObj clone() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.styleObj_clone(swigCPtr);
-    styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setSymbolByName(mapObj map, string symbolname) {
-    int ret = mapscriptPINVOKE.styleObj_setSymbolByName(swigCPtr, mapObj.getCPtr(map), symbolname);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int removeBinding(int binding) {
-    int ret = mapscriptPINVOKE.styleObj_removeBinding(swigCPtr, binding);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setBinding(int binding, string item) {
-    int ret = mapscriptPINVOKE.styleObj_setBinding(swigCPtr, binding, item);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getBinding(int binding) {
-    string ret = mapscriptPINVOKE.styleObj_getBinding(swigCPtr, binding);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string getGeomTransform() {
-    string ret = mapscriptPINVOKE.styleObj_getGeomTransform(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public void setGeomTransform(string transform) {
-    mapscriptPINVOKE.styleObj_setGeomTransform(swigCPtr, transform);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/symbolObj.cs b/mapscript/csharp/symbolObj.cs
deleted file mode 100644
index 06c4fc0..0000000
--- a/mapscript/csharp/symbolObj.cs
+++ /dev/null
@@ -1,350 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class symbolObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal symbolObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(symbolObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(symbolObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(symbolObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~symbolObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_symbolObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(symbolObj.getCPtr((symbolObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string name {
-    set {
-      mapscriptPINVOKE.symbolObj_name_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.symbolObj_name_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int type {
-    set {
-      mapscriptPINVOKE.symbolObj_type_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_type_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int inmapfile {
-    set {
-      mapscriptPINVOKE.symbolObj_inmapfile_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_inmapfile_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double sizex {
-    set {
-      mapscriptPINVOKE.symbolObj_sizex_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_sizex_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double sizey {
-    set {
-      mapscriptPINVOKE.symbolObj_sizey_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_sizey_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minx {
-    set {
-      mapscriptPINVOKE.symbolObj_minx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_minx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double miny {
-    set {
-      mapscriptPINVOKE.symbolObj_miny_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_miny_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxx {
-    set {
-      mapscriptPINVOKE.symbolObj_maxx_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_maxx_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxy {
-    set {
-      mapscriptPINVOKE.symbolObj_maxy_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_maxy_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int refcount {
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_refcount_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numpoints {
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_numpoints_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int filled {
-    set {
-      mapscriptPINVOKE.symbolObj_filled_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_filled_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double anchorpoint_x {
-    set {
-      mapscriptPINVOKE.symbolObj_anchorpoint_x_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_anchorpoint_x_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double anchorpoint_y {
-    set {
-      mapscriptPINVOKE.symbolObj_anchorpoint_y_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolObj_anchorpoint_y_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imagepath {
-    get {
-      string ret = mapscriptPINVOKE.symbolObj_imagepath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int transparent {
-    set {
-      mapscriptPINVOKE.symbolObj_transparent_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_transparent_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int transparentcolor {
-    set {
-      mapscriptPINVOKE.symbolObj_transparentcolor_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_transparentcolor_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string character {
-    set {
-      mapscriptPINVOKE.symbolObj_character_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.symbolObj_character_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int antialias {
-    set {
-      mapscriptPINVOKE.symbolObj_antialias_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolObj_antialias_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string font {
-    set {
-      mapscriptPINVOKE.symbolObj_font_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.symbolObj_font_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public symbolObj(string symbolname, string imagefile) : this(mapscriptPINVOKE.new_symbolObj(symbolname, imagefile), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int setImagepath(string imagefile) {
-    int ret = mapscriptPINVOKE.symbolObj_setImagepath(swigCPtr, imagefile);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setPoints(lineObj line) {
-    int ret = mapscriptPINVOKE.symbolObj_setPoints(swigCPtr, lineObj.getCPtr(line));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public lineObj getPoints() {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.symbolObj_getPoints(swigCPtr);
-    lineObj ret = (cPtr == IntPtr.Zero) ? null : new lineObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public imageObj getImage(outputFormatObj input_format) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.symbolObj_getImage(swigCPtr, outputFormatObj.getCPtr(input_format));
-    imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int setImage(imageObj image) {
-    int ret = mapscriptPINVOKE.symbolObj_setImage(swigCPtr, imageObj.getCPtr(image));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/symbolSetObj.cs b/mapscript/csharp/symbolSetObj.cs
deleted file mode 100644
index d01a895..0000000
--- a/mapscript/csharp/symbolSetObj.cs
+++ /dev/null
@@ -1,170 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class symbolSetObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal symbolSetObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(symbolSetObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(symbolSetObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(symbolSetObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~symbolSetObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_symbolSetObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(symbolSetObj.getCPtr((symbolSetObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string filename {
-    set {
-      mapscriptPINVOKE.symbolSetObj_filename_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.symbolSetObj_filename_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int imagecachesize {
-    set {
-      mapscriptPINVOKE.symbolSetObj_imagecachesize_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.symbolSetObj_imagecachesize_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int numsymbols {
-    get {
-      int ret = mapscriptPINVOKE.symbolSetObj_numsymbols_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int maxsymbols {
-    get {
-      int ret = mapscriptPINVOKE.symbolSetObj_maxsymbols_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public symbolSetObj(string symbolfile) : this(mapscriptPINVOKE.new_symbolSetObj(symbolfile), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public symbolObj getSymbol(int i) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_getSymbol(swigCPtr, i);
-    symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public symbolObj getSymbolByName(string symbolname) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_getSymbolByName(swigCPtr, symbolname);
-    symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int index(string symbolname) {
-    int ret = mapscriptPINVOKE.symbolSetObj_index(swigCPtr, symbolname);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int appendSymbol(symbolObj symbol) {
-    int ret = mapscriptPINVOKE.symbolSetObj_appendSymbol(swigCPtr, symbolObj.getCPtr(symbol));
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public symbolObj removeSymbol(int index) {
-    /* %typemap(csout, excode=SWIGEXCODE, new="1") SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    IntPtr cPtr = mapscriptPINVOKE.symbolSetObj_removeSymbol(swigCPtr, index);
-    symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, true, ThisOwn_true());
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public int save(string filename) {
-    int ret = mapscriptPINVOKE.symbolSetObj_save(swigCPtr, filename);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/csharp/symbolStyleObj.cs b/mapscript/csharp/symbolStyleObj.cs
deleted file mode 100644
index 1e6899e..0000000
--- a/mapscript/csharp/symbolStyleObj.cs
+++ /dev/null
@@ -1,192 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class symbolStyleObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal symbolStyleObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(symbolStyleObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(symbolStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(symbolStyleObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~symbolStyleObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_symbolStyleObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(symbolStyleObj.getCPtr((symbolStyleObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.symbolStyleObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj backgroundcolor {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_backgroundcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.symbolStyleObj_backgroundcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double outlinewidth {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_outlinewidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolStyleObj_outlinewidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.symbolStyleObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double scale {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_scale_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolStyleObj_scale_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double rotation {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_rotation_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolStyleObj_rotation_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double gap {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_gap_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.symbolStyleObj_gap_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public styleObj style {
-    set {
-      mapscriptPINVOKE.symbolStyleObj_style_set(swigCPtr, styleObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.symbolStyleObj_style_get(swigCPtr);
-      styleObj ret = (cPtr == IntPtr.Zero) ? null : new styleObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public symbolStyleObj() : this(mapscriptPINVOKE.new_symbolStyleObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/tileCacheObj.cs b/mapscript/csharp/tileCacheObj.cs
deleted file mode 100644
index ff6420e..0000000
--- a/mapscript/csharp/tileCacheObj.cs
+++ /dev/null
@@ -1,232 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class tileCacheObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal tileCacheObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(tileCacheObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(tileCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(tileCacheObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~tileCacheObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_tileCacheObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(tileCacheObj.getCPtr((tileCacheObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public symbolObj symbol {
-    set {
-      mapscriptPINVOKE.tileCacheObj_symbol_set(swigCPtr, symbolObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_symbol_get(swigCPtr);
-      symbolObj ret = (cPtr == IntPtr.Zero) ? null : new symbolObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int width {
-    set {
-      mapscriptPINVOKE.tileCacheObj_width_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.tileCacheObj_width_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public int height {
-    set {
-      mapscriptPINVOKE.tileCacheObj_height_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      int ret = mapscriptPINVOKE.tileCacheObj_height_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj color {
-    set {
-      mapscriptPINVOKE.tileCacheObj_color_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_color_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj outlinecolor {
-    set {
-      mapscriptPINVOKE.tileCacheObj_outlinecolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_outlinecolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public colorObj backgroundcolor {
-    set {
-      mapscriptPINVOKE.tileCacheObj_backgroundcolor_set(swigCPtr, colorObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_backgroundcolor_get(swigCPtr);
-      colorObj ret = (cPtr == IntPtr.Zero) ? null : new colorObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double outlinewidth {
-    set {
-      mapscriptPINVOKE.tileCacheObj_outlinewidth_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.tileCacheObj_outlinewidth_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double rotation {
-    set {
-      mapscriptPINVOKE.tileCacheObj_rotation_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.tileCacheObj_rotation_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double scale {
-    set {
-      mapscriptPINVOKE.tileCacheObj_scale_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.tileCacheObj_scale_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public imageObj image {
-    set {
-      mapscriptPINVOKE.tileCacheObj_image_set(swigCPtr, imageObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_image_get(swigCPtr);
-      imageObj ret = (cPtr == IntPtr.Zero) ? null : new imageObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public SWIGTYPE_p_tileCacheObj next {
-    set {
-      mapscriptPINVOKE.tileCacheObj_next_set(swigCPtr, SWIGTYPE_p_tileCacheObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.tileCacheObj_next_get(swigCPtr);
-      SWIGTYPE_p_tileCacheObj ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_tileCacheObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public tileCacheObj() : this(mapscriptPINVOKE.new_tileCacheObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-}
diff --git a/mapscript/csharp/webObj.cs b/mapscript/csharp/webObj.cs
deleted file mode 100644
index de1e80e..0000000
--- a/mapscript/csharp/webObj.cs
+++ /dev/null
@@ -1,336 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-using System;
-using System.Runtime.InteropServices;
-
-public class webObj : IDisposable {
-  /* %typemap(csbody) SWIGTYPE */
-  private HandleRef swigCPtr;
-  protected bool swigCMemOwn;
-  protected object swigParentRef;
-  
-  protected static object ThisOwn_true() { return null; }
-  protected object ThisOwn_false() { return this; }
-
-  internal webObj(IntPtr cPtr, bool cMemoryOwn, object parent) {
-    swigCMemOwn = cMemoryOwn;
-    swigParentRef = parent;
-    swigCPtr = new HandleRef(this, cPtr);
-  }
-
-  internal static HandleRef getCPtr(webObj obj) {
-    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
-  }
-  internal static HandleRef getCPtrAndDisown(webObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigCMemOwn = false;
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-  internal static HandleRef getCPtrAndSetReference(webObj obj, object parent) {
-    if (obj != null)
-    {
-      obj.swigParentRef = parent;
-      return obj.swigCPtr;
-    }
-    else
-    {
-      return new HandleRef(null, IntPtr.Zero);
-    }
-  }
-
-  /* %typemap(csfinalize) SWIGTYPE */
-  ~webObj() {
-    Dispose();
-  }
-
-  public virtual void Dispose() {
-  lock(this) {
-      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
-        swigCMemOwn = false;
-        mapscriptPINVOKE.delete_webObj(swigCPtr);
-      }
-      swigCPtr = new HandleRef(null, IntPtr.Zero);
-      swigParentRef = null;
-      GC.SuppressFinalize(this);
-    }
-  }
-
-  public override bool Equals(object obj) {
-    if (obj == null)
-        return false;
-    if (this.GetType() != obj.GetType())
-        return false;
-    return swigCPtr.Handle.Equals(webObj.getCPtr((webObj)obj).Handle);
-  }
-
-  public override int GetHashCode() {
-    return swigCPtr.Handle.GetHashCode();
-  }
-
-  public string log {
-    set {
-      mapscriptPINVOKE.webObj_log_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_log_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imagepath {
-    set {
-      mapscriptPINVOKE.webObj_imagepath_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_imagepath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string imageurl {
-    set {
-      mapscriptPINVOKE.webObj_imageurl_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_imageurl_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string temppath {
-    set {
-      mapscriptPINVOKE.webObj_temppath_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_temppath_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public mapObj map {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.webObj_map_get(swigCPtr);
-      mapObj ret = (cPtr == IntPtr.Zero) ? null : new mapObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string template {
-    set {
-      mapscriptPINVOKE.webObj_template_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_template_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string header {
-    set {
-      mapscriptPINVOKE.webObj_header_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_header_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string footer {
-    set {
-      mapscriptPINVOKE.webObj_footer_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_footer_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string empty {
-    set {
-      mapscriptPINVOKE.webObj_empty_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_empty_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string error {
-    set {
-      mapscriptPINVOKE.webObj_error_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_error_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public rectObj extent {
-    set {
-      mapscriptPINVOKE.webObj_extent_set(swigCPtr, rectObj.getCPtr(value));
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.webObj_extent_get(swigCPtr);
-      rectObj ret = (cPtr == IntPtr.Zero) ? null : new rectObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double minscaledenom {
-    set {
-      mapscriptPINVOKE.webObj_minscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.webObj_minscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public double maxscaledenom {
-    set {
-      mapscriptPINVOKE.webObj_maxscaledenom_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      double ret = mapscriptPINVOKE.webObj_maxscaledenom_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string mintemplate {
-    set {
-      mapscriptPINVOKE.webObj_mintemplate_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_mintemplate_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string maxtemplate {
-    set {
-      mapscriptPINVOKE.webObj_maxtemplate_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_maxtemplate_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string queryformat {
-    set {
-      mapscriptPINVOKE.webObj_queryformat_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_queryformat_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string legendformat {
-    set {
-      mapscriptPINVOKE.webObj_legendformat_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_legendformat_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public string browseformat {
-    set {
-      mapscriptPINVOKE.webObj_browseformat_set(swigCPtr, value);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    } 
-    get {
-      string ret = mapscriptPINVOKE.webObj_browseformat_get(swigCPtr);
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj metadata {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.webObj_metadata_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public hashTableObj validation {
-    /* %typemap(csvarout, excode=SWIGEXCODE2) SWIGTYPE *, SWIGTYPE [], SWIGTYPE (CLASS::*) */
-    get {
-      IntPtr cPtr = mapscriptPINVOKE.webObj_validation_get(swigCPtr);
-      hashTableObj ret = (cPtr == IntPtr.Zero) ? null : new hashTableObj(cPtr, false, ThisOwn_false());
-      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-      return ret;
-    } 
-  }
-
-  public webObj() : this(mapscriptPINVOKE.new_webObj(), true, null) {
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-  }
-
-  public int updateFromString(string snippet) {
-    int ret = mapscriptPINVOKE.webObj_updateFromString(swigCPtr, snippet);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  public string convertToString() {
-    string ret = mapscriptPINVOKE.webObj_convertToString(swigCPtr);
-    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-}
diff --git a/mapscript/java/.gitignore b/mapscript/java/.gitignore
new file mode 100644
index 0000000..6b468b6
--- /dev/null
+++ b/mapscript/java/.gitignore
@@ -0,0 +1 @@
+*.class
diff --git a/mapscript/mapscript.i b/mapscript/mapscript.i
index 41134d0..14bff90 100644
--- a/mapscript/mapscript.i
+++ b/mapscript/mapscript.i
@@ -233,6 +233,7 @@ typedef struct {
 */
 
 %include "../../mapserver.h"
+%include "../../mapserver-version.h"
 %include "../../mapprimitive.h"
 %include "../../mapshape.h"
 %include "../../mapproject.h"
diff --git a/mapscript/perl/mapscript.pm b/mapscript/perl/mapscript.pm
deleted file mode 100644
index 0c4f5aa..0000000
--- a/mapscript/perl/mapscript.pm
+++ /dev/null
@@ -1,3149 +0,0 @@
-# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 2.0.7
-#
-# Do not make changes to this file unless you know what you are doing--modify
-# the SWIG interface file instead.
-
-package mapscript;
-use base qw(Exporter);
-use base qw(DynaLoader);
-package mapscriptc;
-bootstrap mapscript;
-package mapscript;
- at EXPORT = qw();
-
-# ---------- BASE METHODS -------------
-
-package mapscript;
-
-sub TIEHASH {
-    my ($classname,$obj) = @_;
-    return bless $obj, $classname;
-}
-
-sub CLEAR { }
-
-sub FIRSTKEY { }
-
-sub NEXTKEY { }
-
-sub FETCH {
-    my ($self,$field) = @_;
-    my $member_func = "swig_${field}_get";
-    $self->$member_func();
-}
-
-sub STORE {
-    my ($self,$field,$newval) = @_;
-    my $member_func = "swig_${field}_set";
-    $self->$member_func($newval);
-}
-
-sub this {
-    my $ptr = shift;
-    return tied(%$ptr);
-}
-
-
-# ------- FUNCTION WRAPPERS --------
-
-package mapscript;
-
-*msSaveImage = *mapscriptc::msSaveImage;
-*msFreeImage = *mapscriptc::msFreeImage;
-*msSetup = *mapscriptc::msSetup;
-*msCleanup = *mapscriptc::msCleanup;
-*msLoadMapFromString = *mapscriptc::msLoadMapFromString;
-*msGetErrorObj = *mapscriptc::msGetErrorObj;
-*msResetErrorList = *mapscriptc::msResetErrorList;
-*msGetVersion = *mapscriptc::msGetVersion;
-*msGetVersionInt = *mapscriptc::msGetVersionInt;
-*msGetErrorString = *mapscriptc::msGetErrorString;
-*msConnPoolCloseUnreferenced = *mapscriptc::msConnPoolCloseUnreferenced;
-*msIO_resetHandlers = *mapscriptc::msIO_resetHandlers;
-*msIO_installStdoutToBuffer = *mapscriptc::msIO_installStdoutToBuffer;
-*msIO_installStdinFromBuffer = *mapscriptc::msIO_installStdinFromBuffer;
-*msIO_stripStdoutBufferContentType = *mapscriptc::msIO_stripStdoutBufferContentType;
-*msIO_stripStdoutBufferContentHeaders = *mapscriptc::msIO_stripStdoutBufferContentHeaders;
-*msIO_getStdoutBufferString = *mapscriptc::msIO_getStdoutBufferString;
-*msIO_getStdoutBufferBytes = *mapscriptc::msIO_getStdoutBufferBytes;
-
-############# Class : mapscript::intarray ##############
-
-package mapscript::intarray;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_intarray(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_intarray($self);
-        delete $OWNER{$self};
-    }
-}
-
-*getitem = *mapscriptc::intarray_getitem;
-*setitem = *mapscriptc::intarray_setitem;
-*cast = *mapscriptc::intarray_cast;
-*frompointer = *mapscriptc::intarray_frompointer;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::fontSetObj ##############
-
-package mapscript::fontSetObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_filename_get = *mapscriptc::fontSetObj_filename_get;
-*swig_filename_set = *mapscriptc::fontSetObj_filename_set;
-*swig_numfonts_get = *mapscriptc::fontSetObj_numfonts_get;
-*swig_numfonts_set = *mapscriptc::fontSetObj_numfonts_set;
-*swig_fonts_get = *mapscriptc::fontSetObj_fonts_get;
-*swig_fonts_set = *mapscriptc::fontSetObj_fonts_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_fontSetObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_fontSetObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::clusterObj ##############
-
-package mapscript::clusterObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_maxdistance_get = *mapscriptc::clusterObj_maxdistance_get;
-*swig_maxdistance_set = *mapscriptc::clusterObj_maxdistance_set;
-*swig_buffer_get = *mapscriptc::clusterObj_buffer_get;
-*swig_buffer_set = *mapscriptc::clusterObj_buffer_set;
-*swig_region_get = *mapscriptc::clusterObj_region_get;
-*swig_region_set = *mapscriptc::clusterObj_region_set;
-*updateFromString = *mapscriptc::clusterObj_updateFromString;
-*convertToString = *mapscriptc::clusterObj_convertToString;
-*setGroup = *mapscriptc::clusterObj_setGroup;
-*getGroupString = *mapscriptc::clusterObj_getGroupString;
-*setFilter = *mapscriptc::clusterObj_setFilter;
-*getFilterString = *mapscriptc::clusterObj_getFilterString;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_clusterObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_clusterObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::outputFormatObj ##############
-
-package mapscript::outputFormatObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numformatoptions_get = *mapscriptc::outputFormatObj_numformatoptions_get;
-*swig_numformatoptions_set = *mapscriptc::outputFormatObj_numformatoptions_set;
-*swig_name_get = *mapscriptc::outputFormatObj_name_get;
-*swig_name_set = *mapscriptc::outputFormatObj_name_set;
-*swig_mimetype_get = *mapscriptc::outputFormatObj_mimetype_get;
-*swig_mimetype_set = *mapscriptc::outputFormatObj_mimetype_set;
-*swig_driver_get = *mapscriptc::outputFormatObj_driver_get;
-*swig_driver_set = *mapscriptc::outputFormatObj_driver_set;
-*swig_extension_get = *mapscriptc::outputFormatObj_extension_get;
-*swig_extension_set = *mapscriptc::outputFormatObj_extension_set;
-*swig_renderer_get = *mapscriptc::outputFormatObj_renderer_get;
-*swig_renderer_set = *mapscriptc::outputFormatObj_renderer_set;
-*swig_imagemode_get = *mapscriptc::outputFormatObj_imagemode_get;
-*swig_imagemode_set = *mapscriptc::outputFormatObj_imagemode_set;
-*swig_transparent_get = *mapscriptc::outputFormatObj_transparent_get;
-*swig_transparent_set = *mapscriptc::outputFormatObj_transparent_set;
-*swig_bands_get = *mapscriptc::outputFormatObj_bands_get;
-*swig_bands_set = *mapscriptc::outputFormatObj_bands_set;
-*swig_inmapfile_get = *mapscriptc::outputFormatObj_inmapfile_get;
-*swig_inmapfile_set = *mapscriptc::outputFormatObj_inmapfile_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_outputFormatObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_outputFormatObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*setExtension = *mapscriptc::outputFormatObj_setExtension;
-*setMimetype = *mapscriptc::outputFormatObj_setMimetype;
-*setOption = *mapscriptc::outputFormatObj_setOption;
-*validate = *mapscriptc::outputFormatObj_validate;
-*getOption = *mapscriptc::outputFormatObj_getOption;
-*getOptionAt = *mapscriptc::outputFormatObj_getOptionAt;
-*attachDevice = *mapscriptc::outputFormatObj_attachDevice;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::queryMapObj ##############
-
-package mapscript::queryMapObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_height_get = *mapscriptc::queryMapObj_height_get;
-*swig_height_set = *mapscriptc::queryMapObj_height_set;
-*swig_width_get = *mapscriptc::queryMapObj_width_get;
-*swig_width_set = *mapscriptc::queryMapObj_width_set;
-*swig_status_get = *mapscriptc::queryMapObj_status_get;
-*swig_status_set = *mapscriptc::queryMapObj_status_set;
-*swig_style_get = *mapscriptc::queryMapObj_style_get;
-*swig_style_set = *mapscriptc::queryMapObj_style_set;
-*swig_color_get = *mapscriptc::queryMapObj_color_get;
-*swig_color_set = *mapscriptc::queryMapObj_color_set;
-*updateFromString = *mapscriptc::queryMapObj_updateFromString;
-*convertToString = *mapscriptc::queryMapObj_convertToString;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_queryMapObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_queryMapObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::webObj ##############
-
-package mapscript::webObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_log_get = *mapscriptc::webObj_log_get;
-*swig_log_set = *mapscriptc::webObj_log_set;
-*swig_imagepath_get = *mapscriptc::webObj_imagepath_get;
-*swig_imagepath_set = *mapscriptc::webObj_imagepath_set;
-*swig_imageurl_get = *mapscriptc::webObj_imageurl_get;
-*swig_imageurl_set = *mapscriptc::webObj_imageurl_set;
-*swig_temppath_get = *mapscriptc::webObj_temppath_get;
-*swig_temppath_set = *mapscriptc::webObj_temppath_set;
-*swig_map_get = *mapscriptc::webObj_map_get;
-*swig_map_set = *mapscriptc::webObj_map_set;
-*swig_template_get = *mapscriptc::webObj_template_get;
-*swig_template_set = *mapscriptc::webObj_template_set;
-*swig_header_get = *mapscriptc::webObj_header_get;
-*swig_header_set = *mapscriptc::webObj_header_set;
-*swig_footer_get = *mapscriptc::webObj_footer_get;
-*swig_footer_set = *mapscriptc::webObj_footer_set;
-*swig_empty_get = *mapscriptc::webObj_empty_get;
-*swig_empty_set = *mapscriptc::webObj_empty_set;
-*swig_error_get = *mapscriptc::webObj_error_get;
-*swig_error_set = *mapscriptc::webObj_error_set;
-*swig_extent_get = *mapscriptc::webObj_extent_get;
-*swig_extent_set = *mapscriptc::webObj_extent_set;
-*swig_minscaledenom_get = *mapscriptc::webObj_minscaledenom_get;
-*swig_minscaledenom_set = *mapscriptc::webObj_minscaledenom_set;
-*swig_maxscaledenom_get = *mapscriptc::webObj_maxscaledenom_get;
-*swig_maxscaledenom_set = *mapscriptc::webObj_maxscaledenom_set;
-*swig_mintemplate_get = *mapscriptc::webObj_mintemplate_get;
-*swig_mintemplate_set = *mapscriptc::webObj_mintemplate_set;
-*swig_maxtemplate_get = *mapscriptc::webObj_maxtemplate_get;
-*swig_maxtemplate_set = *mapscriptc::webObj_maxtemplate_set;
-*swig_queryformat_get = *mapscriptc::webObj_queryformat_get;
-*swig_queryformat_set = *mapscriptc::webObj_queryformat_set;
-*swig_legendformat_get = *mapscriptc::webObj_legendformat_get;
-*swig_legendformat_set = *mapscriptc::webObj_legendformat_set;
-*swig_browseformat_get = *mapscriptc::webObj_browseformat_get;
-*swig_browseformat_set = *mapscriptc::webObj_browseformat_set;
-*swig_metadata_get = *mapscriptc::webObj_metadata_get;
-*swig_metadata_set = *mapscriptc::webObj_metadata_set;
-*swig_validation_get = *mapscriptc::webObj_validation_get;
-*swig_validation_set = *mapscriptc::webObj_validation_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_webObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_webObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*updateFromString = *mapscriptc::webObj_updateFromString;
-*convertToString = *mapscriptc::webObj_convertToString;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::styleObj ##############
-
-package mapscript::styleObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_refcount_get = *mapscriptc::styleObj_refcount_get;
-*swig_refcount_set = *mapscriptc::styleObj_refcount_set;
-*swig_autoangle_get = *mapscriptc::styleObj_autoangle_get;
-*swig_autoangle_set = *mapscriptc::styleObj_autoangle_set;
-*swig_color_get = *mapscriptc::styleObj_color_get;
-*swig_color_set = *mapscriptc::styleObj_color_set;
-*swig_backgroundcolor_get = *mapscriptc::styleObj_backgroundcolor_get;
-*swig_backgroundcolor_set = *mapscriptc::styleObj_backgroundcolor_set;
-*swig_outlinecolor_get = *mapscriptc::styleObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::styleObj_outlinecolor_set;
-*swig_opacity_get = *mapscriptc::styleObj_opacity_get;
-*swig_opacity_set = *mapscriptc::styleObj_opacity_set;
-*swig_mincolor_get = *mapscriptc::styleObj_mincolor_get;
-*swig_mincolor_set = *mapscriptc::styleObj_mincolor_set;
-*swig_maxcolor_get = *mapscriptc::styleObj_maxcolor_get;
-*swig_maxcolor_set = *mapscriptc::styleObj_maxcolor_set;
-*swig_minvalue_get = *mapscriptc::styleObj_minvalue_get;
-*swig_minvalue_set = *mapscriptc::styleObj_minvalue_set;
-*swig_maxvalue_get = *mapscriptc::styleObj_maxvalue_get;
-*swig_maxvalue_set = *mapscriptc::styleObj_maxvalue_set;
-*swig_rangeitem_get = *mapscriptc::styleObj_rangeitem_get;
-*swig_rangeitem_set = *mapscriptc::styleObj_rangeitem_set;
-*swig_rangeitemindex_get = *mapscriptc::styleObj_rangeitemindex_get;
-*swig_rangeitemindex_set = *mapscriptc::styleObj_rangeitemindex_set;
-*swig_symbol_get = *mapscriptc::styleObj_symbol_get;
-*swig_symbol_set = *mapscriptc::styleObj_symbol_set;
-*swig_symbolname_get = *mapscriptc::styleObj_symbolname_get;
-*swig_symbolname_set = *mapscriptc::styleObj_symbolname_set;
-*swig_size_get = *mapscriptc::styleObj_size_get;
-*swig_size_set = *mapscriptc::styleObj_size_set;
-*swig_minsize_get = *mapscriptc::styleObj_minsize_get;
-*swig_minsize_set = *mapscriptc::styleObj_minsize_set;
-*swig_maxsize_get = *mapscriptc::styleObj_maxsize_get;
-*swig_maxsize_set = *mapscriptc::styleObj_maxsize_set;
-*swig_patternlength_get = *mapscriptc::styleObj_patternlength_get;
-*swig_patternlength_set = *mapscriptc::styleObj_patternlength_set;
-*swig_pattern_get = *mapscriptc::styleObj_pattern_get;
-*swig_pattern_set = *mapscriptc::styleObj_pattern_set;
-*swig_gap_get = *mapscriptc::styleObj_gap_get;
-*swig_gap_set = *mapscriptc::styleObj_gap_set;
-*swig_initialgap_get = *mapscriptc::styleObj_initialgap_get;
-*swig_initialgap_set = *mapscriptc::styleObj_initialgap_set;
-*swig_position_get = *mapscriptc::styleObj_position_get;
-*swig_position_set = *mapscriptc::styleObj_position_set;
-*swig_linecap_get = *mapscriptc::styleObj_linecap_get;
-*swig_linecap_set = *mapscriptc::styleObj_linecap_set;
-*swig_linejoin_get = *mapscriptc::styleObj_linejoin_get;
-*swig_linejoin_set = *mapscriptc::styleObj_linejoin_set;
-*swig_linejoinmaxsize_get = *mapscriptc::styleObj_linejoinmaxsize_get;
-*swig_linejoinmaxsize_set = *mapscriptc::styleObj_linejoinmaxsize_set;
-*swig_width_get = *mapscriptc::styleObj_width_get;
-*swig_width_set = *mapscriptc::styleObj_width_set;
-*swig_outlinewidth_get = *mapscriptc::styleObj_outlinewidth_get;
-*swig_outlinewidth_set = *mapscriptc::styleObj_outlinewidth_set;
-*swig_minwidth_get = *mapscriptc::styleObj_minwidth_get;
-*swig_minwidth_set = *mapscriptc::styleObj_minwidth_set;
-*swig_maxwidth_get = *mapscriptc::styleObj_maxwidth_get;
-*swig_maxwidth_set = *mapscriptc::styleObj_maxwidth_set;
-*swig_offsetx_get = *mapscriptc::styleObj_offsetx_get;
-*swig_offsetx_set = *mapscriptc::styleObj_offsetx_set;
-*swig_offsety_get = *mapscriptc::styleObj_offsety_get;
-*swig_offsety_set = *mapscriptc::styleObj_offsety_set;
-*swig_polaroffsetpixel_get = *mapscriptc::styleObj_polaroffsetpixel_get;
-*swig_polaroffsetpixel_set = *mapscriptc::styleObj_polaroffsetpixel_set;
-*swig_polaroffsetangle_get = *mapscriptc::styleObj_polaroffsetangle_get;
-*swig_polaroffsetangle_set = *mapscriptc::styleObj_polaroffsetangle_set;
-*swig_angle_get = *mapscriptc::styleObj_angle_get;
-*swig_angle_set = *mapscriptc::styleObj_angle_set;
-*swig_antialias_get = *mapscriptc::styleObj_antialias_get;
-*swig_antialias_set = *mapscriptc::styleObj_antialias_set;
-*swig_minscaledenom_get = *mapscriptc::styleObj_minscaledenom_get;
-*swig_minscaledenom_set = *mapscriptc::styleObj_minscaledenom_set;
-*swig_maxscaledenom_get = *mapscriptc::styleObj_maxscaledenom_get;
-*swig_maxscaledenom_set = *mapscriptc::styleObj_maxscaledenom_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_styleObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_styleObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*updateFromString = *mapscriptc::styleObj_updateFromString;
-*convertToString = *mapscriptc::styleObj_convertToString;
-*clone = *mapscriptc::styleObj_clone;
-*setSymbolByName = *mapscriptc::styleObj_setSymbolByName;
-*removeBinding = *mapscriptc::styleObj_removeBinding;
-*setBinding = *mapscriptc::styleObj_setBinding;
-*getBinding = *mapscriptc::styleObj_getBinding;
-*getGeomTransform = *mapscriptc::styleObj_getGeomTransform;
-*setGeomTransform = *mapscriptc::styleObj_setGeomTransform;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelLeaderObj ##############
-
-package mapscript::labelLeaderObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_maxdistance_get = *mapscriptc::labelLeaderObj_maxdistance_get;
-*swig_maxdistance_set = *mapscriptc::labelLeaderObj_maxdistance_set;
-*swig_gridstep_get = *mapscriptc::labelLeaderObj_gridstep_get;
-*swig_gridstep_set = *mapscriptc::labelLeaderObj_gridstep_set;
-*swig_numstyles_get = *mapscriptc::labelLeaderObj_numstyles_get;
-*swig_numstyles_set = *mapscriptc::labelLeaderObj_numstyles_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelLeaderObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelLeaderObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelObj ##############
-
-package mapscript::labelObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_refcount_get = *mapscriptc::labelObj_refcount_get;
-*swig_refcount_set = *mapscriptc::labelObj_refcount_set;
-*swig_font_get = *mapscriptc::labelObj_font_get;
-*swig_font_set = *mapscriptc::labelObj_font_set;
-*swig_type_get = *mapscriptc::labelObj_type_get;
-*swig_type_set = *mapscriptc::labelObj_type_set;
-*swig_color_get = *mapscriptc::labelObj_color_get;
-*swig_color_set = *mapscriptc::labelObj_color_set;
-*swig_outlinecolor_get = *mapscriptc::labelObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::labelObj_outlinecolor_set;
-*swig_outlinewidth_get = *mapscriptc::labelObj_outlinewidth_get;
-*swig_outlinewidth_set = *mapscriptc::labelObj_outlinewidth_set;
-*swig_shadowcolor_get = *mapscriptc::labelObj_shadowcolor_get;
-*swig_shadowcolor_set = *mapscriptc::labelObj_shadowcolor_set;
-*swig_shadowsizex_get = *mapscriptc::labelObj_shadowsizex_get;
-*swig_shadowsizex_set = *mapscriptc::labelObj_shadowsizex_set;
-*swig_shadowsizey_get = *mapscriptc::labelObj_shadowsizey_get;
-*swig_shadowsizey_set = *mapscriptc::labelObj_shadowsizey_set;
-*swig_size_get = *mapscriptc::labelObj_size_get;
-*swig_size_set = *mapscriptc::labelObj_size_set;
-*swig_minsize_get = *mapscriptc::labelObj_minsize_get;
-*swig_minsize_set = *mapscriptc::labelObj_minsize_set;
-*swig_maxsize_get = *mapscriptc::labelObj_maxsize_get;
-*swig_maxsize_set = *mapscriptc::labelObj_maxsize_set;
-*swig_position_get = *mapscriptc::labelObj_position_get;
-*swig_position_set = *mapscriptc::labelObj_position_set;
-*swig_offsetx_get = *mapscriptc::labelObj_offsetx_get;
-*swig_offsetx_set = *mapscriptc::labelObj_offsetx_set;
-*swig_offsety_get = *mapscriptc::labelObj_offsety_get;
-*swig_offsety_set = *mapscriptc::labelObj_offsety_set;
-*swig_angle_get = *mapscriptc::labelObj_angle_get;
-*swig_angle_set = *mapscriptc::labelObj_angle_set;
-*swig_anglemode_get = *mapscriptc::labelObj_anglemode_get;
-*swig_anglemode_set = *mapscriptc::labelObj_anglemode_set;
-*swig_buffer_get = *mapscriptc::labelObj_buffer_get;
-*swig_buffer_set = *mapscriptc::labelObj_buffer_set;
-*swig_antialias_get = *mapscriptc::labelObj_antialias_get;
-*swig_antialias_set = *mapscriptc::labelObj_antialias_set;
-*swig_align_get = *mapscriptc::labelObj_align_get;
-*swig_align_set = *mapscriptc::labelObj_align_set;
-*swig_wrap_get = *mapscriptc::labelObj_wrap_get;
-*swig_wrap_set = *mapscriptc::labelObj_wrap_set;
-*swig_maxlength_get = *mapscriptc::labelObj_maxlength_get;
-*swig_maxlength_set = *mapscriptc::labelObj_maxlength_set;
-*swig_minlength_get = *mapscriptc::labelObj_minlength_get;
-*swig_minlength_set = *mapscriptc::labelObj_minlength_set;
-*swig_space_size_10_get = *mapscriptc::labelObj_space_size_10_get;
-*swig_space_size_10_set = *mapscriptc::labelObj_space_size_10_set;
-*swig_minfeaturesize_get = *mapscriptc::labelObj_minfeaturesize_get;
-*swig_minfeaturesize_set = *mapscriptc::labelObj_minfeaturesize_set;
-*swig_autominfeaturesize_get = *mapscriptc::labelObj_autominfeaturesize_get;
-*swig_autominfeaturesize_set = *mapscriptc::labelObj_autominfeaturesize_set;
-*swig_minscaledenom_get = *mapscriptc::labelObj_minscaledenom_get;
-*swig_minscaledenom_set = *mapscriptc::labelObj_minscaledenom_set;
-*swig_maxscaledenom_get = *mapscriptc::labelObj_maxscaledenom_get;
-*swig_maxscaledenom_set = *mapscriptc::labelObj_maxscaledenom_set;
-*swig_mindistance_get = *mapscriptc::labelObj_mindistance_get;
-*swig_mindistance_set = *mapscriptc::labelObj_mindistance_set;
-*swig_repeatdistance_get = *mapscriptc::labelObj_repeatdistance_get;
-*swig_repeatdistance_set = *mapscriptc::labelObj_repeatdistance_set;
-*swig_maxoverlapangle_get = *mapscriptc::labelObj_maxoverlapangle_get;
-*swig_maxoverlapangle_set = *mapscriptc::labelObj_maxoverlapangle_set;
-*swig_partials_get = *mapscriptc::labelObj_partials_get;
-*swig_partials_set = *mapscriptc::labelObj_partials_set;
-*swig_force_get = *mapscriptc::labelObj_force_get;
-*swig_force_set = *mapscriptc::labelObj_force_set;
-*swig_encoding_get = *mapscriptc::labelObj_encoding_get;
-*swig_encoding_set = *mapscriptc::labelObj_encoding_set;
-*swig_priority_get = *mapscriptc::labelObj_priority_get;
-*swig_priority_set = *mapscriptc::labelObj_priority_set;
-*swig_status_get = *mapscriptc::labelObj_status_get;
-*swig_status_set = *mapscriptc::labelObj_status_set;
-*swig_numstyles_get = *mapscriptc::labelObj_numstyles_get;
-*swig_numstyles_set = *mapscriptc::labelObj_numstyles_set;
-*swig_annotext_get = *mapscriptc::labelObj_annotext_get;
-*swig_annotext_set = *mapscriptc::labelObj_annotext_set;
-*swig_annopoint_get = *mapscriptc::labelObj_annopoint_get;
-*swig_annopoint_set = *mapscriptc::labelObj_annopoint_set;
-*swig_annopoly_get = *mapscriptc::labelObj_annopoly_get;
-*swig_annopoly_set = *mapscriptc::labelObj_annopoly_set;
-*swig_leader_get = *mapscriptc::labelObj_leader_get;
-*swig_leader_set = *mapscriptc::labelObj_leader_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*updateFromString = *mapscriptc::labelObj_updateFromString;
-*convertToString = *mapscriptc::labelObj_convertToString;
-*removeBinding = *mapscriptc::labelObj_removeBinding;
-*getBinding = *mapscriptc::labelObj_getBinding;
-*setBinding = *mapscriptc::labelObj_setBinding;
-*setExpression = *mapscriptc::labelObj_setExpression;
-*getExpressionString = *mapscriptc::labelObj_getExpressionString;
-*setText = *mapscriptc::labelObj_setText;
-*getTextString = *mapscriptc::labelObj_getTextString;
-*getStyle = *mapscriptc::labelObj_getStyle;
-*insertStyle = *mapscriptc::labelObj_insertStyle;
-*removeStyle = *mapscriptc::labelObj_removeStyle;
-*moveStyleUp = *mapscriptc::labelObj_moveStyleUp;
-*moveStyleDown = *mapscriptc::labelObj_moveStyleDown;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::classObj ##############
-
-package mapscript::classObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_status_get = *mapscriptc::classObj_status_get;
-*swig_status_set = *mapscriptc::classObj_status_set;
-*swig_numstyles_get = *mapscriptc::classObj_numstyles_get;
-*swig_numstyles_set = *mapscriptc::classObj_numstyles_set;
-*swig_numlabels_get = *mapscriptc::classObj_numlabels_get;
-*swig_numlabels_set = *mapscriptc::classObj_numlabels_set;
-*swig_name_get = *mapscriptc::classObj_name_get;
-*swig_name_set = *mapscriptc::classObj_name_set;
-*swig_title_get = *mapscriptc::classObj_title_get;
-*swig_title_set = *mapscriptc::classObj_title_set;
-*swig_template_get = *mapscriptc::classObj_template_get;
-*swig_template_set = *mapscriptc::classObj_template_set;
-*swig_type_get = *mapscriptc::classObj_type_get;
-*swig_type_set = *mapscriptc::classObj_type_set;
-*swig_metadata_get = *mapscriptc::classObj_metadata_get;
-*swig_metadata_set = *mapscriptc::classObj_metadata_set;
-*swig_validation_get = *mapscriptc::classObj_validation_get;
-*swig_validation_set = *mapscriptc::classObj_validation_set;
-*swig_minscaledenom_get = *mapscriptc::classObj_minscaledenom_get;
-*swig_minscaledenom_set = *mapscriptc::classObj_minscaledenom_set;
-*swig_maxscaledenom_get = *mapscriptc::classObj_maxscaledenom_get;
-*swig_maxscaledenom_set = *mapscriptc::classObj_maxscaledenom_set;
-*swig_minfeaturesize_get = *mapscriptc::classObj_minfeaturesize_get;
-*swig_minfeaturesize_set = *mapscriptc::classObj_minfeaturesize_set;
-*swig_refcount_get = *mapscriptc::classObj_refcount_get;
-*swig_refcount_set = *mapscriptc::classObj_refcount_set;
-*swig_layer_get = *mapscriptc::classObj_layer_get;
-*swig_layer_set = *mapscriptc::classObj_layer_set;
-*swig_debug_get = *mapscriptc::classObj_debug_get;
-*swig_debug_set = *mapscriptc::classObj_debug_set;
-*swig_keyimage_get = *mapscriptc::classObj_keyimage_get;
-*swig_keyimage_set = *mapscriptc::classObj_keyimage_set;
-*swig_group_get = *mapscriptc::classObj_group_get;
-*swig_group_set = *mapscriptc::classObj_group_set;
-*swig_leader_get = *mapscriptc::classObj_leader_get;
-*swig_leader_set = *mapscriptc::classObj_leader_set;
-sub new {
-        my $pkg = shift;
-        my $self = mapscriptc::new_classObj(@_);
-        bless $self, $pkg if defined($self);
-        if (defined($_[0])) {
-                # parent reference
-                mapscript::RFC24_ADD_PARENT_REF( tied(%$self), $_[0]);
-        }
-        return $self;
-}
-
-sub DESTROY {
-        return unless $_[0]->isa('HASH');
-        my $self = tied(%{$_[0]});
-        return unless defined $self;
-        delete $ITERATORS{$self};
-        mapscriptc::delete_classObj($self);
-        # remove parent reference
-        mapscript::RFC24_DEL_PARENT_REF($self);
-}
-
-*updateFromString = *mapscriptc::classObj_updateFromString;
-*convertToString = *mapscriptc::classObj_convertToString;
-*clone = *mapscriptc::classObj_clone;
-*setExpression = *mapscriptc::classObj_setExpression;
-*getExpressionString = *mapscriptc::classObj_getExpressionString;
-*setText = *mapscriptc::classObj_setText;
-*getTextString = *mapscriptc::classObj_getTextString;
-*getMetaData = *mapscriptc::classObj_getMetaData;
-*setMetaData = *mapscriptc::classObj_setMetaData;
-*getFirstMetaDataKey = *mapscriptc::classObj_getFirstMetaDataKey;
-*getNextMetaDataKey = *mapscriptc::classObj_getNextMetaDataKey;
-*drawLegendIcon = *mapscriptc::classObj_drawLegendIcon;
-*createLegendIcon = *mapscriptc::classObj_createLegendIcon;
-*getLabel = *mapscriptc::classObj_getLabel;
-*addLabel = *mapscriptc::classObj_addLabel;
-*removeLabel = *mapscriptc::classObj_removeLabel;
-*getStyle = *mapscriptc::classObj_getStyle;
-*insertStyle = *mapscriptc::classObj_insertStyle;
-*removeStyle = *mapscriptc::classObj_removeStyle;
-*moveStyleUp = *mapscriptc::classObj_moveStyleUp;
-*moveStyleDown = *mapscriptc::classObj_moveStyleDown;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelCacheMemberObj ##############
-
-package mapscript::labelCacheMemberObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_featuresize_get = *mapscriptc::labelCacheMemberObj_featuresize_get;
-*swig_featuresize_set = *mapscriptc::labelCacheMemberObj_featuresize_set;
-*swig_styles_get = *mapscriptc::labelCacheMemberObj_styles_get;
-*swig_styles_set = *mapscriptc::labelCacheMemberObj_styles_set;
-*swig_numstyles_get = *mapscriptc::labelCacheMemberObj_numstyles_get;
-*swig_numstyles_set = *mapscriptc::labelCacheMemberObj_numstyles_set;
-*swig_labels_get = *mapscriptc::labelCacheMemberObj_labels_get;
-*swig_labels_set = *mapscriptc::labelCacheMemberObj_labels_set;
-*swig_numlabels_get = *mapscriptc::labelCacheMemberObj_numlabels_get;
-*swig_numlabels_set = *mapscriptc::labelCacheMemberObj_numlabels_set;
-*swig_layerindex_get = *mapscriptc::labelCacheMemberObj_layerindex_get;
-*swig_layerindex_set = *mapscriptc::labelCacheMemberObj_layerindex_set;
-*swig_classindex_get = *mapscriptc::labelCacheMemberObj_classindex_get;
-*swig_classindex_set = *mapscriptc::labelCacheMemberObj_classindex_set;
-*swig_shapetype_get = *mapscriptc::labelCacheMemberObj_shapetype_get;
-*swig_shapetype_set = *mapscriptc::labelCacheMemberObj_shapetype_set;
-*swig_point_get = *mapscriptc::labelCacheMemberObj_point_get;
-*swig_point_set = *mapscriptc::labelCacheMemberObj_point_set;
-*swig_poly_get = *mapscriptc::labelCacheMemberObj_poly_get;
-*swig_poly_set = *mapscriptc::labelCacheMemberObj_poly_set;
-*swig_status_get = *mapscriptc::labelCacheMemberObj_status_get;
-*swig_status_set = *mapscriptc::labelCacheMemberObj_status_set;
-*swig_markerid_get = *mapscriptc::labelCacheMemberObj_markerid_get;
-*swig_markerid_set = *mapscriptc::labelCacheMemberObj_markerid_set;
-*swig_leaderline_get = *mapscriptc::labelCacheMemberObj_leaderline_get;
-*swig_leaderline_set = *mapscriptc::labelCacheMemberObj_leaderline_set;
-*swig_leaderbbox_get = *mapscriptc::labelCacheMemberObj_leaderbbox_get;
-*swig_leaderbbox_set = *mapscriptc::labelCacheMemberObj_leaderbbox_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelCacheMemberObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelCacheMemberObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::markerCacheMemberObj ##############
-
-package mapscript::markerCacheMemberObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_id_get = *mapscriptc::markerCacheMemberObj_id_get;
-*swig_id_set = *mapscriptc::markerCacheMemberObj_id_set;
-*swig_poly_get = *mapscriptc::markerCacheMemberObj_poly_get;
-*swig_poly_set = *mapscriptc::markerCacheMemberObj_poly_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_markerCacheMemberObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_markerCacheMemberObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelCacheSlotObj ##############
-
-package mapscript::labelCacheSlotObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_labels_get = *mapscriptc::labelCacheSlotObj_labels_get;
-*swig_labels_set = *mapscriptc::labelCacheSlotObj_labels_set;
-*swig_numlabels_get = *mapscriptc::labelCacheSlotObj_numlabels_get;
-*swig_numlabels_set = *mapscriptc::labelCacheSlotObj_numlabels_set;
-*swig_cachesize_get = *mapscriptc::labelCacheSlotObj_cachesize_get;
-*swig_cachesize_set = *mapscriptc::labelCacheSlotObj_cachesize_set;
-*swig_markers_get = *mapscriptc::labelCacheSlotObj_markers_get;
-*swig_markers_set = *mapscriptc::labelCacheSlotObj_markers_set;
-*swig_nummarkers_get = *mapscriptc::labelCacheSlotObj_nummarkers_get;
-*swig_nummarkers_set = *mapscriptc::labelCacheSlotObj_nummarkers_set;
-*swig_markercachesize_get = *mapscriptc::labelCacheSlotObj_markercachesize_get;
-*swig_markercachesize_set = *mapscriptc::labelCacheSlotObj_markercachesize_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelCacheSlotObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelCacheSlotObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelCacheObj ##############
-
-package mapscript::labelCacheObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_slots_get = *mapscriptc::labelCacheObj_slots_get;
-*swig_slots_set = *mapscriptc::labelCacheObj_slots_set;
-*swig_numlabels_get = *mapscriptc::labelCacheObj_numlabels_get;
-*swig_numlabels_set = *mapscriptc::labelCacheObj_numlabels_set;
-*swig_gutter_get = *mapscriptc::labelCacheObj_gutter_get;
-*swig_gutter_set = *mapscriptc::labelCacheObj_gutter_set;
-*freeCache = *mapscriptc::labelCacheObj_freeCache;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelCacheObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelCacheObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::resultObj ##############
-
-package mapscript::resultObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_shapeindex_get = *mapscriptc::resultObj_shapeindex_get;
-*swig_shapeindex_set = *mapscriptc::resultObj_shapeindex_set;
-*swig_tileindex_get = *mapscriptc::resultObj_tileindex_get;
-*swig_tileindex_set = *mapscriptc::resultObj_tileindex_set;
-*swig_resultindex_get = *mapscriptc::resultObj_resultindex_get;
-*swig_resultindex_set = *mapscriptc::resultObj_resultindex_set;
-*swig_classindex_get = *mapscriptc::resultObj_classindex_get;
-*swig_classindex_set = *mapscriptc::resultObj_classindex_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_resultObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_resultObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::resultCacheObj ##############
-
-package mapscript::resultCacheObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numresults_get = *mapscriptc::resultCacheObj_numresults_get;
-*swig_numresults_set = *mapscriptc::resultCacheObj_numresults_set;
-*swig_bounds_get = *mapscriptc::resultCacheObj_bounds_get;
-*swig_bounds_set = *mapscriptc::resultCacheObj_bounds_set;
-*swig_usegetshape_get = *mapscriptc::resultCacheObj_usegetshape_get;
-*swig_usegetshape_set = *mapscriptc::resultCacheObj_usegetshape_set;
-*getResult = *mapscriptc::resultCacheObj_getResult;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_resultCacheObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_resultCacheObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::symbolSetObj ##############
-
-package mapscript::symbolSetObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_filename_get = *mapscriptc::symbolSetObj_filename_get;
-*swig_filename_set = *mapscriptc::symbolSetObj_filename_set;
-*swig_imagecachesize_get = *mapscriptc::symbolSetObj_imagecachesize_get;
-*swig_imagecachesize_set = *mapscriptc::symbolSetObj_imagecachesize_set;
-*swig_numsymbols_get = *mapscriptc::symbolSetObj_numsymbols_get;
-*swig_numsymbols_set = *mapscriptc::symbolSetObj_numsymbols_set;
-*swig_maxsymbols_get = *mapscriptc::symbolSetObj_maxsymbols_get;
-*swig_maxsymbols_set = *mapscriptc::symbolSetObj_maxsymbols_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_symbolSetObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_symbolSetObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*getSymbol = *mapscriptc::symbolSetObj_getSymbol;
-*getSymbolByName = *mapscriptc::symbolSetObj_getSymbolByName;
-*index = *mapscriptc::symbolSetObj_index;
-*appendSymbol = *mapscriptc::symbolSetObj_appendSymbol;
-*removeSymbol = *mapscriptc::symbolSetObj_removeSymbol;
-*save = *mapscriptc::symbolSetObj_save;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::referenceMapObj ##############
-
-package mapscript::referenceMapObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_extent_get = *mapscriptc::referenceMapObj_extent_get;
-*swig_extent_set = *mapscriptc::referenceMapObj_extent_set;
-*swig_height_get = *mapscriptc::referenceMapObj_height_get;
-*swig_height_set = *mapscriptc::referenceMapObj_height_set;
-*swig_width_get = *mapscriptc::referenceMapObj_width_get;
-*swig_width_set = *mapscriptc::referenceMapObj_width_set;
-*swig_color_get = *mapscriptc::referenceMapObj_color_get;
-*swig_color_set = *mapscriptc::referenceMapObj_color_set;
-*swig_outlinecolor_get = *mapscriptc::referenceMapObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::referenceMapObj_outlinecolor_set;
-*swig_image_get = *mapscriptc::referenceMapObj_image_get;
-*swig_image_set = *mapscriptc::referenceMapObj_image_set;
-*swig_status_get = *mapscriptc::referenceMapObj_status_get;
-*swig_status_set = *mapscriptc::referenceMapObj_status_set;
-*swig_marker_get = *mapscriptc::referenceMapObj_marker_get;
-*swig_marker_set = *mapscriptc::referenceMapObj_marker_set;
-*swig_markername_get = *mapscriptc::referenceMapObj_markername_get;
-*swig_markername_set = *mapscriptc::referenceMapObj_markername_set;
-*swig_markersize_get = *mapscriptc::referenceMapObj_markersize_get;
-*swig_markersize_set = *mapscriptc::referenceMapObj_markersize_set;
-*swig_minboxsize_get = *mapscriptc::referenceMapObj_minboxsize_get;
-*swig_minboxsize_set = *mapscriptc::referenceMapObj_minboxsize_set;
-*swig_maxboxsize_get = *mapscriptc::referenceMapObj_maxboxsize_get;
-*swig_maxboxsize_set = *mapscriptc::referenceMapObj_maxboxsize_set;
-*swig_map_get = *mapscriptc::referenceMapObj_map_get;
-*swig_map_set = *mapscriptc::referenceMapObj_map_set;
-*updateFromString = *mapscriptc::referenceMapObj_updateFromString;
-*convertToString = *mapscriptc::referenceMapObj_convertToString;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_referenceMapObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_referenceMapObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::scalebarObj ##############
-
-package mapscript::scalebarObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_imagecolor_get = *mapscriptc::scalebarObj_imagecolor_get;
-*swig_imagecolor_set = *mapscriptc::scalebarObj_imagecolor_set;
-*swig_height_get = *mapscriptc::scalebarObj_height_get;
-*swig_height_set = *mapscriptc::scalebarObj_height_set;
-*swig_width_get = *mapscriptc::scalebarObj_width_get;
-*swig_width_set = *mapscriptc::scalebarObj_width_set;
-*swig_style_get = *mapscriptc::scalebarObj_style_get;
-*swig_style_set = *mapscriptc::scalebarObj_style_set;
-*swig_intervals_get = *mapscriptc::scalebarObj_intervals_get;
-*swig_intervals_set = *mapscriptc::scalebarObj_intervals_set;
-*swig_label_get = *mapscriptc::scalebarObj_label_get;
-*swig_label_set = *mapscriptc::scalebarObj_label_set;
-*swig_color_get = *mapscriptc::scalebarObj_color_get;
-*swig_color_set = *mapscriptc::scalebarObj_color_set;
-*swig_backgroundcolor_get = *mapscriptc::scalebarObj_backgroundcolor_get;
-*swig_backgroundcolor_set = *mapscriptc::scalebarObj_backgroundcolor_set;
-*swig_outlinecolor_get = *mapscriptc::scalebarObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::scalebarObj_outlinecolor_set;
-*swig_units_get = *mapscriptc::scalebarObj_units_get;
-*swig_units_set = *mapscriptc::scalebarObj_units_set;
-*swig_status_get = *mapscriptc::scalebarObj_status_get;
-*swig_status_set = *mapscriptc::scalebarObj_status_set;
-*swig_position_get = *mapscriptc::scalebarObj_position_get;
-*swig_position_set = *mapscriptc::scalebarObj_position_set;
-*swig_postlabelcache_get = *mapscriptc::scalebarObj_postlabelcache_get;
-*swig_postlabelcache_set = *mapscriptc::scalebarObj_postlabelcache_set;
-*swig_align_get = *mapscriptc::scalebarObj_align_get;
-*swig_align_set = *mapscriptc::scalebarObj_align_set;
-*updateFromString = *mapscriptc::scalebarObj_updateFromString;
-*convertToString = *mapscriptc::scalebarObj_convertToString;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_scalebarObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_scalebarObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::legendObj ##############
-
-package mapscript::legendObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_imagecolor_get = *mapscriptc::legendObj_imagecolor_get;
-*swig_imagecolor_set = *mapscriptc::legendObj_imagecolor_set;
-*swig_label_get = *mapscriptc::legendObj_label_get;
-*swig_label_set = *mapscriptc::legendObj_label_set;
-*swig_keysizex_get = *mapscriptc::legendObj_keysizex_get;
-*swig_keysizex_set = *mapscriptc::legendObj_keysizex_set;
-*swig_keysizey_get = *mapscriptc::legendObj_keysizey_get;
-*swig_keysizey_set = *mapscriptc::legendObj_keysizey_set;
-*swig_keyspacingx_get = *mapscriptc::legendObj_keyspacingx_get;
-*swig_keyspacingx_set = *mapscriptc::legendObj_keyspacingx_set;
-*swig_keyspacingy_get = *mapscriptc::legendObj_keyspacingy_get;
-*swig_keyspacingy_set = *mapscriptc::legendObj_keyspacingy_set;
-*swig_outlinecolor_get = *mapscriptc::legendObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::legendObj_outlinecolor_set;
-*swig_status_get = *mapscriptc::legendObj_status_get;
-*swig_status_set = *mapscriptc::legendObj_status_set;
-*swig_height_get = *mapscriptc::legendObj_height_get;
-*swig_height_set = *mapscriptc::legendObj_height_set;
-*swig_width_get = *mapscriptc::legendObj_width_get;
-*swig_width_set = *mapscriptc::legendObj_width_set;
-*swig_position_get = *mapscriptc::legendObj_position_get;
-*swig_position_set = *mapscriptc::legendObj_position_set;
-*swig_postlabelcache_get = *mapscriptc::legendObj_postlabelcache_get;
-*swig_postlabelcache_set = *mapscriptc::legendObj_postlabelcache_set;
-*swig_template_get = *mapscriptc::legendObj_template_get;
-*swig_template_set = *mapscriptc::legendObj_template_set;
-*swig_map_get = *mapscriptc::legendObj_map_get;
-*swig_map_set = *mapscriptc::legendObj_map_set;
-*updateFromString = *mapscriptc::legendObj_updateFromString;
-*convertToString = *mapscriptc::legendObj_convertToString;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_legendObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_legendObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::imageObj ##############
-
-package mapscript::imageObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_width_get = *mapscriptc::imageObj_width_get;
-*swig_width_set = *mapscriptc::imageObj_width_set;
-*swig_height_get = *mapscriptc::imageObj_height_get;
-*swig_height_set = *mapscriptc::imageObj_height_set;
-*swig_resolution_get = *mapscriptc::imageObj_resolution_get;
-*swig_resolution_set = *mapscriptc::imageObj_resolution_set;
-*swig_resolutionfactor_get = *mapscriptc::imageObj_resolutionfactor_get;
-*swig_resolutionfactor_set = *mapscriptc::imageObj_resolutionfactor_set;
-*swig_imagepath_get = *mapscriptc::imageObj_imagepath_get;
-*swig_imagepath_set = *mapscriptc::imageObj_imagepath_set;
-*swig_imageurl_get = *mapscriptc::imageObj_imageurl_get;
-*swig_imageurl_set = *mapscriptc::imageObj_imageurl_set;
-*swig_format_get = *mapscriptc::imageObj_format_get;
-*swig_format_set = *mapscriptc::imageObj_format_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_imageObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_imageObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*save = *mapscriptc::imageObj_save;
-*write = *mapscriptc::imageObj_write;
-*getBytes = *mapscriptc::imageObj_getBytes;
-*getSize = *mapscriptc::imageObj_getSize;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::scaleTokenEntryObj ##############
-
-package mapscript::scaleTokenEntryObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_minscale_get = *mapscriptc::scaleTokenEntryObj_minscale_get;
-*swig_minscale_set = *mapscriptc::scaleTokenEntryObj_minscale_set;
-*swig_maxscale_get = *mapscriptc::scaleTokenEntryObj_maxscale_get;
-*swig_maxscale_set = *mapscriptc::scaleTokenEntryObj_maxscale_set;
-*swig_value_get = *mapscriptc::scaleTokenEntryObj_value_get;
-*swig_value_set = *mapscriptc::scaleTokenEntryObj_value_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_scaleTokenEntryObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_scaleTokenEntryObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::scaleTokenObj ##############
-
-package mapscript::scaleTokenObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_name_get = *mapscriptc::scaleTokenObj_name_get;
-*swig_name_set = *mapscriptc::scaleTokenObj_name_set;
-*swig_n_entries_get = *mapscriptc::scaleTokenObj_n_entries_get;
-*swig_n_entries_set = *mapscriptc::scaleTokenObj_n_entries_set;
-*swig_tokens_get = *mapscriptc::scaleTokenObj_tokens_get;
-*swig_tokens_set = *mapscriptc::scaleTokenObj_tokens_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_scaleTokenObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_scaleTokenObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::layerObj ##############
-
-package mapscript::layerObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_classitem_get = *mapscriptc::layerObj_classitem_get;
-*swig_classitem_set = *mapscriptc::layerObj_classitem_set;
-*swig_refcount_get = *mapscriptc::layerObj_refcount_get;
-*swig_refcount_set = *mapscriptc::layerObj_refcount_set;
-*swig_numclasses_get = *mapscriptc::layerObj_numclasses_get;
-*swig_numclasses_set = *mapscriptc::layerObj_numclasses_set;
-*swig_maxclasses_get = *mapscriptc::layerObj_maxclasses_get;
-*swig_maxclasses_set = *mapscriptc::layerObj_maxclasses_set;
-*swig_index_get = *mapscriptc::layerObj_index_get;
-*swig_index_set = *mapscriptc::layerObj_index_set;
-*swig_map_get = *mapscriptc::layerObj_map_get;
-*swig_map_set = *mapscriptc::layerObj_map_set;
-*swig_header_get = *mapscriptc::layerObj_header_get;
-*swig_header_set = *mapscriptc::layerObj_header_set;
-*swig_footer_get = *mapscriptc::layerObj_footer_get;
-*swig_footer_set = *mapscriptc::layerObj_footer_set;
-*swig_template_get = *mapscriptc::layerObj_template_get;
-*swig_template_set = *mapscriptc::layerObj_template_set;
-*swig_name_get = *mapscriptc::layerObj_name_get;
-*swig_name_set = *mapscriptc::layerObj_name_set;
-*swig_group_get = *mapscriptc::layerObj_group_get;
-*swig_group_set = *mapscriptc::layerObj_group_set;
-*swig_status_get = *mapscriptc::layerObj_status_get;
-*swig_status_set = *mapscriptc::layerObj_status_set;
-*swig_data_get = *mapscriptc::layerObj_data_get;
-*swig_data_set = *mapscriptc::layerObj_data_set;
-*swig_type_get = *mapscriptc::layerObj_type_get;
-*swig_type_set = *mapscriptc::layerObj_type_set;
-*swig_tolerance_get = *mapscriptc::layerObj_tolerance_get;
-*swig_tolerance_set = *mapscriptc::layerObj_tolerance_set;
-*swig_toleranceunits_get = *mapscriptc::layerObj_toleranceunits_get;
-*swig_toleranceunits_set = *mapscriptc::layerObj_toleranceunits_set;
-*swig_symbolscaledenom_get = *mapscriptc::layerObj_symbolscaledenom_get;
-*swig_symbolscaledenom_set = *mapscriptc::layerObj_symbolscaledenom_set;
-*swig_minscaledenom_get = *mapscriptc::layerObj_minscaledenom_get;
-*swig_minscaledenom_set = *mapscriptc::layerObj_minscaledenom_set;
-*swig_maxscaledenom_get = *mapscriptc::layerObj_maxscaledenom_get;
-*swig_maxscaledenom_set = *mapscriptc::layerObj_maxscaledenom_set;
-*swig_minfeaturesize_get = *mapscriptc::layerObj_minfeaturesize_get;
-*swig_minfeaturesize_set = *mapscriptc::layerObj_minfeaturesize_set;
-*swig_labelminscaledenom_get = *mapscriptc::layerObj_labelminscaledenom_get;
-*swig_labelminscaledenom_set = *mapscriptc::layerObj_labelminscaledenom_set;
-*swig_labelmaxscaledenom_get = *mapscriptc::layerObj_labelmaxscaledenom_get;
-*swig_labelmaxscaledenom_set = *mapscriptc::layerObj_labelmaxscaledenom_set;
-*swig_mingeowidth_get = *mapscriptc::layerObj_mingeowidth_get;
-*swig_mingeowidth_set = *mapscriptc::layerObj_mingeowidth_set;
-*swig_maxgeowidth_get = *mapscriptc::layerObj_maxgeowidth_get;
-*swig_maxgeowidth_set = *mapscriptc::layerObj_maxgeowidth_set;
-*swig_sizeunits_get = *mapscriptc::layerObj_sizeunits_get;
-*swig_sizeunits_set = *mapscriptc::layerObj_sizeunits_set;
-*swig_maxfeatures_get = *mapscriptc::layerObj_maxfeatures_get;
-*swig_maxfeatures_set = *mapscriptc::layerObj_maxfeatures_set;
-*swig_startindex_get = *mapscriptc::layerObj_startindex_get;
-*swig_startindex_set = *mapscriptc::layerObj_startindex_set;
-*swig_offsite_get = *mapscriptc::layerObj_offsite_get;
-*swig_offsite_set = *mapscriptc::layerObj_offsite_set;
-*swig_transform_get = *mapscriptc::layerObj_transform_get;
-*swig_transform_set = *mapscriptc::layerObj_transform_set;
-*swig_labelcache_get = *mapscriptc::layerObj_labelcache_get;
-*swig_labelcache_set = *mapscriptc::layerObj_labelcache_set;
-*swig_postlabelcache_get = *mapscriptc::layerObj_postlabelcache_get;
-*swig_postlabelcache_set = *mapscriptc::layerObj_postlabelcache_set;
-*swig_labelitem_get = *mapscriptc::layerObj_labelitem_get;
-*swig_labelitem_set = *mapscriptc::layerObj_labelitem_set;
-*swig_tileitem_get = *mapscriptc::layerObj_tileitem_get;
-*swig_tileitem_set = *mapscriptc::layerObj_tileitem_set;
-*swig_tileindex_get = *mapscriptc::layerObj_tileindex_get;
-*swig_tileindex_set = *mapscriptc::layerObj_tileindex_set;
-*swig_tilesrs_get = *mapscriptc::layerObj_tilesrs_get;
-*swig_tilesrs_set = *mapscriptc::layerObj_tilesrs_set;
-*swig_units_get = *mapscriptc::layerObj_units_get;
-*swig_units_set = *mapscriptc::layerObj_units_set;
-*swig_connection_get = *mapscriptc::layerObj_connection_get;
-*swig_connection_set = *mapscriptc::layerObj_connection_set;
-*swig_plugin_library_get = *mapscriptc::layerObj_plugin_library_get;
-*swig_plugin_library_set = *mapscriptc::layerObj_plugin_library_set;
-*swig_plugin_library_original_get = *mapscriptc::layerObj_plugin_library_original_get;
-*swig_plugin_library_original_set = *mapscriptc::layerObj_plugin_library_original_set;
-*swig_connectiontype_get = *mapscriptc::layerObj_connectiontype_get;
-*swig_connectiontype_set = *mapscriptc::layerObj_connectiontype_set;
-*swig_numitems_get = *mapscriptc::layerObj_numitems_get;
-*swig_numitems_set = *mapscriptc::layerObj_numitems_set;
-*swig_bandsitem_get = *mapscriptc::layerObj_bandsitem_get;
-*swig_bandsitem_set = *mapscriptc::layerObj_bandsitem_set;
-*swig_filteritem_get = *mapscriptc::layerObj_filteritem_get;
-*swig_filteritem_set = *mapscriptc::layerObj_filteritem_set;
-*swig_styleitem_get = *mapscriptc::layerObj_styleitem_get;
-*swig_styleitem_set = *mapscriptc::layerObj_styleitem_set;
-*swig_requires_get = *mapscriptc::layerObj_requires_get;
-*swig_requires_set = *mapscriptc::layerObj_requires_set;
-*swig_labelrequires_get = *mapscriptc::layerObj_labelrequires_get;
-*swig_labelrequires_set = *mapscriptc::layerObj_labelrequires_set;
-*swig_metadata_get = *mapscriptc::layerObj_metadata_get;
-*swig_metadata_set = *mapscriptc::layerObj_metadata_set;
-*swig_validation_get = *mapscriptc::layerObj_validation_get;
-*swig_validation_set = *mapscriptc::layerObj_validation_set;
-*swig_bindvals_get = *mapscriptc::layerObj_bindvals_get;
-*swig_bindvals_set = *mapscriptc::layerObj_bindvals_set;
-*swig_cluster_get = *mapscriptc::layerObj_cluster_get;
-*swig_cluster_set = *mapscriptc::layerObj_cluster_set;
-*swig_opacity_get = *mapscriptc::layerObj_opacity_get;
-*swig_opacity_set = *mapscriptc::layerObj_opacity_set;
-*swig_dump_get = *mapscriptc::layerObj_dump_get;
-*swig_dump_set = *mapscriptc::layerObj_dump_set;
-*swig_debug_get = *mapscriptc::layerObj_debug_get;
-*swig_debug_set = *mapscriptc::layerObj_debug_set;
-*swig_extent_get = *mapscriptc::layerObj_extent_get;
-*swig_extent_set = *mapscriptc::layerObj_extent_set;
-*swig_numprocessing_get = *mapscriptc::layerObj_numprocessing_get;
-*swig_numprocessing_set = *mapscriptc::layerObj_numprocessing_set;
-*swig_numjoins_get = *mapscriptc::layerObj_numjoins_get;
-*swig_numjoins_set = *mapscriptc::layerObj_numjoins_set;
-*swig_classgroup_get = *mapscriptc::layerObj_classgroup_get;
-*swig_classgroup_set = *mapscriptc::layerObj_classgroup_set;
-*swig_mask_get = *mapscriptc::layerObj_mask_get;
-*swig_mask_set = *mapscriptc::layerObj_mask_set;
-sub new {
-        my $pkg = shift;
-        my $self = mapscriptc::new_layerObj(@_);
-        bless $self, $pkg if defined($self);
-        if (defined($_[0])) {
-                # parent reference
-                mapscript::RFC24_ADD_PARENT_REF( tied(%$self), $_[0]);
-        }
-        return $self;
-}
-
-sub DESTROY {
-        return unless $_[0]->isa('HASH');
-        my $self = tied(%{$_[0]});
-        return unless defined $self;
-        delete $ITERATORS{$self};
-        mapscriptc::delete_layerObj($self);
-        # remove parent reference
-        mapscript::RFC24_DEL_PARENT_REF($self);
-}
-
-*clone = *mapscriptc::layerObj_clone;
-*updateFromString = *mapscriptc::layerObj_updateFromString;
-*convertToString = *mapscriptc::layerObj_convertToString;
-sub insertClass {
-        my $idx = mapscriptc::layerObj_insertClass(@_);
-        my $clazz=$_[1];
-        # parent reference
-        mapscript::RFC24_ADD_PARENT_REF(tied(%$clazz), $_[0]);
-        return $idx;
-}
-
-*removeClass = *mapscriptc::layerObj_removeClass;
-*open = *mapscriptc::layerObj_open;
-*whichShapes = *mapscriptc::layerObj_whichShapes;
-*nextShape = *mapscriptc::layerObj_nextShape;
-*close = *mapscriptc::layerObj_close;
-*getShape = *mapscriptc::layerObj_getShape;
-*getNumResults = *mapscriptc::layerObj_getNumResults;
-*getResultsBounds = *mapscriptc::layerObj_getResultsBounds;
-*getResult = *mapscriptc::layerObj_getResult;
-sub getClass {
-        my $clazz = mapscriptc::layerObj_getClass(@_);
-        if (defined($clazz)) {
-                # parent reference
-                mapscript::RFC24_ADD_PARENT_REF( tied(%$clazz) , $_[0]);
-        }
-        return $clazz;
-}
-
-*getItem = *mapscriptc::layerObj_getItem;
-*setItems = *mapscriptc::layerObj_setItems;
-*draw = *mapscriptc::layerObj_draw;
-*drawQuery = *mapscriptc::layerObj_drawQuery;
-*queryByFilter = *mapscriptc::layerObj_queryByFilter;
-*queryByAttributes = *mapscriptc::layerObj_queryByAttributes;
-*queryByPoint = *mapscriptc::layerObj_queryByPoint;
-*queryByRect = *mapscriptc::layerObj_queryByRect;
-*queryByFeatures = *mapscriptc::layerObj_queryByFeatures;
-*queryByShape = *mapscriptc::layerObj_queryByShape;
-*queryByIndex = *mapscriptc::layerObj_queryByIndex;
-*getResults = *mapscriptc::layerObj_getResults;
-*setFilter = *mapscriptc::layerObj_setFilter;
-*getFilterString = *mapscriptc::layerObj_getFilterString;
-*setWKTProjection = *mapscriptc::layerObj_setWKTProjection;
-*getProjection = *mapscriptc::layerObj_getProjection;
-*setProjection = *mapscriptc::layerObj_setProjection;
-*addFeature = *mapscriptc::layerObj_addFeature;
-*getNumFeatures = *mapscriptc::layerObj_getNumFeatures;
-*getExtent = *mapscriptc::layerObj_getExtent;
-*setExtent = *mapscriptc::layerObj_setExtent;
-*getMetaData = *mapscriptc::layerObj_getMetaData;
-*setMetaData = *mapscriptc::layerObj_setMetaData;
-*removeMetaData = *mapscriptc::layerObj_removeMetaData;
-*getFirstMetaDataKey = *mapscriptc::layerObj_getFirstMetaDataKey;
-*getNextMetaDataKey = *mapscriptc::layerObj_getNextMetaDataKey;
-*getWMSFeatureInfoURL = *mapscriptc::layerObj_getWMSFeatureInfoURL;
-*executeWFSGetFeature = *mapscriptc::layerObj_executeWFSGetFeature;
-*applySLD = *mapscriptc::layerObj_applySLD;
-*applySLDURL = *mapscriptc::layerObj_applySLDURL;
-*generateSLD = *mapscriptc::layerObj_generateSLD;
-*isVisible = *mapscriptc::layerObj_isVisible;
-*moveClassUp = *mapscriptc::layerObj_moveClassUp;
-*moveClassDown = *mapscriptc::layerObj_moveClassDown;
-*setProcessingKey = *mapscriptc::layerObj_setProcessingKey;
-*setProcessing = *mapscriptc::layerObj_setProcessing;
-*addProcessing = *mapscriptc::layerObj_addProcessing;
-*getProcessing = *mapscriptc::layerObj_getProcessing;
-*getProcessingKey = *mapscriptc::layerObj_getProcessingKey;
-*clearProcessing = *mapscriptc::layerObj_clearProcessing;
-*setConnectionType = *mapscriptc::layerObj_setConnectionType;
-*getClassIndex = *mapscriptc::layerObj_getClassIndex;
-*getGeomTransform = *mapscriptc::layerObj_getGeomTransform;
-*setGeomTransform = *mapscriptc::layerObj_setGeomTransform;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::mapObj ##############
-
-package mapscript::mapObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_name_get = *mapscriptc::mapObj_name_get;
-*swig_name_set = *mapscriptc::mapObj_name_set;
-*swig_status_get = *mapscriptc::mapObj_status_get;
-*swig_status_set = *mapscriptc::mapObj_status_set;
-*swig_height_get = *mapscriptc::mapObj_height_get;
-*swig_height_set = *mapscriptc::mapObj_height_set;
-*swig_width_get = *mapscriptc::mapObj_width_get;
-*swig_width_set = *mapscriptc::mapObj_width_set;
-*swig_maxsize_get = *mapscriptc::mapObj_maxsize_get;
-*swig_maxsize_set = *mapscriptc::mapObj_maxsize_set;
-*swig_refcount_get = *mapscriptc::mapObj_refcount_get;
-*swig_refcount_set = *mapscriptc::mapObj_refcount_set;
-*swig_numlayers_get = *mapscriptc::mapObj_numlayers_get;
-*swig_numlayers_set = *mapscriptc::mapObj_numlayers_set;
-*swig_maxlayers_get = *mapscriptc::mapObj_maxlayers_get;
-*swig_maxlayers_set = *mapscriptc::mapObj_maxlayers_set;
-*swig_symbolset_get = *mapscriptc::mapObj_symbolset_get;
-*swig_symbolset_set = *mapscriptc::mapObj_symbolset_set;
-*swig_fontset_get = *mapscriptc::mapObj_fontset_get;
-*swig_fontset_set = *mapscriptc::mapObj_fontset_set;
-*swig_labelcache_get = *mapscriptc::mapObj_labelcache_get;
-*swig_labelcache_set = *mapscriptc::mapObj_labelcache_set;
-*swig_transparent_get = *mapscriptc::mapObj_transparent_get;
-*swig_transparent_set = *mapscriptc::mapObj_transparent_set;
-*swig_interlace_get = *mapscriptc::mapObj_interlace_get;
-*swig_interlace_set = *mapscriptc::mapObj_interlace_set;
-*swig_imagequality_get = *mapscriptc::mapObj_imagequality_get;
-*swig_imagequality_set = *mapscriptc::mapObj_imagequality_set;
-*swig_extent_get = *mapscriptc::mapObj_extent_get;
-*swig_extent_set = *mapscriptc::mapObj_extent_set;
-*swig_cellsize_get = *mapscriptc::mapObj_cellsize_get;
-*swig_cellsize_set = *mapscriptc::mapObj_cellsize_set;
-*swig_units_get = *mapscriptc::mapObj_units_get;
-*swig_units_set = *mapscriptc::mapObj_units_set;
-*swig_scaledenom_get = *mapscriptc::mapObj_scaledenom_get;
-*swig_scaledenom_set = *mapscriptc::mapObj_scaledenom_set;
-*swig_resolution_get = *mapscriptc::mapObj_resolution_get;
-*swig_resolution_set = *mapscriptc::mapObj_resolution_set;
-*swig_defresolution_get = *mapscriptc::mapObj_defresolution_get;
-*swig_defresolution_set = *mapscriptc::mapObj_defresolution_set;
-*swig_shapepath_get = *mapscriptc::mapObj_shapepath_get;
-*swig_shapepath_set = *mapscriptc::mapObj_shapepath_set;
-*swig_mappath_get = *mapscriptc::mapObj_mappath_get;
-*swig_mappath_set = *mapscriptc::mapObj_mappath_set;
-*swig_imagecolor_get = *mapscriptc::mapObj_imagecolor_get;
-*swig_imagecolor_set = *mapscriptc::mapObj_imagecolor_set;
-*swig_numoutputformats_get = *mapscriptc::mapObj_numoutputformats_get;
-*swig_numoutputformats_set = *mapscriptc::mapObj_numoutputformats_set;
-*swig_outputformat_get = *mapscriptc::mapObj_outputformat_get;
-*swig_outputformat_set = *mapscriptc::mapObj_outputformat_set;
-*swig_imagetype_get = *mapscriptc::mapObj_imagetype_get;
-*swig_imagetype_set = *mapscriptc::mapObj_imagetype_set;
-*swig_reference_get = *mapscriptc::mapObj_reference_get;
-*swig_reference_set = *mapscriptc::mapObj_reference_set;
-*swig_scalebar_get = *mapscriptc::mapObj_scalebar_get;
-*swig_scalebar_set = *mapscriptc::mapObj_scalebar_set;
-*swig_legend_get = *mapscriptc::mapObj_legend_get;
-*swig_legend_set = *mapscriptc::mapObj_legend_set;
-*swig_querymap_get = *mapscriptc::mapObj_querymap_get;
-*swig_querymap_set = *mapscriptc::mapObj_querymap_set;
-*swig_web_get = *mapscriptc::mapObj_web_get;
-*swig_web_set = *mapscriptc::mapObj_web_set;
-*swig_layerorder_get = *mapscriptc::mapObj_layerorder_get;
-*swig_layerorder_set = *mapscriptc::mapObj_layerorder_set;
-*swig_debug_get = *mapscriptc::mapObj_debug_get;
-*swig_debug_set = *mapscriptc::mapObj_debug_set;
-*swig_datapattern_get = *mapscriptc::mapObj_datapattern_get;
-*swig_datapattern_set = *mapscriptc::mapObj_datapattern_set;
-*swig_templatepattern_get = *mapscriptc::mapObj_templatepattern_get;
-*swig_templatepattern_set = *mapscriptc::mapObj_templatepattern_set;
-*swig_configoptions_get = *mapscriptc::mapObj_configoptions_get;
-*swig_configoptions_set = *mapscriptc::mapObj_configoptions_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_mapObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_mapObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*clone = *mapscriptc::mapObj_clone;
-sub insertLayer {
-        my $idx = mapscriptc::mapObj_insertLayer(@_);
-        my $layer=$_[1];
-        # parent reference
-        mapscript::RFC24_ADD_PARENT_REF(tied(%$layer), $_[0]);
-        return $idx;
-}
-
-*removeLayer = *mapscriptc::mapObj_removeLayer;
-*setExtent = *mapscriptc::mapObj_setExtent;
-*offsetExtent = *mapscriptc::mapObj_offsetExtent;
-*scaleExtent = *mapscriptc::mapObj_scaleExtent;
-*setCenter = *mapscriptc::mapObj_setCenter;
-*setSize = *mapscriptc::mapObj_setSize;
-*setRotation = *mapscriptc::mapObj_setRotation;
-sub getLayer {
-        my $layer = mapscriptc::mapObj_getLayer(@_);
-        if (defined($layer)) {
-                # parent reference
-                #print "l=$layer,m=$_[0]\n";
-                mapscript::RFC24_ADD_PARENT_REF( tied(%$layer) , $_[0]);
-        }
-        return $layer;
-}
-
-sub getLayerByName {
-        my $layer = mapscriptc::mapObj_getLayerByName(@_);
-        if (defined($layer)) {
-                # parent reference
-                #print "l=$layer,m=$_[0]\n";
-                mapscript::RFC24_ADD_PARENT_REF( tied(%$layer) , $_[0]);
-        }
-        return $layer;
-}
-
-*getSymbolByName = *mapscriptc::mapObj_getSymbolByName;
-*prepareQuery = *mapscriptc::mapObj_prepareQuery;
-*prepareImage = *mapscriptc::mapObj_prepareImage;
-*setImageType = *mapscriptc::mapObj_setImageType;
-*selectOutputFormat = *mapscriptc::mapObj_selectOutputFormat;
-*getOutputFormat = *mapscriptc::mapObj_getOutputFormat;
-*setOutputFormat = *mapscriptc::mapObj_setOutputFormat;
-*draw = *mapscriptc::mapObj_draw;
-*drawQuery = *mapscriptc::mapObj_drawQuery;
-*drawLegend = *mapscriptc::mapObj_drawLegend;
-*drawScalebar = *mapscriptc::mapObj_drawScalebar;
-*drawReferenceMap = *mapscriptc::mapObj_drawReferenceMap;
-*embedScalebar = *mapscriptc::mapObj_embedScalebar;
-*embedLegend = *mapscriptc::mapObj_embedLegend;
-*drawLabelCache = *mapscriptc::mapObj_drawLabelCache;
-*getLabel = *mapscriptc::mapObj_getLabel;
-*nextLabel = *mapscriptc::mapObj_nextLabel;
-*queryByFilter = *mapscriptc::mapObj_queryByFilter;
-*queryByPoint = *mapscriptc::mapObj_queryByPoint;
-*queryByRect = *mapscriptc::mapObj_queryByRect;
-*queryByFeatures = *mapscriptc::mapObj_queryByFeatures;
-*queryByShape = *mapscriptc::mapObj_queryByShape;
-*setWKTProjection = *mapscriptc::mapObj_setWKTProjection;
-*getProjection = *mapscriptc::mapObj_getProjection;
-*setProjection = *mapscriptc::mapObj_setProjection;
-*save = *mapscriptc::mapObj_save;
-*saveQuery = *mapscriptc::mapObj_saveQuery;
-*loadQuery = *mapscriptc::mapObj_loadQuery;
-*freeQuery = *mapscriptc::mapObj_freeQuery;
-*saveQueryAsGML = *mapscriptc::mapObj_saveQueryAsGML;
-*getMetaData = *mapscriptc::mapObj_getMetaData;
-*setMetaData = *mapscriptc::mapObj_setMetaData;
-*removeMetaData = *mapscriptc::mapObj_removeMetaData;
-*getFirstMetaDataKey = *mapscriptc::mapObj_getFirstMetaDataKey;
-*getNextMetaDataKey = *mapscriptc::mapObj_getNextMetaDataKey;
-*setSymbolSet = *mapscriptc::mapObj_setSymbolSet;
-*getNumSymbols = *mapscriptc::mapObj_getNumSymbols;
-*setFontSet = *mapscriptc::mapObj_setFontSet;
-*saveMapContext = *mapscriptc::mapObj_saveMapContext;
-*loadMapContext = *mapscriptc::mapObj_loadMapContext;
-*moveLayerUp = *mapscriptc::mapObj_moveLayerUp;
-*moveLayerDown = *mapscriptc::mapObj_moveLayerDown;
-*getLayersDrawingOrder = *mapscriptc::mapObj_getLayersDrawingOrder;
-*setLayersDrawingOrder = *mapscriptc::mapObj_setLayersDrawingOrder;
-*setConfigOption = *mapscriptc::mapObj_setConfigOption;
-*getConfigOption = *mapscriptc::mapObj_getConfigOption;
-*applyConfigOptions = *mapscriptc::mapObj_applyConfigOptions;
-*applySLD = *mapscriptc::mapObj_applySLD;
-*applySLDURL = *mapscriptc::mapObj_applySLDURL;
-*generateSLD = *mapscriptc::mapObj_generateSLD;
-*processTemplate = *mapscriptc::mapObj_processTemplate;
-*processLegendTemplate = *mapscriptc::mapObj_processLegendTemplate;
-*processQueryTemplate = *mapscriptc::mapObj_processQueryTemplate;
-*getOutputFormatByName = *mapscriptc::mapObj_getOutputFormatByName;
-*appendOutputFormat = *mapscriptc::mapObj_appendOutputFormat;
-*removeOutputFormat = *mapscriptc::mapObj_removeOutputFormat;
-*loadOWSParameters = *mapscriptc::mapObj_loadOWSParameters;
-*OWSDispatch = *mapscriptc::mapObj_OWSDispatch;
-*convertToString = *mapscriptc::mapObj_convertToString;
-*zoomPoint = *mapscriptc::mapObj_zoomPoint;
-*zoomRectangle = *mapscriptc::mapObj_zoomRectangle;
-*zoomScale = *mapscriptc::mapObj_zoomScale;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::strokeStyleObj ##############
-
-package mapscript::strokeStyleObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_width_get = *mapscriptc::strokeStyleObj_width_get;
-*swig_width_set = *mapscriptc::strokeStyleObj_width_set;
-*swig_patternlength_get = *mapscriptc::strokeStyleObj_patternlength_get;
-*swig_patternlength_set = *mapscriptc::strokeStyleObj_patternlength_set;
-*swig_pattern_get = *mapscriptc::strokeStyleObj_pattern_get;
-*swig_pattern_set = *mapscriptc::strokeStyleObj_pattern_set;
-*swig_patternoffset_get = *mapscriptc::strokeStyleObj_patternoffset_get;
-*swig_patternoffset_set = *mapscriptc::strokeStyleObj_patternoffset_set;
-*swig_color_get = *mapscriptc::strokeStyleObj_color_get;
-*swig_color_set = *mapscriptc::strokeStyleObj_color_set;
-*swig_linecap_get = *mapscriptc::strokeStyleObj_linecap_get;
-*swig_linecap_set = *mapscriptc::strokeStyleObj_linecap_set;
-*swig_linejoin_get = *mapscriptc::strokeStyleObj_linejoin_get;
-*swig_linejoin_set = *mapscriptc::strokeStyleObj_linejoin_set;
-*swig_linejoinmaxsize_get = *mapscriptc::strokeStyleObj_linejoinmaxsize_get;
-*swig_linejoinmaxsize_set = *mapscriptc::strokeStyleObj_linejoinmaxsize_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_strokeStyleObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_strokeStyleObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::symbolStyleObj ##############
-
-package mapscript::symbolStyleObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_color_get = *mapscriptc::symbolStyleObj_color_get;
-*swig_color_set = *mapscriptc::symbolStyleObj_color_set;
-*swig_backgroundcolor_get = *mapscriptc::symbolStyleObj_backgroundcolor_get;
-*swig_backgroundcolor_set = *mapscriptc::symbolStyleObj_backgroundcolor_set;
-*swig_outlinewidth_get = *mapscriptc::symbolStyleObj_outlinewidth_get;
-*swig_outlinewidth_set = *mapscriptc::symbolStyleObj_outlinewidth_set;
-*swig_outlinecolor_get = *mapscriptc::symbolStyleObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::symbolStyleObj_outlinecolor_set;
-*swig_scale_get = *mapscriptc::symbolStyleObj_scale_get;
-*swig_scale_set = *mapscriptc::symbolStyleObj_scale_set;
-*swig_rotation_get = *mapscriptc::symbolStyleObj_rotation_get;
-*swig_rotation_set = *mapscriptc::symbolStyleObj_rotation_set;
-*swig_gap_get = *mapscriptc::symbolStyleObj_gap_get;
-*swig_gap_set = *mapscriptc::symbolStyleObj_gap_set;
-*swig_style_get = *mapscriptc::symbolStyleObj_style_get;
-*swig_style_set = *mapscriptc::symbolStyleObj_style_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_symbolStyleObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_symbolStyleObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::tileCacheObj ##############
-
-package mapscript::tileCacheObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_symbol_get = *mapscriptc::tileCacheObj_symbol_get;
-*swig_symbol_set = *mapscriptc::tileCacheObj_symbol_set;
-*swig_width_get = *mapscriptc::tileCacheObj_width_get;
-*swig_width_set = *mapscriptc::tileCacheObj_width_set;
-*swig_height_get = *mapscriptc::tileCacheObj_height_get;
-*swig_height_set = *mapscriptc::tileCacheObj_height_set;
-*swig_color_get = *mapscriptc::tileCacheObj_color_get;
-*swig_color_set = *mapscriptc::tileCacheObj_color_set;
-*swig_outlinecolor_get = *mapscriptc::tileCacheObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::tileCacheObj_outlinecolor_set;
-*swig_backgroundcolor_get = *mapscriptc::tileCacheObj_backgroundcolor_get;
-*swig_backgroundcolor_set = *mapscriptc::tileCacheObj_backgroundcolor_set;
-*swig_outlinewidth_get = *mapscriptc::tileCacheObj_outlinewidth_get;
-*swig_outlinewidth_set = *mapscriptc::tileCacheObj_outlinewidth_set;
-*swig_rotation_get = *mapscriptc::tileCacheObj_rotation_get;
-*swig_rotation_set = *mapscriptc::tileCacheObj_rotation_set;
-*swig_scale_get = *mapscriptc::tileCacheObj_scale_get;
-*swig_scale_set = *mapscriptc::tileCacheObj_scale_set;
-*swig_image_get = *mapscriptc::tileCacheObj_image_get;
-*swig_image_set = *mapscriptc::tileCacheObj_image_set;
-*swig_next_get = *mapscriptc::tileCacheObj_next_get;
-*swig_next_set = *mapscriptc::tileCacheObj_next_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_tileCacheObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_tileCacheObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::labelStyleObj ##############
-
-package mapscript::labelStyleObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_fonts_get = *mapscriptc::labelStyleObj_fonts_get;
-*swig_fonts_set = *mapscriptc::labelStyleObj_fonts_set;
-*swig_numfonts_get = *mapscriptc::labelStyleObj_numfonts_get;
-*swig_numfonts_set = *mapscriptc::labelStyleObj_numfonts_set;
-*swig_size_get = *mapscriptc::labelStyleObj_size_get;
-*swig_size_set = *mapscriptc::labelStyleObj_size_set;
-*swig_rotation_get = *mapscriptc::labelStyleObj_rotation_get;
-*swig_rotation_set = *mapscriptc::labelStyleObj_rotation_set;
-*swig_color_get = *mapscriptc::labelStyleObj_color_get;
-*swig_color_set = *mapscriptc::labelStyleObj_color_set;
-*swig_outlinewidth_get = *mapscriptc::labelStyleObj_outlinewidth_get;
-*swig_outlinewidth_set = *mapscriptc::labelStyleObj_outlinewidth_set;
-*swig_outlinecolor_get = *mapscriptc::labelStyleObj_outlinecolor_get;
-*swig_outlinecolor_set = *mapscriptc::labelStyleObj_outlinecolor_set;
-*swig_antialias_get = *mapscriptc::labelStyleObj_antialias_get;
-*swig_antialias_set = *mapscriptc::labelStyleObj_antialias_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_labelStyleObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_labelStyleObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::rectObj ##############
-
-package mapscript::rectObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_minx_get = *mapscriptc::rectObj_minx_get;
-*swig_minx_set = *mapscriptc::rectObj_minx_set;
-*swig_miny_get = *mapscriptc::rectObj_miny_get;
-*swig_miny_set = *mapscriptc::rectObj_miny_set;
-*swig_maxx_get = *mapscriptc::rectObj_maxx_get;
-*swig_maxx_set = *mapscriptc::rectObj_maxx_set;
-*swig_maxy_get = *mapscriptc::rectObj_maxy_get;
-*swig_maxy_set = *mapscriptc::rectObj_maxy_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_rectObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_rectObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*project = *mapscriptc::rectObj_project;
-*fit = *mapscriptc::rectObj_fit;
-*draw = *mapscriptc::rectObj_draw;
-*getCenter = *mapscriptc::rectObj_getCenter;
-*toPolygon = *mapscriptc::rectObj_toPolygon;
-*toString = *mapscriptc::rectObj_toString;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::pointObj ##############
-
-package mapscript::pointObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_x_get = *mapscriptc::pointObj_x_get;
-*swig_x_set = *mapscriptc::pointObj_x_set;
-*swig_y_get = *mapscriptc::pointObj_y_get;
-*swig_y_set = *mapscriptc::pointObj_y_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_pointObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_pointObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*project = *mapscriptc::pointObj_project;
-*draw = *mapscriptc::pointObj_draw;
-*distanceToPoint = *mapscriptc::pointObj_distanceToPoint;
-*distanceToSegment = *mapscriptc::pointObj_distanceToSegment;
-*distanceToShape = *mapscriptc::pointObj_distanceToShape;
-*setXY = *mapscriptc::pointObj_setXY;
-*setXYZ = *mapscriptc::pointObj_setXYZ;
-*setXYZM = *mapscriptc::pointObj_setXYZM;
-*toString = *mapscriptc::pointObj_toString;
-*toShape = *mapscriptc::pointObj_toShape;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::lineObj ##############
-
-package mapscript::lineObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numpoints_get = *mapscriptc::lineObj_numpoints_get;
-*swig_numpoints_set = *mapscriptc::lineObj_numpoints_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_lineObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_lineObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*project = *mapscriptc::lineObj_project;
-*get = *mapscriptc::lineObj_get;
-*add = *mapscriptc::lineObj_add;
-*set = *mapscriptc::lineObj_set;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::shapeObj ##############
-
-package mapscript::shapeObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numlines_get = *mapscriptc::shapeObj_numlines_get;
-*swig_numlines_set = *mapscriptc::shapeObj_numlines_set;
-*swig_numvalues_get = *mapscriptc::shapeObj_numvalues_get;
-*swig_numvalues_set = *mapscriptc::shapeObj_numvalues_set;
-*swig_bounds_get = *mapscriptc::shapeObj_bounds_get;
-*swig_bounds_set = *mapscriptc::shapeObj_bounds_set;
-*swig_type_get = *mapscriptc::shapeObj_type_get;
-*swig_type_set = *mapscriptc::shapeObj_type_set;
-*swig_index_get = *mapscriptc::shapeObj_index_get;
-*swig_index_set = *mapscriptc::shapeObj_index_set;
-*swig_tileindex_get = *mapscriptc::shapeObj_tileindex_get;
-*swig_tileindex_set = *mapscriptc::shapeObj_tileindex_set;
-*swig_classindex_get = *mapscriptc::shapeObj_classindex_get;
-*swig_classindex_set = *mapscriptc::shapeObj_classindex_set;
-*swig_text_get = *mapscriptc::shapeObj_text_get;
-*swig_text_set = *mapscriptc::shapeObj_text_set;
-*swig_scratch_get = *mapscriptc::shapeObj_scratch_get;
-*swig_scratch_set = *mapscriptc::shapeObj_scratch_set;
-*swig_resultindex_get = *mapscriptc::shapeObj_resultindex_get;
-*swig_resultindex_set = *mapscriptc::shapeObj_resultindex_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_shapeObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_shapeObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*fromWKT = *mapscriptc::shapeObj_fromWKT;
-*project = *mapscriptc::shapeObj_project;
-*get = *mapscriptc::shapeObj_get;
-*add = *mapscriptc::shapeObj_add;
-*draw = *mapscriptc::shapeObj_draw;
-*setBounds = *mapscriptc::shapeObj_setBounds;
-*clone = *mapscriptc::shapeObj_clone;
-*copy = *mapscriptc::shapeObj_copy;
-*toWKT = *mapscriptc::shapeObj_toWKT;
-*buffer = *mapscriptc::shapeObj_buffer;
-*simplify = *mapscriptc::shapeObj_simplify;
-*topologyPreservingSimplify = *mapscriptc::shapeObj_topologyPreservingSimplify;
-*convexHull = *mapscriptc::shapeObj_convexHull;
-*boundary = *mapscriptc::shapeObj_boundary;
-*getCentroid = *mapscriptc::shapeObj_getCentroid;
-*Union = *mapscriptc::shapeObj_Union;
-*intersection = *mapscriptc::shapeObj_intersection;
-*difference = *mapscriptc::shapeObj_difference;
-*symDifference = *mapscriptc::shapeObj_symDifference;
-*overlaps = *mapscriptc::shapeObj_overlaps;
-*within = *mapscriptc::shapeObj_within;
-*crosses = *mapscriptc::shapeObj_crosses;
-*intersects = *mapscriptc::shapeObj_intersects;
-*touches = *mapscriptc::shapeObj_touches;
-*equals = *mapscriptc::shapeObj_equals;
-*disjoint = *mapscriptc::shapeObj_disjoint;
-*getArea = *mapscriptc::shapeObj_getArea;
-*getLength = *mapscriptc::shapeObj_getLength;
-*getValue = *mapscriptc::shapeObj_getValue;
-*contains = *mapscriptc::shapeObj_contains;
-*distanceToPoint = *mapscriptc::shapeObj_distanceToPoint;
-*distanceToShape = *mapscriptc::shapeObj_distanceToShape;
-*getLabelPoint = *mapscriptc::shapeObj_getLabelPoint;
-*setValue = *mapscriptc::shapeObj_setValue;
-*initValues = *mapscriptc::shapeObj_initValues;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::DBFInfo ##############
-
-package mapscript::DBFInfo;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_fp_get = *mapscriptc::DBFInfo_fp_get;
-*swig_fp_set = *mapscriptc::DBFInfo_fp_set;
-*swig_nRecords_get = *mapscriptc::DBFInfo_nRecords_get;
-*swig_nRecords_set = *mapscriptc::DBFInfo_nRecords_set;
-*swig_nRecordLength_get = *mapscriptc::DBFInfo_nRecordLength_get;
-*swig_nRecordLength_set = *mapscriptc::DBFInfo_nRecordLength_set;
-*swig_nHeaderLength_get = *mapscriptc::DBFInfo_nHeaderLength_get;
-*swig_nHeaderLength_set = *mapscriptc::DBFInfo_nHeaderLength_set;
-*swig_nFields_get = *mapscriptc::DBFInfo_nFields_get;
-*swig_nFields_set = *mapscriptc::DBFInfo_nFields_set;
-*swig_panFieldOffset_get = *mapscriptc::DBFInfo_panFieldOffset_get;
-*swig_panFieldOffset_set = *mapscriptc::DBFInfo_panFieldOffset_set;
-*swig_panFieldSize_get = *mapscriptc::DBFInfo_panFieldSize_get;
-*swig_panFieldSize_set = *mapscriptc::DBFInfo_panFieldSize_set;
-*swig_panFieldDecimals_get = *mapscriptc::DBFInfo_panFieldDecimals_get;
-*swig_panFieldDecimals_set = *mapscriptc::DBFInfo_panFieldDecimals_set;
-*swig_pachFieldType_get = *mapscriptc::DBFInfo_pachFieldType_get;
-*swig_pachFieldType_set = *mapscriptc::DBFInfo_pachFieldType_set;
-*swig_pszHeader_get = *mapscriptc::DBFInfo_pszHeader_get;
-*swig_pszHeader_set = *mapscriptc::DBFInfo_pszHeader_set;
-*swig_nCurrentRecord_get = *mapscriptc::DBFInfo_nCurrentRecord_get;
-*swig_nCurrentRecord_set = *mapscriptc::DBFInfo_nCurrentRecord_set;
-*swig_bCurrentRecordModified_get = *mapscriptc::DBFInfo_bCurrentRecordModified_get;
-*swig_bCurrentRecordModified_set = *mapscriptc::DBFInfo_bCurrentRecordModified_set;
-*swig_pszCurrentRecord_get = *mapscriptc::DBFInfo_pszCurrentRecord_get;
-*swig_pszCurrentRecord_set = *mapscriptc::DBFInfo_pszCurrentRecord_set;
-*swig_bNoHeader_get = *mapscriptc::DBFInfo_bNoHeader_get;
-*swig_bNoHeader_set = *mapscriptc::DBFInfo_bNoHeader_set;
-*swig_bUpdated_get = *mapscriptc::DBFInfo_bUpdated_get;
-*swig_bUpdated_set = *mapscriptc::DBFInfo_bUpdated_set;
-*swig_pszStringField_get = *mapscriptc::DBFInfo_pszStringField_get;
-*swig_pszStringField_set = *mapscriptc::DBFInfo_pszStringField_set;
-*swig_nStringFieldLen_get = *mapscriptc::DBFInfo_nStringFieldLen_get;
-*swig_nStringFieldLen_set = *mapscriptc::DBFInfo_nStringFieldLen_set;
-*getFieldName = *mapscriptc::DBFInfo_getFieldName;
-*getFieldWidth = *mapscriptc::DBFInfo_getFieldWidth;
-*getFieldDecimals = *mapscriptc::DBFInfo_getFieldDecimals;
-*getFieldType = *mapscriptc::DBFInfo_getFieldType;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_DBFInfo(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_DBFInfo($self);
-        delete $OWNER{$self};
-    }
-}
-
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::shapefileObj ##############
-
-package mapscript::shapefileObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_source_get = *mapscriptc::shapefileObj_source_get;
-*swig_source_set = *mapscriptc::shapefileObj_source_set;
-*swig_type_get = *mapscriptc::shapefileObj_type_get;
-*swig_type_set = *mapscriptc::shapefileObj_type_set;
-*swig_numshapes_get = *mapscriptc::shapefileObj_numshapes_get;
-*swig_numshapes_set = *mapscriptc::shapefileObj_numshapes_set;
-*swig_bounds_get = *mapscriptc::shapefileObj_bounds_get;
-*swig_bounds_set = *mapscriptc::shapefileObj_bounds_set;
-*swig_lastshape_get = *mapscriptc::shapefileObj_lastshape_get;
-*swig_lastshape_set = *mapscriptc::shapefileObj_lastshape_set;
-*swig_status_get = *mapscriptc::shapefileObj_status_get;
-*swig_status_set = *mapscriptc::shapefileObj_status_set;
-*swig_statusbounds_get = *mapscriptc::shapefileObj_statusbounds_get;
-*swig_statusbounds_set = *mapscriptc::shapefileObj_statusbounds_set;
-*swig_isopen_get = *mapscriptc::shapefileObj_isopen_get;
-*swig_isopen_set = *mapscriptc::shapefileObj_isopen_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_shapefileObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_shapefileObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*get = *mapscriptc::shapefileObj_get;
-*getShape = *mapscriptc::shapefileObj_getShape;
-*getPoint = *mapscriptc::shapefileObj_getPoint;
-*getTransformed = *mapscriptc::shapefileObj_getTransformed;
-*getExtent = *mapscriptc::shapefileObj_getExtent;
-*add = *mapscriptc::shapefileObj_add;
-*addPoint = *mapscriptc::shapefileObj_addPoint;
-*getDBF = *mapscriptc::shapefileObj_getDBF;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::projectionObj ##############
-
-package mapscript::projectionObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numargs_get = *mapscriptc::projectionObj_numargs_get;
-*swig_numargs_set = *mapscriptc::projectionObj_numargs_set;
-*swig_automatic_get = *mapscriptc::projectionObj_automatic_get;
-*swig_automatic_set = *mapscriptc::projectionObj_automatic_set;
-*swig_wellknownprojection_get = *mapscriptc::projectionObj_wellknownprojection_get;
-*swig_wellknownprojection_set = *mapscriptc::projectionObj_wellknownprojection_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_projectionObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_projectionObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*setWKTProjection = *mapscriptc::projectionObj_setWKTProjection;
-*getUnits = *mapscriptc::projectionObj_getUnits;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::colorObj ##############
-
-package mapscript::colorObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_red_get = *mapscriptc::colorObj_red_get;
-*swig_red_set = *mapscriptc::colorObj_red_set;
-*swig_green_get = *mapscriptc::colorObj_green_get;
-*swig_green_set = *mapscriptc::colorObj_green_set;
-*swig_blue_get = *mapscriptc::colorObj_blue_get;
-*swig_blue_set = *mapscriptc::colorObj_blue_set;
-*swig_alpha_get = *mapscriptc::colorObj_alpha_get;
-*swig_alpha_set = *mapscriptc::colorObj_alpha_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_colorObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_colorObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*setRGB = *mapscriptc::colorObj_setRGB;
-*setHex = *mapscriptc::colorObj_setHex;
-*toHex = *mapscriptc::colorObj_toHex;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::symbolObj ##############
-
-package mapscript::symbolObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_name_get = *mapscriptc::symbolObj_name_get;
-*swig_name_set = *mapscriptc::symbolObj_name_set;
-*swig_type_get = *mapscriptc::symbolObj_type_get;
-*swig_type_set = *mapscriptc::symbolObj_type_set;
-*swig_inmapfile_get = *mapscriptc::symbolObj_inmapfile_get;
-*swig_inmapfile_set = *mapscriptc::symbolObj_inmapfile_set;
-*swig_sizex_get = *mapscriptc::symbolObj_sizex_get;
-*swig_sizex_set = *mapscriptc::symbolObj_sizex_set;
-*swig_sizey_get = *mapscriptc::symbolObj_sizey_get;
-*swig_sizey_set = *mapscriptc::symbolObj_sizey_set;
-*swig_minx_get = *mapscriptc::symbolObj_minx_get;
-*swig_minx_set = *mapscriptc::symbolObj_minx_set;
-*swig_miny_get = *mapscriptc::symbolObj_miny_get;
-*swig_miny_set = *mapscriptc::symbolObj_miny_set;
-*swig_maxx_get = *mapscriptc::symbolObj_maxx_get;
-*swig_maxx_set = *mapscriptc::symbolObj_maxx_set;
-*swig_maxy_get = *mapscriptc::symbolObj_maxy_get;
-*swig_maxy_set = *mapscriptc::symbolObj_maxy_set;
-*swig_refcount_get = *mapscriptc::symbolObj_refcount_get;
-*swig_refcount_set = *mapscriptc::symbolObj_refcount_set;
-*swig_numpoints_get = *mapscriptc::symbolObj_numpoints_get;
-*swig_numpoints_set = *mapscriptc::symbolObj_numpoints_set;
-*swig_filled_get = *mapscriptc::symbolObj_filled_get;
-*swig_filled_set = *mapscriptc::symbolObj_filled_set;
-*swig_anchorpoint_x_get = *mapscriptc::symbolObj_anchorpoint_x_get;
-*swig_anchorpoint_x_set = *mapscriptc::symbolObj_anchorpoint_x_set;
-*swig_anchorpoint_y_get = *mapscriptc::symbolObj_anchorpoint_y_get;
-*swig_anchorpoint_y_set = *mapscriptc::symbolObj_anchorpoint_y_set;
-*swig_imagepath_get = *mapscriptc::symbolObj_imagepath_get;
-*swig_imagepath_set = *mapscriptc::symbolObj_imagepath_set;
-*swig_transparent_get = *mapscriptc::symbolObj_transparent_get;
-*swig_transparent_set = *mapscriptc::symbolObj_transparent_set;
-*swig_transparentcolor_get = *mapscriptc::symbolObj_transparentcolor_get;
-*swig_transparentcolor_set = *mapscriptc::symbolObj_transparentcolor_set;
-*swig_character_get = *mapscriptc::symbolObj_character_get;
-*swig_character_set = *mapscriptc::symbolObj_character_set;
-*swig_antialias_get = *mapscriptc::symbolObj_antialias_get;
-*swig_antialias_set = *mapscriptc::symbolObj_antialias_set;
-*swig_font_get = *mapscriptc::symbolObj_font_get;
-*swig_font_set = *mapscriptc::symbolObj_font_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_symbolObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_symbolObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*setImagepath = *mapscriptc::symbolObj_setImagepath;
-*setPoints = *mapscriptc::symbolObj_setPoints;
-*getPoints = *mapscriptc::symbolObj_getPoints;
-*getImage = *mapscriptc::symbolObj_getImage;
-*setImage = *mapscriptc::symbolObj_setImage;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::errorObj ##############
-
-package mapscript::errorObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_code_get = *mapscriptc::errorObj_code_get;
-*swig_code_set = *mapscriptc::errorObj_code_set;
-*swig_routine_get = *mapscriptc::errorObj_routine_get;
-*swig_routine_set = *mapscriptc::errorObj_routine_set;
-*swig_message_get = *mapscriptc::errorObj_message_get;
-*swig_message_set = *mapscriptc::errorObj_message_set;
-*swig_isreported_get = *mapscriptc::errorObj_isreported_get;
-*swig_isreported_set = *mapscriptc::errorObj_isreported_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_errorObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_errorObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*next = *mapscriptc::errorObj_next;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::hashTableObj ##############
-
-package mapscript::hashTableObj;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_numitems_get = *mapscriptc::hashTableObj_numitems_get;
-*swig_numitems_set = *mapscriptc::hashTableObj_numitems_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_hashTableObj(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_hashTableObj($self);
-        delete $OWNER{$self};
-    }
-}
-
-*set = *mapscriptc::hashTableObj_set;
-*get = *mapscriptc::hashTableObj_get;
-*remove = *mapscriptc::hashTableObj_remove;
-*clear = *mapscriptc::hashTableObj_clear;
-*nextKey = *mapscriptc::hashTableObj_nextKey;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-############# Class : mapscript::OWSRequest ##############
-
-package mapscript::OWSRequest;
-use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
- at ISA = qw( mapscript );
-%OWNER = ();
-%ITERATORS = ();
-*swig_NumParams_get = *mapscriptc::OWSRequest_NumParams_get;
-*swig_NumParams_set = *mapscriptc::OWSRequest_NumParams_set;
-*swig_type_get = *mapscriptc::OWSRequest_type_get;
-*swig_type_set = *mapscriptc::OWSRequest_type_set;
-*swig_contenttype_get = *mapscriptc::OWSRequest_contenttype_get;
-*swig_contenttype_set = *mapscriptc::OWSRequest_contenttype_set;
-*swig_postrequest_get = *mapscriptc::OWSRequest_postrequest_get;
-*swig_postrequest_set = *mapscriptc::OWSRequest_postrequest_set;
-*swig_httpcookiedata_get = *mapscriptc::OWSRequest_httpcookiedata_get;
-*swig_httpcookiedata_set = *mapscriptc::OWSRequest_httpcookiedata_set;
-sub new {
-    my $pkg = shift;
-    my $self = mapscriptc::new_OWSRequest(@_);
-    bless $self, $pkg if defined($self);
-}
-
-sub DESTROY {
-    return unless $_[0]->isa('HASH');
-    my $self = tied(%{$_[0]});
-    return unless defined $self;
-    delete $ITERATORS{$self};
-    if (exists $OWNER{$self}) {
-        mapscriptc::delete_OWSRequest($self);
-        delete $OWNER{$self};
-    }
-}
-
-*loadParams = *mapscriptc::OWSRequest_loadParams;
-*loadParamsFromURL = *mapscriptc::OWSRequest_loadParamsFromURL;
-*setParameter = *mapscriptc::OWSRequest_setParameter;
-*addParameter = *mapscriptc::OWSRequest_addParameter;
-*getName = *mapscriptc::OWSRequest_getName;
-*getValue = *mapscriptc::OWSRequest_getValue;
-*getValueByName = *mapscriptc::OWSRequest_getValueByName;
-sub DISOWN {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    delete $OWNER{$ptr};
-}
-
-sub ACQUIRE {
-    my $self = shift;
-    my $ptr = tied(%$self);
-    $OWNER{$ptr} = 1;
-}
-
-
-# ------- VARIABLE STUBS --------
-
-package mapscript;
-
-*MS_TRUE = *mapscriptc::MS_TRUE;
-*MS_FALSE = *mapscriptc::MS_FALSE;
-*MS_UNKNOWN = *mapscriptc::MS_UNKNOWN;
-*MS_ON = *mapscriptc::MS_ON;
-*MS_OFF = *mapscriptc::MS_OFF;
-*MS_DEFAULT = *mapscriptc::MS_DEFAULT;
-*MS_EMBED = *mapscriptc::MS_EMBED;
-*MS_DELETE = *mapscriptc::MS_DELETE;
-*MS_YES = *mapscriptc::MS_YES;
-*MS_NO = *mapscriptc::MS_NO;
-*MS_GD_ALPHA = *mapscriptc::MS_GD_ALPHA;
-*MS_LAYER_ALLOCSIZE = *mapscriptc::MS_LAYER_ALLOCSIZE;
-*MS_CLASS_ALLOCSIZE = *mapscriptc::MS_CLASS_ALLOCSIZE;
-*MS_STYLE_ALLOCSIZE = *mapscriptc::MS_STYLE_ALLOCSIZE;
-*MS_LABEL_ALLOCSIZE = *mapscriptc::MS_LABEL_ALLOCSIZE;
-*MS_MAX_LABEL_PRIORITY = *mapscriptc::MS_MAX_LABEL_PRIORITY;
-*MS_MAX_LABEL_FONTS = *mapscriptc::MS_MAX_LABEL_FONTS;
-*MS_DEFAULT_LABEL_PRIORITY = *mapscriptc::MS_DEFAULT_LABEL_PRIORITY;
-*MS_LABEL_FORCE_GROUP = *mapscriptc::MS_LABEL_FORCE_GROUP;
-*MS_RENDER_WITH_SWF = *mapscriptc::MS_RENDER_WITH_SWF;
-*MS_RENDER_WITH_RAWDATA = *mapscriptc::MS_RENDER_WITH_RAWDATA;
-*MS_RENDER_WITH_IMAGEMAP = *mapscriptc::MS_RENDER_WITH_IMAGEMAP;
-*MS_RENDER_WITH_TEMPLATE = *mapscriptc::MS_RENDER_WITH_TEMPLATE;
-*MS_RENDER_WITH_OGR = *mapscriptc::MS_RENDER_WITH_OGR;
-*MS_RENDER_WITH_PLUGIN = *mapscriptc::MS_RENDER_WITH_PLUGIN;
-*MS_RENDER_WITH_CAIRO_RASTER = *mapscriptc::MS_RENDER_WITH_CAIRO_RASTER;
-*MS_RENDER_WITH_CAIRO_PDF = *mapscriptc::MS_RENDER_WITH_CAIRO_PDF;
-*MS_RENDER_WITH_CAIRO_SVG = *mapscriptc::MS_RENDER_WITH_CAIRO_SVG;
-*MS_RENDER_WITH_OGL = *mapscriptc::MS_RENDER_WITH_OGL;
-*MS_RENDER_WITH_AGG = *mapscriptc::MS_RENDER_WITH_AGG;
-*MS_RENDER_WITH_GD = *mapscriptc::MS_RENDER_WITH_GD;
-*MS_RENDER_WITH_KML = *mapscriptc::MS_RENDER_WITH_KML;
-*MS_FILE_MAP = *mapscriptc::MS_FILE_MAP;
-*MS_FILE_SYMBOL = *mapscriptc::MS_FILE_SYMBOL;
-*MS_INCHES = *mapscriptc::MS_INCHES;
-*MS_FEET = *mapscriptc::MS_FEET;
-*MS_MILES = *mapscriptc::MS_MILES;
-*MS_METERS = *mapscriptc::MS_METERS;
-*MS_KILOMETERS = *mapscriptc::MS_KILOMETERS;
-*MS_DD = *mapscriptc::MS_DD;
-*MS_PIXELS = *mapscriptc::MS_PIXELS;
-*MS_PERCENTAGES = *mapscriptc::MS_PERCENTAGES;
-*MS_NAUTICALMILES = *mapscriptc::MS_NAUTICALMILES;
-*MS_SHAPE_POINT = *mapscriptc::MS_SHAPE_POINT;
-*MS_SHAPE_LINE = *mapscriptc::MS_SHAPE_LINE;
-*MS_SHAPE_POLYGON = *mapscriptc::MS_SHAPE_POLYGON;
-*MS_SHAPE_NULL = *mapscriptc::MS_SHAPE_NULL;
-*MS_LAYER_POINT = *mapscriptc::MS_LAYER_POINT;
-*MS_LAYER_LINE = *mapscriptc::MS_LAYER_LINE;
-*MS_LAYER_POLYGON = *mapscriptc::MS_LAYER_POLYGON;
-*MS_LAYER_RASTER = *mapscriptc::MS_LAYER_RASTER;
-*MS_LAYER_ANNOTATION = *mapscriptc::MS_LAYER_ANNOTATION;
-*MS_LAYER_QUERY = *mapscriptc::MS_LAYER_QUERY;
-*MS_LAYER_CIRCLE = *mapscriptc::MS_LAYER_CIRCLE;
-*MS_LAYER_TILEINDEX = *mapscriptc::MS_LAYER_TILEINDEX;
-*MS_LAYER_CHART = *mapscriptc::MS_LAYER_CHART;
-*MS_TRUETYPE = *mapscriptc::MS_TRUETYPE;
-*MS_BITMAP = *mapscriptc::MS_BITMAP;
-*MS_POSITIONS_LENGTH = *mapscriptc::MS_POSITIONS_LENGTH;
-*MS_UL = *mapscriptc::MS_UL;
-*MS_LR = *mapscriptc::MS_LR;
-*MS_UR = *mapscriptc::MS_UR;
-*MS_LL = *mapscriptc::MS_LL;
-*MS_CR = *mapscriptc::MS_CR;
-*MS_CL = *mapscriptc::MS_CL;
-*MS_UC = *mapscriptc::MS_UC;
-*MS_LC = *mapscriptc::MS_LC;
-*MS_CC = *mapscriptc::MS_CC;
-*MS_AUTO = *mapscriptc::MS_AUTO;
-*MS_XY = *mapscriptc::MS_XY;
-*MS_FOLLOW = *mapscriptc::MS_FOLLOW;
-*MS_NONE = *mapscriptc::MS_NONE;
-*MS_AUTO2 = *mapscriptc::MS_AUTO2;
-*MS_TINY = *mapscriptc::MS_TINY;
-*MS_SMALL = *mapscriptc::MS_SMALL;
-*MS_MEDIUM = *mapscriptc::MS_MEDIUM;
-*MS_LARGE = *mapscriptc::MS_LARGE;
-*MS_GIANT = *mapscriptc::MS_GIANT;
-*MS_NORMAL = *mapscriptc::MS_NORMAL;
-*MS_HILITE = *mapscriptc::MS_HILITE;
-*MS_SELECTED = *mapscriptc::MS_SELECTED;
-*MS_INLINE = *mapscriptc::MS_INLINE;
-*MS_SHAPEFILE = *mapscriptc::MS_SHAPEFILE;
-*MS_TILED_SHAPEFILE = *mapscriptc::MS_TILED_SHAPEFILE;
-*MS_SDE = *mapscriptc::MS_SDE;
-*MS_OGR = *mapscriptc::MS_OGR;
-*MS_UNUSED_1 = *mapscriptc::MS_UNUSED_1;
-*MS_POSTGIS = *mapscriptc::MS_POSTGIS;
-*MS_WMS = *mapscriptc::MS_WMS;
-*MS_ORACLESPATIAL = *mapscriptc::MS_ORACLESPATIAL;
-*MS_WFS = *mapscriptc::MS_WFS;
-*MS_GRATICULE = *mapscriptc::MS_GRATICULE;
-*MS_MYSQL = *mapscriptc::MS_MYSQL;
-*MS_RASTER = *mapscriptc::MS_RASTER;
-*MS_PLUGIN = *mapscriptc::MS_PLUGIN;
-*MS_UNION = *mapscriptc::MS_UNION;
-*MS_UVRASTER = *mapscriptc::MS_UVRASTER;
-*MS_CONTOUR = *mapscriptc::MS_CONTOUR;
-*MS_DB_XBASE = *mapscriptc::MS_DB_XBASE;
-*MS_DB_CSV = *mapscriptc::MS_DB_CSV;
-*MS_DB_MYSQL = *mapscriptc::MS_DB_MYSQL;
-*MS_DB_ORACLE = *mapscriptc::MS_DB_ORACLE;
-*MS_DB_POSTGRES = *mapscriptc::MS_DB_POSTGRES;
-*MS_JOIN_ONE_TO_ONE = *mapscriptc::MS_JOIN_ONE_TO_ONE;
-*MS_JOIN_ONE_TO_MANY = *mapscriptc::MS_JOIN_ONE_TO_MANY;
-*MS_SINGLE = *mapscriptc::MS_SINGLE;
-*MS_MULTIPLE = *mapscriptc::MS_MULTIPLE;
-*MS_QUERY_SINGLE = *mapscriptc::MS_QUERY_SINGLE;
-*MS_QUERY_MULTIPLE = *mapscriptc::MS_QUERY_MULTIPLE;
-*MS_QUERY_IS_NULL = *mapscriptc::MS_QUERY_IS_NULL;
-*MS_QUERY_BY_POINT = *mapscriptc::MS_QUERY_BY_POINT;
-*MS_QUERY_BY_RECT = *mapscriptc::MS_QUERY_BY_RECT;
-*MS_QUERY_BY_SHAPE = *mapscriptc::MS_QUERY_BY_SHAPE;
-*MS_QUERY_BY_ATTRIBUTE = *mapscriptc::MS_QUERY_BY_ATTRIBUTE;
-*MS_QUERY_BY_INDEX = *mapscriptc::MS_QUERY_BY_INDEX;
-*MS_QUERY_BY_FILTER = *mapscriptc::MS_QUERY_BY_FILTER;
-*MS_ALIGN_LEFT = *mapscriptc::MS_ALIGN_LEFT;
-*MS_ALIGN_CENTER = *mapscriptc::MS_ALIGN_CENTER;
-*MS_ALIGN_RIGHT = *mapscriptc::MS_ALIGN_RIGHT;
-*MS_CJC_NONE = *mapscriptc::MS_CJC_NONE;
-*MS_CJC_BEVEL = *mapscriptc::MS_CJC_BEVEL;
-*MS_CJC_BUTT = *mapscriptc::MS_CJC_BUTT;
-*MS_CJC_MITER = *mapscriptc::MS_CJC_MITER;
-*MS_CJC_ROUND = *mapscriptc::MS_CJC_ROUND;
-*MS_CJC_SQUARE = *mapscriptc::MS_CJC_SQUARE;
-*MS_CJC_TRIANGLE = *mapscriptc::MS_CJC_TRIANGLE;
-*MS_CJC_DEFAULT_JOIN_MAXSIZE = *mapscriptc::MS_CJC_DEFAULT_JOIN_MAXSIZE;
-*MS_SUCCESS = *mapscriptc::MS_SUCCESS;
-*MS_FAILURE = *mapscriptc::MS_FAILURE;
-*MS_DONE = *mapscriptc::MS_DONE;
-*MS_IMAGEMODE_PC256 = *mapscriptc::MS_IMAGEMODE_PC256;
-*MS_IMAGEMODE_RGB = *mapscriptc::MS_IMAGEMODE_RGB;
-*MS_IMAGEMODE_RGBA = *mapscriptc::MS_IMAGEMODE_RGBA;
-*MS_IMAGEMODE_INT16 = *mapscriptc::MS_IMAGEMODE_INT16;
-*MS_IMAGEMODE_FLOAT32 = *mapscriptc::MS_IMAGEMODE_FLOAT32;
-*MS_IMAGEMODE_BYTE = *mapscriptc::MS_IMAGEMODE_BYTE;
-*MS_IMAGEMODE_FEATURE = *mapscriptc::MS_IMAGEMODE_FEATURE;
-*MS_IMAGEMODE_NULL = *mapscriptc::MS_IMAGEMODE_NULL;
-*MS_GEOS_EQUALS = *mapscriptc::MS_GEOS_EQUALS;
-*MS_GEOS_DISJOINT = *mapscriptc::MS_GEOS_DISJOINT;
-*MS_GEOS_TOUCHES = *mapscriptc::MS_GEOS_TOUCHES;
-*MS_GEOS_OVERLAPS = *mapscriptc::MS_GEOS_OVERLAPS;
-*MS_GEOS_CROSSES = *mapscriptc::MS_GEOS_CROSSES;
-*MS_GEOS_INTERSECTS = *mapscriptc::MS_GEOS_INTERSECTS;
-*MS_GEOS_WITHIN = *mapscriptc::MS_GEOS_WITHIN;
-*MS_GEOS_CONTAINS = *mapscriptc::MS_GEOS_CONTAINS;
-*MS_GEOS_BEYOND = *mapscriptc::MS_GEOS_BEYOND;
-*MS_GEOS_DWITHIN = *mapscriptc::MS_GEOS_DWITHIN;
-*MS_TRANSFORM_NONE = *mapscriptc::MS_TRANSFORM_NONE;
-*MS_TRANSFORM_ROUND = *mapscriptc::MS_TRANSFORM_ROUND;
-*MS_TRANSFORM_SNAPTOGRID = *mapscriptc::MS_TRANSFORM_SNAPTOGRID;
-*MS_TRANSFORM_FULLRESOLUTION = *mapscriptc::MS_TRANSFORM_FULLRESOLUTION;
-*MS_TRANSFORM_SIMPLIFY = *mapscriptc::MS_TRANSFORM_SIMPLIFY;
-*MS_STYLE_BINDING_LENGTH = *mapscriptc::MS_STYLE_BINDING_LENGTH;
-*MS_STYLE_BINDING_SIZE = *mapscriptc::MS_STYLE_BINDING_SIZE;
-*MS_STYLE_BINDING_WIDTH = *mapscriptc::MS_STYLE_BINDING_WIDTH;
-*MS_STYLE_BINDING_ANGLE = *mapscriptc::MS_STYLE_BINDING_ANGLE;
-*MS_STYLE_BINDING_COLOR = *mapscriptc::MS_STYLE_BINDING_COLOR;
-*MS_STYLE_BINDING_OUTLINECOLOR = *mapscriptc::MS_STYLE_BINDING_OUTLINECOLOR;
-*MS_STYLE_BINDING_SYMBOL = *mapscriptc::MS_STYLE_BINDING_SYMBOL;
-*MS_STYLE_BINDING_OUTLINEWIDTH = *mapscriptc::MS_STYLE_BINDING_OUTLINEWIDTH;
-*MS_STYLE_BINDING_OPACITY = *mapscriptc::MS_STYLE_BINDING_OPACITY;
-*MS_STYLE_BINDING_OFFSET_X = *mapscriptc::MS_STYLE_BINDING_OFFSET_X;
-*MS_STYLE_BINDING_OFFSET_Y = *mapscriptc::MS_STYLE_BINDING_OFFSET_Y;
-*MS_STYLE_BINDING_POLAROFFSET_PIXEL = *mapscriptc::MS_STYLE_BINDING_POLAROFFSET_PIXEL;
-*MS_STYLE_BINDING_POLAROFFSET_ANGLE = *mapscriptc::MS_STYLE_BINDING_POLAROFFSET_ANGLE;
-*MS_LABEL_BINDING_LENGTH = *mapscriptc::MS_LABEL_BINDING_LENGTH;
-*MS_LABEL_BINDING_SIZE = *mapscriptc::MS_LABEL_BINDING_SIZE;
-*MS_LABEL_BINDING_ANGLE = *mapscriptc::MS_LABEL_BINDING_ANGLE;
-*MS_LABEL_BINDING_COLOR = *mapscriptc::MS_LABEL_BINDING_COLOR;
-*MS_LABEL_BINDING_OUTLINECOLOR = *mapscriptc::MS_LABEL_BINDING_OUTLINECOLOR;
-*MS_LABEL_BINDING_FONT = *mapscriptc::MS_LABEL_BINDING_FONT;
-*MS_LABEL_BINDING_PRIORITY = *mapscriptc::MS_LABEL_BINDING_PRIORITY;
-*MS_LABEL_BINDING_POSITION = *mapscriptc::MS_LABEL_BINDING_POSITION;
-*MS_LABEL_BINDING_SHADOWSIZEX = *mapscriptc::MS_LABEL_BINDING_SHADOWSIZEX;
-*MS_LABEL_BINDING_SHADOWSIZEY = *mapscriptc::MS_LABEL_BINDING_SHADOWSIZEY;
-*MS_TOKEN_LOGICAL_AND = *mapscriptc::MS_TOKEN_LOGICAL_AND;
-*MS_TOKEN_LOGICAL_OR = *mapscriptc::MS_TOKEN_LOGICAL_OR;
-*MS_TOKEN_LOGICAL_NOT = *mapscriptc::MS_TOKEN_LOGICAL_NOT;
-*MS_TOKEN_LITERAL_NUMBER = *mapscriptc::MS_TOKEN_LITERAL_NUMBER;
-*MS_TOKEN_LITERAL_STRING = *mapscriptc::MS_TOKEN_LITERAL_STRING;
-*MS_TOKEN_LITERAL_TIME = *mapscriptc::MS_TOKEN_LITERAL_TIME;
-*MS_TOKEN_LITERAL_SHAPE = *mapscriptc::MS_TOKEN_LITERAL_SHAPE;
-*MS_TOKEN_COMPARISON_EQ = *mapscriptc::MS_TOKEN_COMPARISON_EQ;
-*MS_TOKEN_COMPARISON_NE = *mapscriptc::MS_TOKEN_COMPARISON_NE;
-*MS_TOKEN_COMPARISON_GT = *mapscriptc::MS_TOKEN_COMPARISON_GT;
-*MS_TOKEN_COMPARISON_LT = *mapscriptc::MS_TOKEN_COMPARISON_LT;
-*MS_TOKEN_COMPARISON_LE = *mapscriptc::MS_TOKEN_COMPARISON_LE;
-*MS_TOKEN_COMPARISON_GE = *mapscriptc::MS_TOKEN_COMPARISON_GE;
-*MS_TOKEN_COMPARISON_IEQ = *mapscriptc::MS_TOKEN_COMPARISON_IEQ;
-*MS_TOKEN_COMPARISON_RE = *mapscriptc::MS_TOKEN_COMPARISON_RE;
-*MS_TOKEN_COMPARISON_IRE = *mapscriptc::MS_TOKEN_COMPARISON_IRE;
-*MS_TOKEN_COMPARISON_IN = *mapscriptc::MS_TOKEN_COMPARISON_IN;
-*MS_TOKEN_COMPARISON_LIKE = *mapscriptc::MS_TOKEN_COMPARISON_LIKE;
-*MS_TOKEN_COMPARISON_INTERSECTS = *mapscriptc::MS_TOKEN_COMPARISON_INTERSECTS;
-*MS_TOKEN_COMPARISON_DISJOINT = *mapscriptc::MS_TOKEN_COMPARISON_DISJOINT;
-*MS_TOKEN_COMPARISON_TOUCHES = *mapscriptc::MS_TOKEN_COMPARISON_TOUCHES;
-*MS_TOKEN_COMPARISON_OVERLAPS = *mapscriptc::MS_TOKEN_COMPARISON_OVERLAPS;
-*MS_TOKEN_COMPARISON_CROSSES = *mapscriptc::MS_TOKEN_COMPARISON_CROSSES;
-*MS_TOKEN_COMPARISON_WITHIN = *mapscriptc::MS_TOKEN_COMPARISON_WITHIN;
-*MS_TOKEN_COMPARISON_CONTAINS = *mapscriptc::MS_TOKEN_COMPARISON_CONTAINS;
-*MS_TOKEN_COMPARISON_BEYOND = *mapscriptc::MS_TOKEN_COMPARISON_BEYOND;
-*MS_TOKEN_COMPARISON_DWITHIN = *mapscriptc::MS_TOKEN_COMPARISON_DWITHIN;
-*MS_TOKEN_FUNCTION_LENGTH = *mapscriptc::MS_TOKEN_FUNCTION_LENGTH;
-*MS_TOKEN_FUNCTION_TOSTRING = *mapscriptc::MS_TOKEN_FUNCTION_TOSTRING;
-*MS_TOKEN_FUNCTION_COMMIFY = *mapscriptc::MS_TOKEN_FUNCTION_COMMIFY;
-*MS_TOKEN_FUNCTION_AREA = *mapscriptc::MS_TOKEN_FUNCTION_AREA;
-*MS_TOKEN_FUNCTION_ROUND = *mapscriptc::MS_TOKEN_FUNCTION_ROUND;
-*MS_TOKEN_FUNCTION_FROMTEXT = *mapscriptc::MS_TOKEN_FUNCTION_FROMTEXT;
-*MS_TOKEN_FUNCTION_BUFFER = *mapscriptc::MS_TOKEN_FUNCTION_BUFFER;
-*MS_TOKEN_FUNCTION_DIFFERENCE = *mapscriptc::MS_TOKEN_FUNCTION_DIFFERENCE;
-*MS_TOKEN_FUNCTION_SIMPLIFY = *mapscriptc::MS_TOKEN_FUNCTION_SIMPLIFY;
-*MS_TOKEN_FUNCTION_SIMPLIFYPT = *mapscriptc::MS_TOKEN_FUNCTION_SIMPLIFYPT;
-*MS_TOKEN_FUNCTION_GENERALIZE = *mapscriptc::MS_TOKEN_FUNCTION_GENERALIZE;
-*MS_TOKEN_FUNCTION_SMOOTHSIA = *mapscriptc::MS_TOKEN_FUNCTION_SMOOTHSIA;
-*MS_TOKEN_BINDING_DOUBLE = *mapscriptc::MS_TOKEN_BINDING_DOUBLE;
-*MS_TOKEN_BINDING_INTEGER = *mapscriptc::MS_TOKEN_BINDING_INTEGER;
-*MS_TOKEN_BINDING_STRING = *mapscriptc::MS_TOKEN_BINDING_STRING;
-*MS_TOKEN_BINDING_TIME = *mapscriptc::MS_TOKEN_BINDING_TIME;
-*MS_TOKEN_BINDING_SHAPE = *mapscriptc::MS_TOKEN_BINDING_SHAPE;
-*MS_TOKEN_BINDING_MAP_CELLSIZE = *mapscriptc::MS_TOKEN_BINDING_MAP_CELLSIZE;
-*MS_TOKEN_BINDING_DATA_CELLSIZE = *mapscriptc::MS_TOKEN_BINDING_DATA_CELLSIZE;
-*MS_PARSE_TYPE_BOOLEAN = *mapscriptc::MS_PARSE_TYPE_BOOLEAN;
-*MS_PARSE_TYPE_STRING = *mapscriptc::MS_PARSE_TYPE_STRING;
-*MS_PARSE_TYPE_SHAPE = *mapscriptc::MS_PARSE_TYPE_SHAPE;
-*MS_NOOVERRIDE = *mapscriptc::MS_NOOVERRIDE;
-*SHX_BUFFER_PAGE = *mapscriptc::SHX_BUFFER_PAGE;
-*MS_SHAPEFILE_POINT = *mapscriptc::MS_SHAPEFILE_POINT;
-*MS_SHAPEFILE_ARC = *mapscriptc::MS_SHAPEFILE_ARC;
-*MS_SHAPEFILE_POLYGON = *mapscriptc::MS_SHAPEFILE_POLYGON;
-*MS_SHAPEFILE_MULTIPOINT = *mapscriptc::MS_SHAPEFILE_MULTIPOINT;
-*MS_SHP_POINTZ = *mapscriptc::MS_SHP_POINTZ;
-*MS_SHP_ARCZ = *mapscriptc::MS_SHP_ARCZ;
-*MS_SHP_POLYGONZ = *mapscriptc::MS_SHP_POLYGONZ;
-*MS_SHP_MULTIPOINTZ = *mapscriptc::MS_SHP_MULTIPOINTZ;
-*MS_SHP_POINTM = *mapscriptc::MS_SHP_POINTM;
-*MS_SHP_ARCM = *mapscriptc::MS_SHP_ARCM;
-*MS_SHP_POLYGONM = *mapscriptc::MS_SHP_POLYGONM;
-*MS_SHP_MULTIPOINTM = *mapscriptc::MS_SHP_MULTIPOINTM;
-*FTString = *mapscriptc::FTString;
-*FTInteger = *mapscriptc::FTInteger;
-*FTDouble = *mapscriptc::FTDouble;
-*FTInvalid = *mapscriptc::FTInvalid;
-*wkp_none = *mapscriptc::wkp_none;
-*wkp_lonlat = *mapscriptc::wkp_lonlat;
-*wkp_gmerc = *mapscriptc::wkp_gmerc;
-*MS_SYMBOL_SIMPLE = *mapscriptc::MS_SYMBOL_SIMPLE;
-*MS_SYMBOL_VECTOR = *mapscriptc::MS_SYMBOL_VECTOR;
-*MS_SYMBOL_ELLIPSE = *mapscriptc::MS_SYMBOL_ELLIPSE;
-*MS_SYMBOL_PIXMAP = *mapscriptc::MS_SYMBOL_PIXMAP;
-*MS_SYMBOL_TRUETYPE = *mapscriptc::MS_SYMBOL_TRUETYPE;
-*MS_SYMBOL_HATCH = *mapscriptc::MS_SYMBOL_HATCH;
-*MS_SYMBOL_SVG = *mapscriptc::MS_SYMBOL_SVG;
-*MS_SYMBOL_ALLOCSIZE = *mapscriptc::MS_SYMBOL_ALLOCSIZE;
-*MS_MAXVECTORPOINTS = *mapscriptc::MS_MAXVECTORPOINTS;
-*MS_MAXPATTERNLENGTH = *mapscriptc::MS_MAXPATTERNLENGTH;
-*MS_IMAGECACHESIZE = *mapscriptc::MS_IMAGECACHESIZE;
-*MS_NOERR = *mapscriptc::MS_NOERR;
-*MS_IOERR = *mapscriptc::MS_IOERR;
-*MS_MEMERR = *mapscriptc::MS_MEMERR;
-*MS_TYPEERR = *mapscriptc::MS_TYPEERR;
-*MS_SYMERR = *mapscriptc::MS_SYMERR;
-*MS_REGEXERR = *mapscriptc::MS_REGEXERR;
-*MS_TTFERR = *mapscriptc::MS_TTFERR;
-*MS_DBFERR = *mapscriptc::MS_DBFERR;
-*MS_GDERR = *mapscriptc::MS_GDERR;
-*MS_IDENTERR = *mapscriptc::MS_IDENTERR;
-*MS_EOFERR = *mapscriptc::MS_EOFERR;
-*MS_PROJERR = *mapscriptc::MS_PROJERR;
-*MS_MISCERR = *mapscriptc::MS_MISCERR;
-*MS_CGIERR = *mapscriptc::MS_CGIERR;
-*MS_WEBERR = *mapscriptc::MS_WEBERR;
-*MS_IMGERR = *mapscriptc::MS_IMGERR;
-*MS_HASHERR = *mapscriptc::MS_HASHERR;
-*MS_JOINERR = *mapscriptc::MS_JOINERR;
-*MS_NOTFOUND = *mapscriptc::MS_NOTFOUND;
-*MS_SHPERR = *mapscriptc::MS_SHPERR;
-*MS_PARSEERR = *mapscriptc::MS_PARSEERR;
-*MS_SDEERR = *mapscriptc::MS_SDEERR;
-*MS_OGRERR = *mapscriptc::MS_OGRERR;
-*MS_QUERYERR = *mapscriptc::MS_QUERYERR;
-*MS_WMSERR = *mapscriptc::MS_WMSERR;
-*MS_WMSCONNERR = *mapscriptc::MS_WMSCONNERR;
-*MS_ORACLESPATIALERR = *mapscriptc::MS_ORACLESPATIALERR;
-*MS_WFSERR = *mapscriptc::MS_WFSERR;
-*MS_WFSCONNERR = *mapscriptc::MS_WFSCONNERR;
-*MS_MAPCONTEXTERR = *mapscriptc::MS_MAPCONTEXTERR;
-*MS_HTTPERR = *mapscriptc::MS_HTTPERR;
-*MS_CHILDERR = *mapscriptc::MS_CHILDERR;
-*MS_WCSERR = *mapscriptc::MS_WCSERR;
-*MS_GEOSERR = *mapscriptc::MS_GEOSERR;
-*MS_RECTERR = *mapscriptc::MS_RECTERR;
-*MS_TIMEERR = *mapscriptc::MS_TIMEERR;
-*MS_GMLERR = *mapscriptc::MS_GMLERR;
-*MS_SOSERR = *mapscriptc::MS_SOSERR;
-*MS_NULLPARENTERR = *mapscriptc::MS_NULLPARENTERR;
-*MS_AGGERR = *mapscriptc::MS_AGGERR;
-*MS_OWSERR = *mapscriptc::MS_OWSERR;
-*MS_OGLERR = *mapscriptc::MS_OGLERR;
-*MS_RENDERERERR = *mapscriptc::MS_RENDERERERR;
-*MS_NUMERRORCODES = *mapscriptc::MS_NUMERRORCODES;
-*MESSAGELENGTH = *mapscriptc::MESSAGELENGTH;
-*ROUTINELENGTH = *mapscriptc::ROUTINELENGTH;
-*MS_ERROR_LANGUAGE = *mapscriptc::MS_ERROR_LANGUAGE;
-*MS_DEBUGLEVEL_ERRORSONLY = *mapscriptc::MS_DEBUGLEVEL_ERRORSONLY;
-*MS_DEBUGLEVEL_DEBUG = *mapscriptc::MS_DEBUGLEVEL_DEBUG;
-*MS_DEBUGLEVEL_TUNING = *mapscriptc::MS_DEBUGLEVEL_TUNING;
-*MS_DEBUGLEVEL_V = *mapscriptc::MS_DEBUGLEVEL_V;
-*MS_DEBUGLEVEL_VV = *mapscriptc::MS_DEBUGLEVEL_VV;
-*MS_DEBUGLEVEL_VVV = *mapscriptc::MS_DEBUGLEVEL_VVV;
-*MS_HASHSIZE = *mapscriptc::MS_HASHSIZE;
-*MS_DEFAULT_CGI_PARAMS = *mapscriptc::MS_DEFAULT_CGI_PARAMS;
-*MS_GET_REQUEST = *mapscriptc::MS_GET_REQUEST;
-*MS_POST_REQUEST = *mapscriptc::MS_POST_REQUEST;
-
-        %PARENT_PTRS=();
-        sub RFC24_ADD_PARENT_REF {
-                my ($child, $parent)=@_;
-                $PARENT_PTRS{ $$child }=$parent;
-        }
-        sub RFC24_DEL_PARENT_REF {
-                my ($child)=@_;
-                delete $PARENT_PTRS{ $$child };
-        }
-
-        # USE THIS function only for debugging!
-        sub getPARENT_PTRS {
-                return \%PARENT_PTRS;
-        }
-1;
diff --git a/mapscript/perl/mapscript_wrap.c b/mapscript/perl/mapscript_wrap.c
deleted file mode 100644
index 106a2b6..0000000
--- a/mapscript/perl/mapscript_wrap.c
+++ /dev/null
@@ -1,47916 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- * 
- * This file is not intended to be easily readable and contains a number of 
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG 
- * interface file instead. 
- * ----------------------------------------------------------------------------- */
-
-#define SWIGPERL
-#define SWIG_CASTRANK_MODE
-
-/* -----------------------------------------------------------------------------
- *  This section contains generic SWIG labels for method/variable
- *  declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-#  define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-#   define SWIGINLINE inline
-# else
-#   define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-#     define SWIGUNUSED __attribute__ ((__unused__)) 
-#   else
-#     define SWIGUNUSED
-#   endif
-# elif defined(__ICC)
-#   define SWIGUNUSED __attribute__ ((__unused__)) 
-# else
-#   define SWIGUNUSED 
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif 
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-#   define SWIGUNUSEDPARM(p)
-# else
-#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-#  ifndef GCC_HASCLASSVISIBILITY
-#    define GCC_HASCLASSVISIBILITY
-#  endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   if defined(STATIC_LINKED)
-#     define SWIGEXPORT
-#   else
-#     define SWIGEXPORT __declspec(dllexport)
-#   endif
-# else
-#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-#     define SWIGEXPORT __attribute__ ((visibility("default")))
-#   else
-#     define SWIGEXPORT
-#   endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   define SWIGSTDCALL __stdcall
-# else
-#   define SWIGSTDCALL
-# endif 
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
-   or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
-  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
-  creating a static or dynamic library from the SWIG runtime code.
-  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-  
-  But only do this if strictly necessary, ie, if you have problems
-  with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/*  Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN        0x1
-#define SWIG_CAST_NEW_MEMORY       0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN           0x1
-
-
-/* 
-   Flags/methods for returning states.
-   
-   The SWIG conversion methods, as ConvertPtr, return an integer 
-   that tells if the conversion was successful or not. And if not,
-   an error code can be returned (see swigerrors.swg for the codes).
-   
-   Use the following macros/flags to set or process the returning
-   states.
-   
-   In old versions of SWIG, code such as the following was usually written:
-
-     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
-       // success code
-     } else {
-       //fail code
-     }
-
-   Now you can be more explicit:
-
-    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-    } else {
-      // fail code
-    }
-
-   which is the same really, but now you can also do
-
-    Type *ptr;
-    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-      if (SWIG_IsNewObj(res) {
-        ...
-	delete *ptr;
-      } else {
-        ...
-      }
-    } else {
-      // fail code
-    }
-    
-   I.e., now SWIG_ConvertPtr can return new objects and you can
-   identify the case and take care of the deallocation. Of course that
-   also requires SWIG_ConvertPtr to return new result values, such as
-
-      int SWIG_ConvertPtr(obj, ptr,...) {         
-        if (<obj is ok>) {			       
-          if (<need new object>) {		       
-            *ptr = <ptr to new allocated object>; 
-            return SWIG_NEWOBJ;		       
-          } else {				       
-            *ptr = <ptr to old object>;	       
-            return SWIG_OLDOBJ;		       
-          } 				       
-        } else {				       
-          return SWIG_BADOBJ;		       
-        }					       
-      }
-
-   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
-   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
-   SWIG errors code.
-
-   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
-   allows to return the 'cast rank', for example, if you have this
-
-       int food(double)
-       int fooi(int);
-
-   and you call
- 
-      food(1)   // cast rank '1'  (1 -> 1.0)
-      fooi(1)   // cast rank '0'
-
-   just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK                    (0) 
-#define SWIG_ERROR                 (-1)
-#define SWIG_IsOK(r)               (r >= 0)
-#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT         (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ                (SWIG_ERROR)
-#define SWIG_OLDOBJ                (SWIG_OK)
-#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-#  ifndef SWIG_TypeRank
-#    define SWIG_TypeRank             unsigned long
-#  endif
-#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
-#    define SWIG_MAXCASTRANK          (2)
-#  endif
-#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
-#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) { 
-  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) { 
-  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
-}
-#else /* no cast-rank mode */
-#  define SWIG_AddCast
-#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
-  const char             *name;			/* mangled name of this type */
-  const char             *str;			/* human readable name of this type */
-  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
-  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
-  void                   *clientdata;		/* language specific type data */
-  int                    owndata;		/* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
-  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
-  swig_converter_func     converter;		/* function to cast the void pointers */
-  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
-  struct swig_cast_info  *prev;			/* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
-  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
-  size_t                 size;		        /* Number of types in this module */
-  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
-  swig_type_info         **type_initial;	/* Array of initially generated type structures */
-  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
-  void                    *clientdata;		/* Language specific module data */
-} swig_module_info;
-
-/* 
-  Compare two type names skipping the space characters, therefore
-  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
-  Return 0 when the two name types are equivalent, as in
-  strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
-		  const char *f2, const char *l2) {
-  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
-    while ((*f1 == ' ') && (f1 != l1)) ++f1;
-    while ((*f2 == ' ') && (f2 != l2)) ++f2;
-    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
-  }
-  return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-
-/*
-  Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (strcmp(iter->type->name, c) == 0) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/* 
-  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (iter->type == from) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/*
-  Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
-  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/* 
-   Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
-  swig_type_info *lastty = ty;
-  if (!ty || !ty->dcast) return ty;
-  while (ty && (ty->dcast)) {
-    ty = (*ty->dcast)(ptr);
-    if (ty) lastty = ty;
-  }
-  return lastty;
-}
-
-/*
-  Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
-  return ty->name;
-}
-
-/*
-  Return the pretty name associated with this type,
-  that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
-  /* The "str" field contains the equivalent pretty names of the
-     type, separated by vertical-bar characters.  We choose
-     to print the last name, as it is often (?) the most
-     specific. */
-  if (!type) return NULL;
-  if (type->str != NULL) {
-    const char *last_name = type->str;
-    const char *s;
-    for (s = type->str; *s; s++)
-      if (*s == '|') last_name = s+1;
-    return last_name;
-  }
-  else
-    return type->name;
-}
-
-/* 
-   Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
-  swig_cast_info *cast = ti->cast;
-  /* if (ti->clientdata == clientdata) return; */
-  ti->clientdata = clientdata;
-  
-  while (cast) {
-    if (!cast->converter) {
-      swig_type_info *tc = cast->type;
-      if (!tc->clientdata) {
-	SWIG_TypeClientData(tc, clientdata);
-      }
-    }    
-    cast = cast->next;
-  }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
-  SWIG_TypeClientData(ti, clientdata);
-  ti->owndata = 1;
-}
-  
-/*
-  Search for a swig_type_info structure only by mangled name
-  Search is a O(log #types)
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start, 
-                            swig_module_info *end, 
-		            const char *name) {
-  swig_module_info *iter = start;
-  do {
-    if (iter->size) {
-      register size_t l = 0;
-      register size_t r = iter->size - 1;
-      do {
-	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
-	register size_t i = (l + r) >> 1; 
-	const char *iname = iter->types[i]->name;
-	if (iname) {
-	  register int compare = strcmp(name, iname);
-	  if (compare == 0) {	    
-	    return iter->types[i];
-	  } else if (compare < 0) {
-	    if (i) {
-	      r = i - 1;
-	    } else {
-	      break;
-	    }
-	  } else if (compare > 0) {
-	    l = i + 1;
-	  }
-	} else {
-	  break; /* should never happen */
-	}
-      } while (l <= r);
-    }
-    iter = iter->next;
-  } while (iter != end);
-  return 0;
-}
-
-/*
-  Search for a swig_type_info structure for either a mangled name or a human readable name.
-  It first searches the mangled names of the types, which is a O(log #types)
-  If a type is not found it then searches the human readable names, which is O(#types).
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start, 
-                     swig_module_info *end, 
-		     const char *name) {
-  /* STEP 1: Search the name field using binary search */
-  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
-  if (ret) {
-    return ret;
-  } else {
-    /* STEP 2: If the type hasn't been found, do a complete search
-       of the str field (the human readable name) */
-    swig_module_info *iter = start;
-    do {
-      register size_t i = 0;
-      for (; i < iter->size; ++i) {
-	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
-	  return iter->types[i];
-      }
-      iter = iter->next;
-    } while (iter != end);
-  }
-  
-  /* neither found a match */
-  return 0;
-}
-
-/* 
-   Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
-  static const char hex[17] = "0123456789abcdef";
-  register const unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu =  u + sz;
-  for (; u != eu; ++u) {
-    register unsigned char uu = *u;
-    *(c++) = hex[(uu & 0xf0) >> 4];
-    *(c++) = hex[uu & 0xf];
-  }
-  return c;
-}
-
-/* 
-   Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
-  register unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu = u + sz;
-  for (; u != eu; ++u) {
-    register char d = *(c++);
-    register unsigned char uu;
-    if ((d >= '0') && (d <= '9'))
-      uu = ((d - '0') << 4);
-    else if ((d >= 'a') && (d <= 'f'))
-      uu = ((d - ('a'-10)) << 4);
-    else 
-      return (char *) 0;
-    d = *(c++);
-    if ((d >= '0') && (d <= '9'))
-      uu |= (d - '0');
-    else if ((d >= 'a') && (d <= 'f'))
-      uu |= (d - ('a'-10));
-    else 
-      return (char *) 0;
-    *u = uu;
-  }
-  return c;
-}
-
-/* 
-   Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
-  char *r = buff;
-  if ((2*sizeof(void *) + 2) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,&ptr,sizeof(void *));
-  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
-  strcpy(r,name);
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      *ptr = (void *) 0;
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
-  char *r = buff;
-  size_t lname = (name ? strlen(name) : 0);
-  if ((2*sz + 2 + lname) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,ptr,sz);
-  if (lname) {
-    strncpy(r,name,lname+1);
-  } else {
-    *r = 0;
-  }
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      memset(ptr,0,sz);
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/*  Errors in SWIG */
-#define  SWIG_UnknownError    	   -1 
-#define  SWIG_IOError        	   -2 
-#define  SWIG_RuntimeError   	   -3 
-#define  SWIG_IndexError     	   -4 
-#define  SWIG_TypeError      	   -5 
-#define  SWIG_DivisionByZero 	   -6 
-#define  SWIG_OverflowError  	   -7 
-#define  SWIG_SyntaxError    	   -8 
-#define  SWIG_ValueError     	   -9 
-#define  SWIG_SystemError    	   -10
-#define  SWIG_AttributeError 	   -11
-#define  SWIG_MemoryError    	   -12 
-#define  SWIG_NullReferenceError   -13
-
-
-
-#ifdef __cplusplus
-/* Needed on some windows machines---since MS plays funny games with the header files under C++ */
-#include <math.h>
-#include <stdlib.h>
-extern "C" {
-#endif
-#include "EXTERN.h"
-#include "perl.h"
-#include "XSUB.h"
-
-/* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */
-
-/* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
-#ifndef PERL_REVISION
-#  if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
-#    define PERL_PATCHLEVEL_H_IMPLICIT
-#    include <patchlevel.h>
-#  endif
-#  if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
-#    include <could_not_find_Perl_patchlevel.h>
-#  endif
-#  ifndef PERL_REVISION
-#    define PERL_REVISION       (5)
-#    define PERL_VERSION        PATCHLEVEL
-#    define PERL_SUBVERSION     SUBVERSION
-#  endif
-#endif
-
-#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
-#define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
-#endif
-
-#ifndef SvIOK_UV
-# define SvIOK_UV(sv)       (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
-#endif
-
-#ifndef SvUOK
-# define SvUOK(sv)           SvIOK_UV(sv)
-#endif
-
-#if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
-#  define PL_sv_undef               sv_undef
-#  define PL_na	                    na
-#  define PL_errgv                  errgv
-#  define PL_sv_no                  sv_no
-#  define PL_sv_yes                 sv_yes
-#  define PL_markstack_ptr          markstack_ptr
-#endif
-
-#ifndef IVSIZE
-#  ifdef LONGSIZE
-#    define IVSIZE LONGSIZE
-#  else
-#    define IVSIZE 4 /* A bold guess, but the best we can make. */
-#  endif
-#endif
-
-#ifndef INT2PTR
-#  if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
-#    define PTRV                  UV
-#    define INT2PTR(any,d)        (any)(d)
-#  else
-#    if PTRSIZE == LONGSIZE
-#      define PTRV                unsigned long
-#    else
-#      define PTRV                unsigned
-#    endif
-#    define INT2PTR(any,d)        (any)(PTRV)(d)
-#  endif
-
-#  define NUM2PTR(any,d)  (any)(PTRV)(d)
-#  define PTR2IV(p)       INT2PTR(IV,p)
-#  define PTR2UV(p)       INT2PTR(UV,p)
-#  define PTR2NV(p)       NUM2PTR(NV,p)
-
-#  if PTRSIZE == LONGSIZE
-#    define PTR2ul(p)     (unsigned long)(p)
-#  else
-#    define PTR2ul(p)     INT2PTR(unsigned long,p)
-#  endif
-#endif /* !INT2PTR */
-
-#ifndef SvPV_nolen
-# define SvPV_nolen(x) SvPV(x,PL_na)
-#endif
-
-#ifndef get_sv
-#  define get_sv perl_get_sv
-#endif
-
-#ifndef ERRSV
-#  define ERRSV get_sv("@",FALSE)
-#endif
-
-#ifndef pTHX_
-#define pTHX_
-#endif   
-
-#include <string.h>
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-SWIGINTERN const char*
-SWIG_Perl_ErrorType(int code) {
-  switch(code) {
-  case SWIG_MemoryError:
-    return "MemoryError";
-  case SWIG_IOError:
-    return "IOError";
-  case SWIG_RuntimeError:
-    return "RuntimeError";
-  case SWIG_IndexError:
-    return "IndexError";
-  case SWIG_TypeError:
-    return "TypeError";
-  case SWIG_DivisionByZero:
-    return "ZeroDivisionError";
-  case SWIG_OverflowError:
-    return "OverflowError";
-  case SWIG_SyntaxError:
-    return "SyntaxError";
-  case SWIG_ValueError:
-    return "ValueError";
-  case SWIG_SystemError:
-    return "SystemError";
-  case SWIG_AttributeError:
-    return "AttributeError";
-  default:
-    return "RuntimeError";
-  }
-}
-
-
-/* -----------------------------------------------------------------------------
- * perlrun.swg
- *
- * This file contains the runtime support for Perl modules
- * and includes code for managing global variables and pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-#ifdef PERL_OBJECT
-#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
-#define SWIG_PERL_OBJECT_CALL pPerl,
-#else
-#define SWIG_PERL_OBJECT_DECL
-#define SWIG_PERL_OBJECT_CALL
-#endif
-
-/* Common SWIG API */
-
-/* for raw pointers */
-#define SWIG_ConvertPtr(obj, pp, type, flags)           SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
-#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
-#define SWIG_NewPointerObj(p, type, flags)              SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, p, s, type)             SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
-#define SWIG_NewPackedObj(p, s, type)	                SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_ConvertPtr(obj, pptr, type, 0)
-#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_NewPointerObj(ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata)                      SWIG_Perl_GetModule()
-#define SWIG_SetModule(clientdata, pointer)             SWIG_Perl_SetModule(pointer)
-
-
-/* Error manipulation */
-
-#define SWIG_ErrorType(code)                            SWIG_Perl_ErrorType(code)               
-#define SWIG_Error(code, msg)            		sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
-#define SWIG_fail                        		goto fail						    
-
-/* Perl-specific SWIG API */
-
-#define SWIG_MakePtr(sv, ptr, type, flags)              SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
-#define SWIG_MakePackedObj(sv, p, s, type)	        SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
-#define SWIG_SetError(str)                              SWIG_Error(SWIG_RuntimeError, str)
-
-
-#define SWIG_PERL_DECL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_DECL arg1)
-#define SWIG_PERL_CALL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_CALL arg1)
-#define SWIG_PERL_DECL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_DECL arg1, arg2)
-#define SWIG_PERL_CALL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_CALL arg1, arg2)
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-/* For backward compatibility only */
-#define SWIG_POINTER_EXCEPTION  0
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define SWIG_OWNER   SWIG_POINTER_OWN
-#define SWIG_SHADOW  SWIG_OWNER << 1
-
-#define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL
-
-/* SWIG Perl macros */
-
-/* Macro to declare an XS function */
-#ifndef XSPROTO
-#   define XSPROTO(name) void name(pTHX_ CV* cv)
-#endif
-
-/* Macro to call an XS function */
-#ifdef PERL_OBJECT 
-#  define SWIG_CALLXS(_name) _name(cv,pPerl) 
-#else 
-#  ifndef MULTIPLICITY 
-#    define SWIG_CALLXS(_name) _name(cv) 
-#  else 
-#    define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) 
-#  endif 
-#endif 
-
-#ifdef PERL_OBJECT
-#define MAGIC_PPERL  CPerlObj *pPerl = (CPerlObj *) this;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
-#ifdef __cplusplus
-}
-#endif
-
-#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
-#define SWIGCLASS_STATIC
-
-#else /* PERL_OBJECT */
-
-#define MAGIC_PPERL
-#define SWIGCLASS_STATIC static SWIGUNUSED
-
-#ifndef MULTIPLICITY
-#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-typedef int (*SwigMagicFunc)(SV *, MAGIC *);
-#ifdef __cplusplus
-}
-#endif
-
-#else /* MULTIPLICITY */
-
-#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* MULTIPLICITY */
-#endif /* PERL_OBJECT */
-
-#  ifdef PERL_OBJECT
-#    define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
-static void SWIG_Perl_croak_null(CPerlObj *pPerl)
-#  else
-static void SWIG_croak_null()
-#  endif
-{
-  SV *err = get_sv("@", GV_ADD);
-#  if (PERL_VERSION < 6)
-  croak("%_", err);
-#  else
-  if (sv_isobject(err))
-    croak(0);
-  else
-    croak("%s", SvPV_nolen(err));
-#  endif
-}
-
-
-/* 
-   Define how strict is the cast between strings and integers/doubles
-   when overloading between these types occurs.
-   
-   The default is making it as strict as possible by using SWIG_AddCast
-   when needed.
-   
-   You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
-   disable the SWIG_AddCast, making the casting between string and
-   numbers less strict.
-
-   In the end, we try to solve the overloading between strings and
-   numerical types in the more natural way, but if you can avoid it,
-   well, avoid it using %rename, for example.
-*/
-#ifndef SWIG_PERL_NO_STRICT_STR2NUM
-# ifndef SWIG_PERL_STRICT_STR2NUM
-#  define SWIG_PERL_STRICT_STR2NUM
-# endif
-#endif
-#ifdef SWIG_PERL_STRICT_STR2NUM
-/* string takes precedence */
-#define SWIG_Str2NumCast(x) SWIG_AddCast(x)  
-#else
-/* number takes precedence */
-#define SWIG_Str2NumCast(x) x
-#endif
-
-
-
-#include <stdlib.h>
-
-SWIGRUNTIME const char *
-SWIG_Perl_TypeProxyName(const swig_type_info *type) {
-  if (!type) return NULL;
-  if (type->clientdata != NULL) {
-    return (const char*) type->clientdata;
-  } 
-  else {
-    return type->name;
-  }
-}
-
-/* Identical to SWIG_TypeCheck, except for strcmp comparison */
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/* Function for getting a pointer value */
-
-SWIGRUNTIME int
-SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
-  swig_cast_info *tc;
-  void *voidptr = (void *)0;
-  SV *tsv = 0;
-
-  if (own)
-    *own = 0;
-
-  /* If magical, apply more magic */
-  if (SvGMAGICAL(sv))
-    mg_get(sv);
-
-  /* Check to see if this is an object */
-  if (sv_isobject(sv)) {
-    IV tmp = 0;
-    tsv = (SV*) SvRV(sv);
-    if ((SvTYPE(tsv) == SVt_PVHV)) {
-      MAGIC *mg;
-      if (SvMAGICAL(tsv)) {
-        mg = mg_find(tsv,'P');
-        if (mg) {
-          sv = mg->mg_obj;
-          if (sv_isobject(sv)) {
-	    tsv = (SV*)SvRV(sv);
-            tmp = SvIV(tsv);
-          }
-        }
-      } else {
-        return SWIG_ERROR;
-      }
-    } else {
-      tmp = SvIV(tsv);
-    }
-    voidptr = INT2PTR(void *,tmp);
-  } else if (! SvOK(sv)) {            /* Check for undef */
-    *(ptr) = (void *) 0;
-    return SWIG_OK;
-  } else if (SvTYPE(sv) == SVt_RV) {  /* Check for NULL pointer */
-    if (!SvROK(sv)) {
-      /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value.  */
-      if (SvIOK(sv)) {
-        return SWIG_ERROR;
-      } else {
-        /* NULL pointer (reference to undef). */
-        *(ptr) = (void *) 0;
-        return SWIG_OK;
-      }
-    } else {
-      return SWIG_ERROR;
-    }
-  } else {                            /* Don't know what it is */
-    return SWIG_ERROR;
-  }
-  if (_t) {
-    /* Now see if the types match */
-    char *_c = HvNAME(SvSTASH(SvRV(sv)));
-    tc = SWIG_TypeProxyCheck(_c,_t);
-    if (!tc) {
-      return SWIG_ERROR;
-    }
-    {
-      int newmemory = 0;
-      *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
-      if (newmemory == SWIG_CAST_NEW_MEMORY) {
-        assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
-        if (own)
-          *own = *own | SWIG_CAST_NEW_MEMORY;
-      }
-    }
-  } else {
-    *ptr = voidptr;
-  }
-
-  /* 
-   *  DISOWN implementation: we need a perl guru to check this one.
-   */
-  if (tsv && (flags & SWIG_POINTER_DISOWN)) {
-    /* 
-     *  almost copy paste code from below SWIG_POINTER_OWN setting
-     */
-    SV *obj = sv;
-    HV *stash = SvSTASH(SvRV(obj));
-    GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
-    if (isGV(gv)) {
-      HV *hv = GvHVn(gv);
-      /*
-       * To set ownership (see below), a newSViv(1) entry is added. 
-       * Hence, to remove ownership, we delete the entry.
-       */
-      if (hv_exists_ent(hv, obj, 0)) {
-	hv_delete_ent(hv, obj, 0, 0);
-      }
-    }
-  }
-  return SWIG_OK;
-}
-
-SWIGRUNTIME int
-SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
-  return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
-}
-
-SWIGRUNTIME void
-SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
-  if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
-    SV *self;
-    SV *obj=newSV(0);
-    HV *hash=newHV();
-    HV *stash;
-    sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
-    stash=SvSTASH(SvRV(obj));
-    if (flags & SWIG_POINTER_OWN) {
-      HV *hv;
-      GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
-      if (!isGV(gv))
-        gv_init(gv, stash, "OWNER", 5, FALSE);
-      hv=GvHVn(gv);
-      hv_store_ent(hv, obj, newSViv(1), 0);
-    }
-    sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
-    SvREFCNT_dec(obj);
-    self=newRV_noinc((SV *)hash);
-    sv_setsv(sv, self);
-    SvREFCNT_dec((SV *)self);
-    sv_bless(sv, stash);
-  }
-  else {
-    sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
-  }
-}
-
-SWIGRUNTIMEINLINE SV *
-SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
-  SV *result = sv_newmortal();
-  SWIG_MakePtr(result, ptr, t, flags);
-  return result;
-}
-
-SWIGRUNTIME void
-SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
-  char result[1024];
-  char *r = result;
-  if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
-  *(r++) = '_';
-  r = SWIG_PackData(r,ptr,sz);
-  strcpy(r,SWIG_Perl_TypeProxyName(type));
-  sv_setpv(sv, result);
-}
-
-SWIGRUNTIME SV *
-SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
-  SV *result = sv_newmortal();
-  SWIG_Perl_MakePackedObj(result, ptr, sz, type);
-  return result;
-}
-
-/* Convert a packed value value */
-SWIGRUNTIME int
-SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
-  swig_cast_info *tc;
-  const char  *c = 0;
-
-  if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
-  c = SvPV_nolen(obj);
-  /* Pointer values must start with leading underscore */
-  if (*c != '_') return SWIG_ERROR;
-  c++;
-  c = SWIG_UnpackData(c,ptr,sz);
-  if (ty) {
-    tc = SWIG_TypeCheck(c,ty);
-    if (!tc) return SWIG_ERROR;
-  }
-  return SWIG_OK;
-}
-
-
-/* Macros for low-level exception handling */
-#define SWIG_croak(x)    { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }
-
-
-typedef XSPROTO(SwigPerlWrapper);
-typedef SwigPerlWrapper *SwigPerlWrapperPtr;
-
-/* Structure for command table */
-typedef struct {
-  const char         *name;
-  SwigPerlWrapperPtr  wrapper;
-} swig_command_info;
-
-/* Information for constant table */
-
-#define SWIG_INT     1
-#define SWIG_FLOAT   2
-#define SWIG_STRING  3
-#define SWIG_POINTER 4
-#define SWIG_BINARY  5
-
-/* Constant information structure */
-typedef struct swig_constant_info {
-    int              type;
-    const char      *name;
-    long             lvalue;
-    double           dvalue;
-    void            *pvalue;
-    swig_type_info **ptype;
-} swig_constant_info;
-
-
-/* Structure for variable table */
-typedef struct {
-  const char   *name;
-  SwigMagicFunc   set;
-  SwigMagicFunc   get;
-  swig_type_info  **type;
-} swig_variable_info;
-
-/* Magic variable code */
-#ifndef PERL_OBJECT
-# ifdef __cplusplus
-#  define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
-# else
-#  define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
-# endif
-# ifndef MULTIPLICITY
-SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) 
-# else
-SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) 
-# endif
-#else
-#  define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
-SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) 
-#endif
-{
-  MAGIC *mg;
-  sv_magic(sv,sv,'U',name,strlen(name));
-  mg = mg_find(sv,'U');
-  mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
-  mg->mg_virtual->svt_get = (SwigMagicFunc) get;
-  mg->mg_virtual->svt_set = (SwigMagicFunc) set;
-  mg->mg_virtual->svt_len = 0;
-  mg->mg_virtual->svt_clear = 0;
-  mg->mg_virtual->svt_free = 0;
-}
-
-
-SWIGRUNTIME swig_module_info *
-SWIG_Perl_GetModule(void) {
-  static void *type_pointer = (void *)0;
-  SV *pointer;
-
-  /* first check if pointer already created */
-  if (!type_pointer) {
-    pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
-    if (pointer && SvOK(pointer)) {
-      type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
-    }
-  }
-
-  return (swig_module_info *) type_pointer;
-}
-
-SWIGRUNTIME void
-SWIG_Perl_SetModule(swig_module_info *module) {
-  SV *pointer;
-
-  /* create a new pointer */
-  pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
-  sv_setiv(pointer, PTR2IV(module));
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Workaround perl5 global namespace pollution. Note that undefining library
- * functions like fopen will not solve the problem on all platforms as fopen
- * might be a macro on Windows but not necessarily on other operating systems. */
-#ifdef do_open
-  #undef do_open
-#endif
-#ifdef do_close
-  #undef do_close
-#endif
-#ifdef do_exec
-  #undef do_exec
-#endif
-#ifdef scalar
-  #undef scalar
-#endif
-#ifdef list
-  #undef list
-#endif
-#ifdef apply
-  #undef apply
-#endif
-#ifdef convert
-  #undef convert
-#endif
-#ifdef Error
-  #undef Error
-#endif
-#ifdef form
-  #undef form
-#endif
-#ifdef vform
-  #undef vform
-#endif
-#ifdef LABEL
-  #undef LABEL
-#endif
-#ifdef METHOD
-  #undef METHOD
-#endif
-#ifdef Move
-  #undef Move
-#endif
-#ifdef yylex
-  #undef yylex
-#endif
-#ifdef yyparse
-  #undef yyparse
-#endif
-#ifdef yyerror
-  #undef yyerror
-#endif
-#ifdef invert
-  #undef invert
-#endif
-#ifdef ref
-  #undef ref
-#endif
-#ifdef read
-  #undef read
-#endif
-#ifdef write
-  #undef write
-#endif
-#ifdef eof
-  #undef eof
-#endif
-#ifdef bool
-  #undef bool
-#endif
-#ifdef close
-  #undef close
-#endif
-#ifdef rewind
-  #undef rewind
-#endif
-#ifdef free
-  #undef free
-#endif
-#ifdef malloc
-  #undef malloc
-#endif
-#ifdef calloc
-  #undef calloc
-#endif
-#ifdef Stat
-  #undef Stat
-#endif
-#ifdef check
-  #undef check
-#endif
-#ifdef seekdir
-  #undef seekdir
-#endif
-#ifdef open
-  #undef open
-#endif
-#ifdef readdir
-  #undef readdir
-#endif
-#ifdef bind
-  #undef bind
-#endif
-#ifdef access
-  #undef access
-#endif
-#ifdef stat
-  #undef stat
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 
-
-
-
-  #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) 
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_DBFFieldType swig_types[0]
-#define SWIGTYPE_p_DBFInfo swig_types[1]
-#define SWIGTYPE_p_FILE swig_types[2]
-#define SWIGTYPE_p_cgiRequestObj swig_types[3]
-#define SWIGTYPE_p_char swig_types[4]
-#define SWIGTYPE_p_classObj swig_types[5]
-#define SWIGTYPE_p_clusterObj swig_types[6]
-#define SWIGTYPE_p_colorObj swig_types[7]
-#define SWIGTYPE_p_debugLevel swig_types[8]
-#define SWIGTYPE_p_double swig_types[9]
-#define SWIGTYPE_p_errorObj swig_types[10]
-#define SWIGTYPE_p_fontSetObj swig_types[11]
-#define SWIGTYPE_p_hashTableObj swig_types[12]
-#define SWIGTYPE_p_imageObj swig_types[13]
-#define SWIGTYPE_p_int swig_types[14]
-#define SWIGTYPE_p_int32_t swig_types[15]
-#define SWIGTYPE_p_intarray swig_types[16]
-#define SWIGTYPE_p_labelCacheMemberObj swig_types[17]
-#define SWIGTYPE_p_labelCacheObj swig_types[18]
-#define SWIGTYPE_p_labelCacheSlotObj swig_types[19]
-#define SWIGTYPE_p_labelLeaderObj swig_types[20]
-#define SWIGTYPE_p_labelObj swig_types[21]
-#define SWIGTYPE_p_labelStyleObj swig_types[22]
-#define SWIGTYPE_p_layerObj swig_types[23]
-#define SWIGTYPE_p_legendObj swig_types[24]
-#define SWIGTYPE_p_lineObj swig_types[25]
-#define SWIGTYPE_p_mapObj swig_types[26]
-#define SWIGTYPE_p_markerCacheMemberObj swig_types[27]
-#define SWIGTYPE_p_outputFormatObj swig_types[28]
-#define SWIGTYPE_p_p_char swig_types[29]
-#define SWIGTYPE_p_pointObj swig_types[30]
-#define SWIGTYPE_p_projectionObj swig_types[31]
-#define SWIGTYPE_p_queryMapObj swig_types[32]
-#define SWIGTYPE_p_rectObj swig_types[33]
-#define SWIGTYPE_p_referenceMapObj swig_types[34]
-#define SWIGTYPE_p_rendererVTableObj swig_types[35]
-#define SWIGTYPE_p_resultCacheObj swig_types[36]
-#define SWIGTYPE_p_resultObj swig_types[37]
-#define SWIGTYPE_p_scaleTokenEntryObj swig_types[38]
-#define SWIGTYPE_p_scaleTokenObj swig_types[39]
-#define SWIGTYPE_p_scalebarObj swig_types[40]
-#define SWIGTYPE_p_shapeObj swig_types[41]
-#define SWIGTYPE_p_shapefileObj swig_types[42]
-#define SWIGTYPE_p_strokeStyleObj swig_types[43]
-#define SWIGTYPE_p_styleObj swig_types[44]
-#define SWIGTYPE_p_symbolObj swig_types[45]
-#define SWIGTYPE_p_symbolSetObj swig_types[46]
-#define SWIGTYPE_p_symbolStyleObj swig_types[47]
-#define SWIGTYPE_p_tileCacheObj swig_types[48]
-#define SWIGTYPE_p_uint32_t swig_types[49]
-#define SWIGTYPE_p_webObj swig_types[50]
-static swig_type_info *swig_types[52];
-static swig_module_info swig_module = {swig_types, 51, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#define SWIG_init    boot_mapscript
-
-#define SWIG_name   "mapscriptc::boot_mapscript"
-#define SWIG_prefix "mapscriptc::"
-
-#define SWIGVERSION 0x020007 
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-#ifndef PERL_OBJECT
-#ifndef MULTIPLICITY
-SWIGEXPORT void SWIG_init (CV* cv);
-#else
-SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
-#endif
-#else
-SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
-#endif
-
-
-#include "../../mapserver.h"
-#include "../../maptemplate.h"
-#include "../../mapogcsld.h"
-#include "../../mapows.h"
-#include "../../cgiutil.h"
-#include "../../mapcopy.h"
-#include "../../maperror.h"
-#include "../../mapprimitive.h"
-#include "../../mapshape.h"
-
-#ifdef SWIGPYTHON
-#include "pygdioctx/pygdioctx.h"
-#endif
-
-
-
-typedef int intarray;
-
-
-SWIGINTERN int
-SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
-{
-  if (SvNIOK(obj)) {
-    if (val) *val = SvNV(obj);
-    return SWIG_OK;
-  } else if (SvIOK(obj)) {
-    if (val) *val = (double) SvIV(obj);
-    return SWIG_AddCast(SWIG_OK);
-  } else {
-    const char *nptr = SvPV_nolen(obj);
-    if (nptr) {
-      char *endptr;
-      double v;
-      errno = 0;
-      v = strtod(nptr, &endptr);
-      if (errno == ERANGE) {
-	errno = 0;
-	return SWIG_OverflowError;
-      } else {
-	if (*endptr == '\0') {
-	  if (val) *val = v;
-	  return SWIG_Str2NumCast(SWIG_OK);
-	}
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-#include <float.h>
-
-
-#include <math.h>
-
-
-SWIGINTERNINLINE int
-SWIG_CanCastAsInteger(double *d, double min, double max) {
-  double x = *d;
-  if ((min <= x && x <= max)) {
-   double fx = floor(x);
-   double cx = ceil(x);
-   double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
-   if ((errno == EDOM) || (errno == ERANGE)) {
-     errno = 0;
-   } else {
-     double summ, reps, diff;
-     if (rd < x) {
-       diff = x - rd;
-     } else if (rd > x) {
-       diff = rd - x;
-     } else {
-       return 1;
-     }
-     summ = rd + x;
-     reps = diff/summ;
-     if (reps < 8*DBL_EPSILON) {
-       *d = rd;
-       return 1;
-     }
-   }
-  }
-  return 0;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) 
-{
-  if (SvUOK(obj)) {
-    UV v = SvUV(obj);
-    if (v <= ULONG_MAX) {
-      if (val) *val = v;
-      return SWIG_OK;
-    }
-    return SWIG_OverflowError;
-  } else if (SvIOK(obj)) {
-    IV v = SvIV(obj);
-    if (v >= 0 && v <= ULONG_MAX) {
-      if (val) *val = v;
-      return SWIG_OK;
-    }
-    return SWIG_OverflowError;
-  } else {
-    int dispatch = 0;
-    const char *nptr = SvPV_nolen(obj);
-    if (nptr) {
-      char *endptr;
-      unsigned long v;
-      errno = 0;
-      v = strtoul(nptr, &endptr,0);
-      if (errno == ERANGE) {
-	errno = 0;
-	return SWIG_OverflowError;
-      } else {
-	if (*endptr == '\0') {
-	  if (val) *val = v;
-	  return SWIG_Str2NumCast(SWIG_OK);
-	}
-      }
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
-	if (val) *val = (unsigned long)(d);
-	return res;
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERNINLINE int
-SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
-{
-  unsigned long v;
-  int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
-  if (SWIG_IsOK(res) && val) *val = (size_t)(v);
-  return res;
-}
-
-SWIGINTERN intarray *new_intarray(size_t nelements){
-    return (int *)malloc((nelements)*sizeof(int));
-  }
-SWIGINTERN void delete_intarray(intarray *self){
-    free((char*)self);
-  }
-SWIGINTERN int intarray_getitem(intarray *self,size_t index){
-    return self[index];
-  }
-
-SWIGINTERNINLINE SV *
-SWIG_From_long  SWIG_PERL_DECL_ARGS_1(long value)
-{
-  SV *sv;
-  if (value >= IV_MIN && value <= IV_MAX)
-    sv = newSViv(value);
-  else
-    sv = newSVpvf("%ld", value);
-  return sv_2mortal(sv);
-}
-
-
-SWIGINTERNINLINE SV *
-SWIG_From_int  SWIG_PERL_DECL_ARGS_1(int value)
-{    
-  return SWIG_From_long  SWIG_PERL_CALL_ARGS_1(value);
-}
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-#   define LLONG_MAX __LONG_LONG_MAX__
-#   define LLONG_MIN (-LLONG_MAX - 1LL)
-#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
-SWIGINTERN int
-SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
-{
-  if (SvUOK(obj)) {
-    UV v = SvUV(obj);
-    if (v <= LONG_MAX) {
-      if (val) *val = v;
-      return SWIG_OK;
-    }
-    return SWIG_OverflowError;
-  } else if (SvIOK(obj)) {
-    IV v = SvIV(obj);
-    if (v >= LONG_MIN && v <= LONG_MAX) {
-      if(val) *val = v;
-      return SWIG_OK;
-    }
-    return SWIG_OverflowError;
-  } else {
-    int dispatch = 0;
-    const char *nptr = SvPV_nolen(obj);
-    if (nptr) {
-      char *endptr;
-      long v;
-      errno = 0;
-      v = strtol(nptr, &endptr,0);
-      if (errno == ERANGE) {
-	errno = 0;
-	return SWIG_OverflowError;
-      } else {
-	if (*endptr == '\0') {
-	  if (val) *val = v;
-	  return SWIG_Str2NumCast(SWIG_OK);
-	}
-      }
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
-	if (val) *val = (long)(d);
-	return res;
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
-{
-  long v;
-  int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
-  if (SWIG_IsOK(res)) {
-    if ((v < INT_MIN || v > INT_MAX)) {
-      return SWIG_OverflowError;
-    } else {
-      if (val) *val = (int)(v);
-    }
-  }  
-  return res;
-}
-
-SWIGINTERN void intarray_setitem(intarray *self,size_t index,int value){
-    self[index] = value;
-  }
-SWIGINTERN int *intarray_cast(intarray *self){
-    return self;
-  }
-SWIGINTERN intarray *intarray_frompointer(int *t){
-    return (intarray *)(t);
-  }
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
-    unsigned char *data;
-    int size;
-    int owns_data;
-} gdBuffer;
-
-#ifdef __cplusplus
-}
-#endif
-
-
-SWIGINTERNINLINE SV *
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
-  SV *obj = sv_newmortal();
-  if (carray) {
-    sv_setpvn(obj, carray, size);
-  } else {
-    sv_setsv(obj, &PL_sv_undef);
-  }
-  return obj;
-}
-
-
-SWIGINTERNINLINE SV * 
-SWIG_FromCharPtr(const char *cptr)
-{ 
-  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-SWIGINTERNINLINE SV *
-SWIG_From_double  SWIG_PERL_DECL_ARGS_1(double value)
-{
-  return sv_2mortal(newSVnv(value));
-}
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
-  static int init = 0;
-  static swig_type_info* info = 0;
-  if (!init) {
-    info = SWIG_TypeQuery("_p_char");
-    init = 1;
-  }
-  return info;
-}
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
-{
-  if (SvMAGICAL(obj)) {
-     SV *tmp = sv_newmortal();
-     SvSetSV(tmp, obj);
-     obj = tmp;
-  }
-  if (SvPOK(obj)) {
-    STRLEN len = 0;
-    char *cstr = SvPV(obj, len); 
-    size_t size = len + 1;
-    if (cptr)  {
-      if (alloc) {
-	if (*alloc == SWIG_NEWOBJ) {
-	  *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
-	} else {
-	  *cptr = cstr;
-	  *alloc = SWIG_OLDOBJ;
-	}
-      }
-    }
-    if (psize) *psize = size;
-    return SWIG_OK;
-  } else {
-    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
-    if (pchar_descriptor) {
-      char* vptr = 0; 
-      if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
-	if (cptr) *cptr = vptr;
-	if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
-	if (alloc) *alloc = SWIG_OLDOBJ;
-	return SWIG_OK;
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-
-
-SWIGINTERN int clusterObj_updateFromString(clusterObj *self,char *snippet){
-    return msUpdateClusterFromString(self, snippet);
-  }
-SWIGINTERN char *clusterObj_convertToString(clusterObj *self){
-    return msWriteClusterToString(self);
-  }
-SWIGINTERN int clusterObj_setGroup(clusterObj *self,char *group){
-    if (!group || strlen(group) == 0) {
-       freeExpression(&self->group);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->group, group);
-  }
-SWIGINTERN char *clusterObj_getGroupString(clusterObj *self){
-    return msGetExpressionString(&(self->group));
-  }
-SWIGINTERN int clusterObj_setFilter(clusterObj *self,char *filter){
-    if (!filter || strlen(filter) == 0) {
-      freeExpression(&self->filter);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->filter, filter);
-  }
-SWIGINTERN char *clusterObj_getFilterString(clusterObj *self){
-    return msGetExpressionString(&(self->filter));
-  }
-SWIGINTERN outputFormatObj *new_outputFormatObj(char const *driver,char *name){
-        outputFormatObj *format;
-
-        format = msCreateDefaultOutputFormat(NULL, driver, name);
-
-        /* in the case of unsupported formats, msCreateDefaultOutputFormat
-           should return NULL */
-        if (!format)
-        {
-            msSetError(12, "Unsupported format driver: %s",
-                       "outputFormatObj()", driver);
-            return NULL;
-        }
-        
-        msInitializeRendererVTable(format);
-
-        MS_REFCNT_INIT(format);
-	format->inmapfile = 1;
-
-        return format;
-    }
-SWIGINTERN void delete_outputFormatObj(outputFormatObj *self){
-        msFreeOutputFormat( self );
-    }
-SWIGINTERN void outputFormatObj_setExtension(outputFormatObj *self,char const *extension){
-        msFree( self->extension );
-        self->extension = strdup(extension);
-    }
-SWIGINTERN void outputFormatObj_setMimetype(outputFormatObj *self,char const *mimetype){
-        msFree( self->mimetype );
-        self->mimetype = strdup(mimetype);
-    }
-SWIGINTERN void outputFormatObj_setOption(outputFormatObj *self,char const *key,char const *value){
-        msSetOutputFormatOption( self, key, value );
-    }
-SWIGINTERN int outputFormatObj_validate(outputFormatObj *self){
-       	return msOutputFormatValidate( self, 0 );
-    }
-SWIGINTERN char *outputFormatObj_getOption(outputFormatObj *self,char const *key,char const *value){
-        return strdup(msGetOutputFormatOption(self, key, value));
-    }
-SWIGINTERN char *outputFormatObj_getOptionAt(outputFormatObj *self,int i){
-       if( i >= 0 && i < self->numformatoptions ) {
-          return strdup(self->formatoptions[i]);
-       }
-       return NULL;
-    }
-SWIGINTERN void outputFormatObj_attachDevice(outputFormatObj *self,void *device){
-        self->device = device;
-    }
-SWIGINTERN int queryMapObj_updateFromString(queryMapObj *self,char *snippet){
-    return msUpdateQueryMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *queryMapObj_convertToString(queryMapObj *self){
-    return msWriteQueryMapToString(self);
-  }
-SWIGINTERN webObj *new_webObj(){
-        webObj *web;
-        web = (webObj *) malloc(sizeof(webObj));
-        initWeb(web);
-        return web;
-    }
-SWIGINTERN void delete_webObj(webObj *self){
-        if (!self) return;
-	freeWeb(self);
-        free(self);
-    }
-SWIGINTERN int webObj_updateFromString(webObj *self,char *snippet){
-        return msUpdateWebFromString(self, snippet, 0);
-    }
-SWIGINTERN char *webObj_convertToString(webObj *self){
-        return msWriteWebToString(self);
-    }
-SWIGINTERN struct styleObj *new_styleObj(classObj *parent_class){
-    
-        styleObj *style = NULL;
-        
-        if (parent_class!=NULL) {
-            if ((style = msGrowClassStyles(parent_class)) == NULL)
-                return NULL;
-
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-            }
-            parent_class->numstyles++;
-            MS_REFCNT_INCR(style);
-        }
-        else {
-            style = (styleObj *) malloc(sizeof(styleObj));
-            if (!style) { 
-                msSetError(2, "Failed to allocate memory for new styleObj instance",
-                                       "styleObj()");
-                return NULL;
-            }
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-                msFree(style);
-                return NULL;
-	    }
-        }
-        return style;
-    }
-SWIGINTERN void delete_styleObj(struct styleObj *self){
-        if (self) { 
-		if ( freeStyle(self) == MS_SUCCESS ) {
-            		free(self);
-			self=NULL;
-		}
-	}
-    }
-SWIGINTERN int styleObj_updateFromString(struct styleObj *self,char *snippet){
-        return msUpdateStyleFromString(self, snippet, 0);
-    }
-SWIGINTERN char *styleObj_convertToString(struct styleObj *self){
-        return msWriteStyleToString(self);
-    }
-SWIGINTERN styleObj *styleObj_clone(struct styleObj *self){
-        styleObj *style;
-
-        style = (styleObj *) malloc(sizeof(styleObj));
-        if (!style)
-        {
-            msSetError(2,
-                "Could not allocate memory for new styleObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initStyle(style) == -1)
-        {
-            msSetError(2, "Failed to initialize Style",
-                                  "clone()");
-            return NULL;
-        }
-
-        if (msCopyStyle(style, self) != MS_SUCCESS)
-        {
-            free(style);
-            return NULL;
-        }
-        
-        return style;
-    }
-SWIGINTERN int styleObj_setSymbolByName(struct styleObj *self,mapObj *map,char *symbolname){
-        self->symbol = msGetSymbolIndex(&map->symbolset, symbolname, 1);
-        if (self->symbolname) free((char*)self->symbolname);
-        if (symbolname) self->symbolname = strdup(symbolname);
-        else self->symbolname = 0;
-        return self->symbol;
-    }
-SWIGINTERN int styleObj_removeBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int styleObj_setBinding(struct styleObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item);
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *styleObj_getBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN char *styleObj_getGeomTransform(struct styleObj *self){
-    return self->_geomtransform.string;
-  }
-SWIGINTERN void styleObj_setGeomTransform(struct styleObj *self,char *transform){
-    msStyleSetGeomTransform(self, transform);
-  }
-
-SWIGINTERN int
-SWIG_AsCharArray(SV * obj, char *val, size_t size)
-{ 
-  char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
-  int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
-  if (SWIG_IsOK(res)) {
-    if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
-    if (csize <= size) {
-      if (val) {
-	if (csize) memcpy(val, cptr, csize*sizeof(char));
-	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
-      }
-      if (alloc == SWIG_NEWOBJ) {
-	free((char*)cptr);
-	res = SWIG_DelNewMask(res);
-      }      
-      return res;
-    }
-    if (alloc == SWIG_NEWOBJ) free((char*)cptr);
-  }
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_char SWIG_PERL_DECL_ARGS_2(SV * obj, char *val)
-{    
-  int res = SWIG_AsCharArray(obj, val, 1);
-  if (!SWIG_IsOK(res)) {
-    long v;
-    res = SWIG_AddCast(SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v));
-    if (SWIG_IsOK(res)) {
-      if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
-	if (val) *val = (char)(v);
-      } else {
-	res = SWIG_OverflowError;
-      }
-    }
-  }
-  return res;
-}
-
-
-SWIGINTERNINLINE SV *
-SWIG_From_char  SWIG_PERL_DECL_ARGS_1(char c) 
-{ 
-  return SWIG_FromCharPtrAndSize(&c,1);
-}
-
-SWIGINTERN struct labelObj *new_labelObj(){
-      labelObj *label;
-        
-      label = (labelObj *)calloc(1, sizeof(labelObj));
-      if (!label)
-        return(NULL);
-    
-      initLabel(label);
-      
-      return(label);    	
-    }
-SWIGINTERN void delete_labelObj(struct labelObj *self){
-      freeLabel(self);
-    }
-SWIGINTERN int labelObj_updateFromString(struct labelObj *self,char *snippet){
-    return msUpdateLabelFromString(self, snippet,0);
-  }
-SWIGINTERN char *labelObj_convertToString(struct labelObj *self){
-    return msWriteLabelToString(self);
-  }
-SWIGINTERN int labelObj_removeBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1; 
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *labelObj_getBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN int labelObj_setBinding(struct labelObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL; 
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item); 
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int labelObj_setExpression(struct labelObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *labelObj_getExpressionString(struct labelObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int labelObj_setText(struct labelObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *labelObj_getTextString(struct labelObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN styleObj *labelObj_getStyle(struct labelObj *self,int i){
-      if (i >= 0 && i < self->numstyles) {
-          MS_REFCNT_INCR(self->styles[i]);
-          return self->styles[i];
-      } else {
-          msSetError(31, "Invalid index: %d", "getStyle()", i);
-          return NULL;
-      }
-  }
-SWIGINTERN int labelObj_insertStyle(struct labelObj *self,styleObj *style,int index){
-        return msInsertLabelStyle(self, style, index);
-    }
-SWIGINTERN styleObj *labelObj_removeStyle(struct labelObj *self,int index){
-	styleObj* style = (styleObj *) msRemoveLabelStyle(self, index);
-	if (style)
-		MS_REFCNT_INCR(style);
-        return style;
-    }
-SWIGINTERN int labelObj_moveStyleUp(struct labelObj *self,int index){
-        return msMoveLabelStyleUp(self, index);
-    }
-SWIGINTERN int labelObj_moveStyleDown(struct labelObj *self,int index){
-       return msMoveLabelStyleDown(self, index);
-    }
-SWIGINTERN struct classObj *new_classObj(layerObj *layer){
-        classObj *new_class=NULL;
-        
-        if (!layer)
-        {
-            new_class = (classObj *) malloc(sizeof(classObj));
-            if (!new_class)
-            {
-                msSetError(2,
-                    "Could not allocate memory for new classObj instance",
-                    "classObj()");
-                return NULL;
-            }
-            if (initClass(new_class) == -1) return NULL;
-            new_class->layer = NULL;
-            return new_class;
-        }
-        else
-        {
-            if(msGrowLayerClasses(layer) == NULL)
-                return NULL;
-            if (initClass(layer->class[layer->numclasses]) == -1)
-                return NULL;
-            layer->class[layer->numclasses]->type = layer->type;
-            layer->class[layer->numclasses]->layer = layer;
-	    MS_REFCNT_INCR(layer->class[layer->numclasses]);
-            layer->numclasses++;
-            return (layer->class[layer->numclasses-1]);
-        }
-
-        return NULL;
-    }
-SWIGINTERN void delete_classObj(struct classObj *self){
-        if (self)
-        {
-            if (freeClass(self)==MS_SUCCESS) {
-            	free(self);
-		self=NULL;
-	    }
-        }
-    }
-SWIGINTERN int classObj_updateFromString(struct classObj *self,char *snippet){
-        return msUpdateClassFromString(self, snippet, 0);
-    }
-SWIGINTERN char *classObj_convertToString(struct classObj *self){
-        return msWriteClassToString(self);
-    }
-SWIGINTERN classObj *classObj_clone(struct classObj *self){
-        classObj *new_class;
-
-        new_class = (classObj *) malloc(sizeof(classObj));
-        if (!new_class)
-        {
-            msSetError(2,
-                "Could not allocate memory for new classObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initClass(new_class) == -1)
-        {
-            msSetError(2, "Failed to initialize Class",
-                                  "clone()");
-            return NULL;
-        }
-        new_class->layer = NULL;
-
-        if (msCopyClass(new_class, self, self->layer) != MS_SUCCESS) {
-            freeClass(new_class);
-            free(new_class);
-            new_class = NULL;
-        }
-        
-        return new_class;
-    }
-SWIGINTERN int classObj_setExpression(struct classObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *classObj_getExpressionString(struct classObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int classObj_setText(struct classObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *classObj_getTextString(struct classObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN char *classObj_getMetaData(struct classObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int classObj_setMetaData(struct classObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *classObj_getFirstMetaDataKey(struct classObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->metadata));
-  }
-SWIGINTERN char *classObj_getNextMetaDataKey(struct classObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-  }
-SWIGINTERN int classObj_drawLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height,imageObj *dstImage,int dstX,int dstY){
-    return msDrawLegendIcon(map, layer, self, width, height, dstImage, dstX, dstY, 1, NULL);
-  }
-SWIGINTERN imageObj *classObj_createLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height){
-    return msCreateLegendIcon(map, layer, self, width, height, 1);
-  }
-SWIGINTERN labelObj *classObj_getLabel(struct classObj *self,int i){
-    if (i >= 0 && i < self->numlabels) {
-      MS_REFCNT_INCR(self->labels[i]);
-      return self->labels[i];
-    } else {
-      msSetError(31, "Invalid index: %d.", "getLabel()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_addLabel(struct classObj *self,labelObj *label){
-    return msAddLabelToClass(self, label);
-  }
-SWIGINTERN labelObj *classObj_removeLabel(struct classObj *self,int index){
-    labelObj* label = (labelObj *) msRemoveLabelFromClass(self, index);
-    if (label) MS_REFCNT_INCR(label);
-    return label;
-  }
-SWIGINTERN styleObj *classObj_getStyle(struct classObj *self,int i){
-    if (i >= 0 && i < self->numstyles) {
-      MS_REFCNT_INCR(self->styles[i]);
-      return self->styles[i];
-    } else {
-      msSetError(31, "Invalid index: %d", "getStyle()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_insertStyle(struct classObj *self,styleObj *style,int index){
-    return msInsertStyle(self, style, index);
-  }
-SWIGINTERN styleObj *classObj_removeStyle(struct classObj *self,int index){
-    styleObj* style = (styleObj *) msRemoveStyle(self, index);
-    if (style) MS_REFCNT_INCR(style);
-    return style;
-  }
-SWIGINTERN int classObj_moveStyleUp(struct classObj *self,int index){
-    return msMoveStyleUp(self, index);
-  }
-SWIGINTERN int classObj_moveStyleDown(struct classObj *self,int index){
-    return msMoveStyleDown(self, index);
-  }
-SWIGINTERN void labelCacheObj_freeCache(labelCacheObj *self){
-        msFreeLabelCache(self);    
-    }
-SWIGINTERN resultObj *new_resultObj(long shapeindex){
-        resultObj *result = (resultObj *) msSmallMalloc(sizeof(resultObj));
-
-        result->tileindex = -1;
-        result->resultindex = -1; 
-        result->shapeindex = shapeindex;
-        
-        return result;
-    }
-SWIGINTERN void delete_resultObj(resultObj *self){
-        free(self);		
-    }
-SWIGINTERN resultObj *resultCacheObj_getResult(resultCacheObj *self,int i){
-        if (i >= 0 && i < self->numresults) {
-            return &self->results[i];
-        }
-        return NULL;
-    }
-SWIGINTERN symbolSetObj *new_symbolSetObj(char const *symbolfile){
-        symbolSetObj *symbolset;
-        mapObj *temp_map=NULL;
-        symbolset = (symbolSetObj *) malloc(sizeof(symbolSetObj));
-        msInitSymbolSet(symbolset);
-        if (symbolfile) {
-            symbolset->filename = strdup(symbolfile);
-            temp_map = msNewMapObj();
-            msLoadSymbolSet(symbolset, temp_map);
-            symbolset->map = NULL;
-            msFreeMap(temp_map);
-        }
-        return symbolset;
-    }
-SWIGINTERN void delete_symbolSetObj(symbolSetObj *self){
-        msFreeSymbolSet(self);
-        if (self->filename) free(self->filename);
-        free(self);
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbol(symbolSetObj *self,int i){
-        if (i >= 0 && i < self->numsymbols) {
-			symbolObj *s=self->symbol[i];
-			MS_REFCNT_INCR(s);
-            return s;
-        } else
-            return NULL;
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbolByName(symbolSetObj *self,char *symbolname){
-        int i;
-
-        if (!symbolname) return NULL;
-
-        i = msGetSymbolIndex(self, symbolname, 1);
-        if (i == -1)
-            return NULL;
-		else {
-			MS_REFCNT_INCR(self->symbol[i]);
-            return self->symbol[i];
-		}
-    }
-SWIGINTERN int symbolSetObj_index(symbolSetObj *self,char *symbolname){
-        return msGetSymbolIndex(self, symbolname, 1);
-    }
-SWIGINTERN int symbolSetObj_appendSymbol(symbolSetObj *self,symbolObj *symbol){
-        return msAppendSymbol(self, symbol);
-    }
-SWIGINTERN symbolObj *symbolSetObj_removeSymbol(symbolSetObj *self,int index){
-        symbolObj *s=msRemoveSymbol(self, index);
-		if (s!=NULL) {
-			MS_REFCNT_INCR(s);
-		}
-        return s;
-    }
-SWIGINTERN int symbolSetObj_save(symbolSetObj *self,char const *filename){
-        return msSaveSymbolSet(self, filename);
-    }
-SWIGINTERN int referenceMapObj_updateFromString(referenceMapObj *self,char *snippet){
-    return msUpdateReferenceMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *referenceMapObj_convertToString(referenceMapObj *self){
-    return msWriteReferenceMapToString(self);
-  }
-SWIGINTERN int scalebarObj_updateFromString(scalebarObj *self,char *snippet){
-    return msUpdateScalebarFromString(self, snippet, 0);
-  }
-SWIGINTERN char *scalebarObj_convertToString(scalebarObj *self){
-    return msWriteScalebarToString(self);
-  }
-SWIGINTERN int legendObj_updateFromString(legendObj *self,char *snippet){
-    return msUpdateLegendFromString(self, snippet, 0);
-  }
-SWIGINTERN char *legendObj_convertToString(legendObj *self){
-    return msWriteLegendToString(self);
-  }
-SWIGINTERN struct imageObj *new_imageObj(int width,int height,outputFormatObj *input_format,char const *file,double resolution,double defresolution){
-        imageObj *image=NULL;
-        outputFormatObj *format;
-        rendererVTableObj *renderer = NULL;
-        rasterBufferObj *rb = NULL;
-
-        if (input_format) {
-            format = input_format;
-        }
-        else {
-            format = msCreateDefaultOutputFormat(NULL, "GD/GIF", "gdgif");
-            if (format == NULL)
-                format = msCreateDefaultOutputFormat(NULL, "GD/PNG", "gdpng");
-            if (format == NULL)
-
-            if (format)
-                msInitializeRendererVTable(format);
-        }
-        if (format == NULL) {
-            msSetError(15, "Could not create output format",
-                       "imageObj()");
-            return NULL;
-        }
-
-        if (file) {
-            
-            renderer = format->vtable;
-            rb = (rasterBufferObj*) malloc(sizeof(rasterBufferObj));
-            if (!rb) {
-                msSetError(2, NULL, "imageObj()");
-                return NULL;
-            }
-            if ( (renderer->loadImageFromFile((char *)file, rb)) == MS_FAILURE)
-                return NULL;
-
-            image = msImageCreate(rb->width, rb->height, format, NULL, NULL, 
-                                  resolution, defresolution, NULL);
-            renderer->mergeRasterBuffer(image, rb, 1.0, 0, 0, 0, 0, rb->width, rb->height);
-
-            msFreeRasterBuffer(rb);
-            free(rb);
-
-            return image;
-        }
-
-        image = msImageCreate(width, height, format, NULL, NULL, resolution, defresolution, NULL);
-        return image;
-    }
-SWIGINTERN void delete_imageObj(struct imageObj *self){
-        msFreeImage(self);    
-    }
-SWIGINTERN void imageObj_save(struct imageObj *self,char *filename,mapObj *map){
-        msSaveImage(map, self, filename );
-    }
-SWIGINTERN int imageObj_write(struct imageObj *self,FILE *file){
-        int retval=MS_FAILURE;
-        rendererVTableObj *renderer = NULL;
-
-        if (MS_RENDERER_PLUGIN(self->format))
-        {
-            if (file)
-            {
-                renderer = self->format->vtable;
-                /* FIXME? as an improvement, pass a map argument instead of the NULL (see #4216) */
-                retval = renderer->saveImage(self, NULL, file, self->format);
-            }
-            else
-            {
-                retval = msSaveImage(NULL, self, NULL);
-            }
-        }
-        else
-        {
-            msSetError(15, "Writing of %s format not implemented",
-                       "imageObj::write");
-        }
-
-        return retval;
-    }
-SWIGINTERN gdBuffer imageObj_getBytes(struct imageObj *self){
-        gdBuffer buffer;
-        
-        buffer.owns_data = 1;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-            
-        if( buffer.data == NULL || buffer.size == 0 )
-        {
-            buffer.data = NULL;
-            msSetError(12, "Failed to get image buffer", "getBytes");
-            return buffer;
-        }
-
-        return buffer;
-    }
-SWIGINTERN int imageObj_getSize(struct imageObj *self){
-        gdBuffer buffer;
-	int size=0;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-	size = buffer.size;
-            
-        if( buffer.data == NULL || buffer.size == 0 ) {
-            buffer.data = NULL;
-            msSetError(12, "Failed to get image buffer size", "getSize");
-        }
-	free(buffer.data);
-        return size;
-    }
-SWIGINTERN struct layerObj *new_layerObj(mapObj *map){
-        layerObj *layer;
-        int result;
-        
-        if (!map) {
-            layer = (layerObj *) malloc(sizeof(layerObj));
-            if (!layer) {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            } 
-            result = initLayer(layer, NULL);
-            if (result == MS_SUCCESS) {
-                layer->index = -1;
-                return layer;
-            }
-            else {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            }
-        }
-        else {
-            if(msGrowMapLayers(map) == NULL)
-                return(NULL);
-
-            if (initLayer((map->layers[map->numlayers]), map) == -1)
-                return(NULL);
-
-            map->layers[map->numlayers]->index = map->numlayers;
-            map->layerorder[map->numlayers] = map->numlayers;
-            map->numlayers++;
-	    MS_REFCNT_INCR(map->layers[map->numlayers-1]);
-
-            return (map->layers[map->numlayers-1]);
-        }
-    }
-SWIGINTERN void delete_layerObj(struct layerObj *self){
-        /*if (!self->map) {*/
-        if (self) {
-            if(freeLayer(self)==MS_SUCCESS) {
-            	free(self);
-	    }
-        }
-    }
-SWIGINTERN layerObj *layerObj_clone(struct layerObj *self){
-        layerObj *layer;
-        int result;
-
-        layer = (layerObj *) malloc(sizeof(layerObj));
-        if (!layer) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        } 
-        result = initLayer(layer, NULL);
-        if (result != MS_SUCCESS) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        }
-
-        if (msCopyLayer(layer, self) != MS_SUCCESS) {
-            freeLayer(layer);
-            free(layer);
-            layer = NULL;
-        }
-        layer->map = NULL;
-        layer->index = -1;
-        
-        return layer;
-    }
-SWIGINTERN int layerObj_updateFromString(struct layerObj *self,char *snippet){
-        return msUpdateLayerFromString(self, snippet, 0);
-    }
-SWIGINTERN char *layerObj_convertToString(struct layerObj *self){
-        return msWriteLayerToString(self);
-    }
-SWIGINTERN int layerObj_insertClass(struct layerObj *self,classObj *classobj,int index){
-        return msInsertClass(self, classobj, index);
-    }
-SWIGINTERN classObj *layerObj_removeClass(struct layerObj *self,int index){
-        classObj* c = msRemoveClass(self, index);
-	if (c != NULL) {
-		MS_REFCNT_INCR(c);
-	}
-	return c;
-    }
-SWIGINTERN int layerObj_open(struct layerObj *self){
-        int status;
-        status =  msLayerOpen(self);
-        if (status == MS_SUCCESS) {
-            return msLayerGetItems(self);
-        }
-        return status;
-    }
-SWIGINTERN int layerObj_whichShapes(struct layerObj *self,rectObj rect){
-        int oldconnectiontype = self->connectiontype;
-        self->connectiontype = MS_INLINE;
-
-        if(msLayerWhichItems(self, 1, NULL) != MS_SUCCESS) {
-            self->connectiontype = oldconnectiontype;
-            return MS_FAILURE;
-        }
-        self->connectiontype = oldconnectiontype;
-
-        return msLayerWhichShapes(self, rect, 0);
-    }
-SWIGINTERN shapeObj *layerObj_nextShape(struct layerObj *self){
-       int status;
-       shapeObj *shape;
-
-       shape = (shapeObj *)malloc(sizeof(shapeObj));
-       if (!shape) return NULL;
-       msInitShape(shape);
-
-       status = msLayerNextShape(self, shape);
-       if(status != MS_SUCCESS) {
-         msFreeShape(shape);
-	 free(shape);
-	 return NULL;
-       } else
-         return shape;
-    }
-SWIGINTERN void layerObj_close(struct layerObj *self){
-        msLayerClose(self);
-    }
-SWIGINTERN shapeObj *layerObj_getShape(struct layerObj *self,resultObj *record){
-        int retval;
-        shapeObj *shape;
-
-        if (!record) return NULL;
-    
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape) return NULL;
-
-        msInitShape(shape);
-        shape->type = self->type; /* is this right? */
-
-        retval = msLayerGetShape(self, shape, record);
-        return shape;
-    }
-SWIGINTERN int layerObj_getNumResults(struct layerObj *self){
-        if (!self->resultcache) return 0;
-        return self->resultcache->numresults;
-    }
-SWIGINTERN rectObj *layerObj_getResultsBounds(struct layerObj *self){
-        rectObj *bounds;
-        if (!self->resultcache) return NULL;
-        bounds = (rectObj *) malloc(sizeof(rectObj));
-        MS_COPYRECT(bounds, &self->resultcache->bounds);
-        return bounds;
-    }
-SWIGINTERN resultObj *layerObj_getResult(struct layerObj *self,int i){
-        if (!self->resultcache) return NULL;
-        if (i >= 0 && i < self->resultcache->numresults)
-            return &self->resultcache->results[i]; 
-        else
-            return NULL;
-    }
-SWIGINTERN classObj *layerObj_getClass(struct layerObj *self,int i){
-	classObj *result=NULL;
-        if (i >= 0 && i < self->numclasses) {
-            result=self->class[i]; 
-	    MS_REFCNT_INCR(result);
-	}
-	return result;
-    }
-SWIGINTERN char *layerObj_getItem(struct layerObj *self,int i){
-  
-        if (i >= 0 && i < self->numitems)
-            return (char *) (self->items[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int layerObj_setItems(struct layerObj *self,char **items,int numitems){
-        return msLayerSetItems(self, items, numitems);
-    }
-SWIGINTERN int layerObj_draw(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_drawQuery(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawQueryLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_queryByFilter(struct layerObj *self,mapObj *map,char *string){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_FILTER;
-
-        map->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-        map->query.filter->string = strdup(string);
-	map->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-        map->query.filter->compiled = 0;
-        map->query.filter->flags = 0;
-        map->query.filter->tokens = map->query.filter->curtoken = NULL;
-        
-        map->query.layer = self->index;
-     	map->query.rect = map->extent;
-
-	status = self->status;
-	self->status = 1;
-        retval = msQueryByFilter(map);
-        self->status = status;
-	return retval;
-    }
-SWIGINTERN int layerObj_queryByAttributes(struct layerObj *self,mapObj *map,char *qitem,char *qstring,int mode){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-        
-        map->query.type = MS_QUERY_BY_ATTRIBUTE;
-        map->query.mode = mode;
-        if(qitem) map->query.item = strdup(qitem);
-        if(qstring) map->query.str = strdup(qstring);
-        map->query.layer = self->index;
-        map->query.rect = map->extent;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByAttributes(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByPoint(struct layerObj *self,mapObj *map,pointObj *point,int mode,double buffer){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_POINT;
-        map->query.mode = mode;
-        map->query.point = *point;
-        map->query.buffer = buffer;
-        map->query.layer = self->index;
-        
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByPoint(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByRect(struct layerObj *self,mapObj *map,rectObj rect){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_RECT;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.rect = rect; 
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByRect(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByFeatures(struct layerObj *self,mapObj *map,int slayer){
-        int status;
-        int retval;
-
-        map->query.slayer = slayer;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByFeatures(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByShape(struct layerObj *self,mapObj *map,shapeObj *shape){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_SHAPE;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-        msInitShape(map->query.shape);
-        msCopyShape(shape, map->query.shape);
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByShape(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByIndex(struct layerObj *self,mapObj *map,int tileindex,int shapeindex,int bAddToQuery){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_INDEX;
-        map->query.mode = MS_QUERY_SINGLE;
-        map->query.tileindex = tileindex;
-        map->query.shapeindex = shapeindex;
-        map->query.clear_resultcache = !bAddToQuery;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByIndex(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN resultCacheObj *layerObj_getResults(struct layerObj *self){
-        return self->resultcache;
-    }
-SWIGINTERN int layerObj_setFilter(struct layerObj *self,char *filter){
-        if (!filter || strlen(filter) == 0) {
-            freeExpression(&self->filter);
-            return MS_SUCCESS;
-        }
-        else return msLoadExpressionString(&self->filter, filter);
-    }
-SWIGINTERN char *layerObj_getFilterString(struct layerObj *self){
-        return msGetExpressionString(&(self->filter));
-    }
-SWIGINTERN int layerObj_setWKTProjection(struct layerObj *self,char *wkt){
-        self->project = 1;
-        return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-    }
-SWIGINTERN char *layerObj_getProjection(struct layerObj *self){    
-        return (char *) msGetProjectionString(&(self->projection));
-    }
-SWIGINTERN int layerObj_setProjection(struct layerObj *self,char *proj4){
-        self->project = 1;
-        return msLoadProjectionString(&(self->projection), proj4);
-    }
-SWIGINTERN int layerObj_addFeature(struct layerObj *self,shapeObj *shape){    
-        self->connectiontype = MS_INLINE;
-        if(self->features != NULL && self->features->tailifhead != NULL) 
-            shape->index = self->features->tailifhead->shape.index + 1;
-        else 
-            shape->index = 0;
-        if (insertFeatureList(&(self->features), shape) == NULL) 
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_getNumFeatures(struct layerObj *self){
-        return msLayerGetNumFeatures(self);
-    }
-SWIGINTERN rectObj *layerObj_getExtent(struct layerObj *self){
-        rectObj *extent;
-        extent = (rectObj *) malloc(sizeof(rectObj));
-        msLayerGetExtent(self, extent);
-        return extent;
-    }
-SWIGINTERN int layerObj_setExtent(struct layerObj *self,double minx,double miny,double maxx,double maxy){
-        if (minx > maxx || miny > maxy) {
-            msSetError(34,
-                "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                "layerObj::setExtent()", minx, miny, maxx, maxy);
-            return MS_FAILURE;
-        }
-
-        return msLayerSetExtent(self, minx, miny, maxx, maxy);
-    }
-SWIGINTERN char *layerObj_getMetaData(struct layerObj *self,char *name){
-        char *value = NULL;
-        if (!name) {
-            msSetError(16, "NULL key", "getMetaData");
-        }
-     
-        value = (char *) msLookupHashTable(&(self->metadata), name);
-	/*
-	Umberto, 05/17/2006
-	Exceptions should be reserved for situations when a serious error occurred
-	and normal program flow must be interrupted.
-	In this case returning null should be more that enough.
-	*/
-
-        if (!value) {
-            msSetError(16, "Key %s does not exist", "getMetaData", name);
-            return NULL;
-        }
-
-        return value;
-    }
-SWIGINTERN int layerObj_setMetaData(struct layerObj *self,char *name,char *value){
-        if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_removeMetaData(struct layerObj *self,char *name){
-        return(msRemoveHashTable(&(self->metadata), name));
-    }
-SWIGINTERN char *layerObj_getFirstMetaDataKey(struct layerObj *self){
-        return (char *) msFirstKeyFromHashTable(&(self->metadata));
-    }
-SWIGINTERN char *layerObj_getNextMetaDataKey(struct layerObj *self,char *lastkey){
-        return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-    }
-SWIGINTERN char *layerObj_getWMSFeatureInfoURL(struct layerObj *self,mapObj *map,int click_x,int click_y,int feature_count,char *info_format){
-        return (char *) msWMSGetFeatureInfoURL(map, self, click_x, click_y,
-               feature_count, info_format);
-    }
-SWIGINTERN char *layerObj_executeWFSGetFeature(struct layerObj *self,layerObj *layer){
-        return (char *) msWFSExecuteGetFeature(layer);
-    }
-SWIGINTERN int layerObj_applySLD(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLD(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN int layerObj_applySLDURL(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLDURL(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN char *layerObj_generateSLD(struct layerObj *self){
-        return (char *) msSLDGenerateSLD(self->map, self->index, NULL);
-    }
-SWIGINTERN int layerObj_isVisible(struct layerObj *self){
-        if (!self->map)
-        {
-            msSetError(12,
-                "visibility has no meaning outside of a map context",
-                "isVisible()");
-            return MS_FAILURE;
-        }
-        return msLayerIsVisible(self->map, self);
-    }
-SWIGINTERN int layerObj_moveClassUp(struct layerObj *self,int index){
-        return msMoveClassUp(self, index);
-    }
-SWIGINTERN int layerObj_moveClassDown(struct layerObj *self,int index){
-        return msMoveClassDown(self, index);
-    }
-SWIGINTERN void layerObj_setProcessingKey(struct layerObj *self,char const *key,char const *value){
-	   msLayerSetProcessingKey( self, key, value );
-    }
-SWIGINTERN void layerObj_setProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN void layerObj_addProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN char *layerObj_getProcessing(struct layerObj *self,int index){
-        return (char *) msLayerGetProcessing(self, index);
-    }
-SWIGINTERN char *layerObj_getProcessingKey(struct layerObj *self,char const *key){
-      return (char *) msLayerGetProcessingKey(self, key);
-    }
-SWIGINTERN int layerObj_clearProcessing(struct layerObj *self){
-        return msLayerClearProcessing(self);
-    }
-SWIGINTERN int layerObj_setConnectionType(struct layerObj *self,int connectiontype,char const *library_str){    
-        /* Caller is responsible to close previous layer correctly before
-         * calling msConnectLayer() 
-         */
-        if (msLayerIsOpen(self))
-          msLayerClose(self);
-        return msConnectLayer(self, connectiontype, library_str);
-    }
-SWIGINTERN int layerObj_getClassIndex(struct layerObj *self,mapObj *map,shapeObj *shape,int *classgroup,int numclasses){
-        return msShapeGetClass(self, map, shape, classgroup, numclasses);
-    }
-SWIGINTERN char *layerObj_getGeomTransform(struct layerObj *self){
-      return self->_geomtransform.string;
-    }
-SWIGINTERN void layerObj_setGeomTransform(struct layerObj *self,char *transform){
-      msFree(self->_geomtransform.string);
-      if (!transform || strlen(transform) > 0) {
-        self->_geomtransform.string = msStrdup(transform);
-        self->_geomtransform.type = MS_GEOMTRANSFORM_EXPRESSION;
-      }
-      else {
-        self->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
-        self->_geomtransform.string = NULL;
-      }
-    }
-SWIGINTERN struct mapObj *new_mapObj(char *filename){
-        if (filename && strlen(filename))
-            return msLoadMap(filename, NULL);
-        else { /* create an empty map, no layers etc... */
-            return msNewMapObj();
-        }      
-    }
-SWIGINTERN void delete_mapObj(struct mapObj *self){
-        msFreeMap(self);
-    }
-SWIGINTERN mapObj *mapObj_clone(struct mapObj *self){
-        mapObj *dstMap;
-        dstMap = msNewMapObj();
-        if (msCopyMap(dstMap, self) != MS_SUCCESS) {
-            msFreeMap(dstMap);
-            dstMap = NULL;
-        }
-        return dstMap;
-    }
-SWIGINTERN int mapObj_insertLayer(struct mapObj *self,layerObj *layer,int index){
-        return msInsertLayer(self, layer, index);  
-    }
-SWIGINTERN layerObj *mapObj_removeLayer(struct mapObj *self,int index){
-    	layerObj *layer=msRemoveLayer(self, index);
-	MS_REFCNT_INCR(layer);
-        return layer;
-    }
-SWIGINTERN int mapObj_setExtent(struct mapObj *self,double minx,double miny,double maxx,double maxy){	
-	return msMapSetExtent( self, minx, miny, maxx, maxy );
-    }
-SWIGINTERN int mapObj_offsetExtent(struct mapObj *self,double x,double y){	
-	return msMapOffsetExtent( self, x, y );
-    }
-SWIGINTERN int mapObj_scaleExtent(struct mapObj *self,double zoomfactor,double minscaledenom,double maxscaledenom){	
-	return msMapScaleExtent( self, zoomfactor, minscaledenom, maxscaledenom );
-    }
-SWIGINTERN int mapObj_setCenter(struct mapObj *self,pointObj *center){	
-	return msMapSetCenter( self, center );
-    }
-SWIGINTERN int mapObj_setSize(struct mapObj *self,int width,int height){
-        return msMapSetSize(self, width, height);
-    }
-SWIGINTERN int mapObj_setRotation(struct mapObj *self,double rotation_angle){
-        return msMapSetRotation( self, rotation_angle );
-    }
-SWIGINTERN layerObj *mapObj_getLayer(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numlayers) {
-    	MS_REFCNT_INCR(self->layers[i]);
-      	return (self->layers[i]); /* returns an EXISTING layer */
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN layerObj *mapObj_getLayerByName(struct mapObj *self,char *name){
-    int i;
-
-    i = msGetLayerIndex(self, name);
-
-    if(i != -1) {
-      MS_REFCNT_INCR(self->layers[i]);
-      return (self->layers[i]); /* returns an EXISTING layer */
-    }
-    else
-      return NULL;
-  }
-SWIGINTERN int mapObj_getSymbolByName(struct mapObj *self,char *name){
-    return msGetSymbolIndex(&self->symbolset, name, 1);
-  }
-SWIGINTERN void mapObj_prepareQuery(struct mapObj *self){
-    int status;
-
-    status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scaledenom);
-    if(status != MS_SUCCESS) self->scaledenom = -1;
-  }
-SWIGINTERN imageObj *mapObj_prepareImage(struct mapObj *self){
-    return msPrepareImage(self, 0);
-  }
-SWIGINTERN void mapObj_setImageType(struct mapObj *self,char *imagetype){
-      outputFormatObj *format;
-
-      format = msSelectOutputFormat( self, imagetype );
-      if( format == NULL )
-	  msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		     "setImageType()", imagetype );
-      else
-      {  
-          msFree( self->imagetype );
-          self->imagetype = strdup(imagetype);
-          msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                               -1111, -1111 );
-      }
-  }
-SWIGINTERN void mapObj_selectOutputFormat(struct mapObj *self,char *imagetype){
-        outputFormatObj *format;
-
-        format = msSelectOutputFormat( self, imagetype );
-        if ( format == NULL )
-	        msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		               "setImageType()", imagetype );
-        else
-        {   
-            msFree( self->imagetype );
-            self->imagetype = strdup(imagetype);
-            msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                                 -1111, -1111 );
-        }
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormat(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numoutputformats) {
-    	MS_REFCNT_INCR(self->outputformatlist[i]);
-        return (self->outputformatlist[i]); 
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN void mapObj_setOutputFormat(struct mapObj *self,outputFormatObj *format){
-      msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                           -1111, -1111 );
-  }
-SWIGINTERN imageObj *mapObj_draw(struct mapObj *self){
-    return msDrawMap(self, 0);
-  }
-SWIGINTERN imageObj *mapObj_drawQuery(struct mapObj *self){
-    return msDrawMap(self, 1);
-  }
-SWIGINTERN imageObj *mapObj_drawLegend(struct mapObj *self){
-    return msDrawLegend(self, 0, NULL);
-  }
-SWIGINTERN imageObj *mapObj_drawScalebar(struct mapObj *self){
-    return msDrawScalebar(self);
-  }
-SWIGINTERN imageObj *mapObj_drawReferenceMap(struct mapObj *self){
-    return msDrawReferenceMap(self);
-  }
-SWIGINTERN int mapObj_embedScalebar(struct mapObj *self,imageObj *image){	
-    return msEmbedScalebar(self, image);
-  }
-SWIGINTERN int mapObj_embedLegend(struct mapObj *self,imageObj *image){	
-    return msEmbedLegend(self, image);
-  }
-SWIGINTERN int mapObj_drawLabelCache(struct mapObj *self,imageObj *image){
-    return msDrawLabelCache(image, self);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_getLabel(struct mapObj *self,int i){
-    return msGetLabelCacheMember(&(self->labelcache), i);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_nextLabel(struct mapObj *self){
-    static int i=0;
-
-    if(i<self->labelcache.numlabels)
-      return msGetLabelCacheMember(&(self->labelcache), i++);
-    else
-      return NULL;	
-  }
-SWIGINTERN int mapObj_queryByFilter(struct mapObj *self,char *string){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_FILTER;
-
-    self->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-    self->query.filter->string = strdup(string);
-    self->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-    self->query.filter->compiled = 0;
-    self->query.filter->flags = 0;
-    self->query.filter->tokens = self->query.filter->curtoken = NULL;
-    
-    self->query.rect = self->extent;
-
-    return msQueryByFilter(self);
-  }
-SWIGINTERN int mapObj_queryByPoint(struct mapObj *self,pointObj *point,int mode,double buffer){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_POINT;
-    self->query.mode = mode;
-    self->query.point = *point;
-    self->query.buffer = buffer;
-
-    return msQueryByPoint(self);
-  }
-SWIGINTERN int mapObj_queryByRect(struct mapObj *self,rectObj rect){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_RECT;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.rect = rect;
-
-    return msQueryByRect(self);
-  }
-SWIGINTERN int mapObj_queryByFeatures(struct mapObj *self,int slayer){
-    self->query.slayer = slayer;
-    return msQueryByFeatures(self);
-  }
-SWIGINTERN int mapObj_queryByShape(struct mapObj *self,shapeObj *shape){
-    msInitQuery(&(self->query));
-    
-    self->query.type = MS_QUERY_BY_SHAPE;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-    msInitShape(self->query.shape);
-    msCopyShape(shape, self->query.shape);
-
-    return msQueryByShape(self);
-  }
-SWIGINTERN int mapObj_setWKTProjection(struct mapObj *self,char *wkt){
-    return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-  }
-SWIGINTERN char *mapObj_getProjection(struct mapObj *self){
-    return msGetProjectionString(&(self->projection));
-  }
-SWIGINTERN int mapObj_setProjection(struct mapObj *self,char *proj4){
-    return msLoadProjectionString(&(self->projection), proj4);
-  }
-SWIGINTERN int mapObj_save(struct mapObj *self,char *filename){
-    return msSaveMap(self, filename);
-  }
-SWIGINTERN int mapObj_saveQuery(struct mapObj *self,char *filename,int results){
-    return msSaveQuery(self, filename, results);
-  }
-SWIGINTERN int mapObj_loadQuery(struct mapObj *self,char *filename){
-    return msLoadQuery(self, filename);
-  }
-SWIGINTERN void mapObj_freeQuery(struct mapObj *self,int qlayer){
-    msQueryFree(self, qlayer);
-  }
-SWIGINTERN int mapObj_saveQueryAsGML(struct mapObj *self,char *filename,char const *ns){
-    return msGMLWriteQuery(self, filename, ns);
-  }
-SWIGINTERN char *mapObj_getMetaData(struct mapObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->web.metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int mapObj_setMetaData(struct mapObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->web.metadata), name, value) == NULL)
-	return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN int mapObj_removeMetaData(struct mapObj *self,char *name){
-    return(msRemoveHashTable(&(self->web.metadata), name));
-  }
-SWIGINTERN char *mapObj_getFirstMetaDataKey(struct mapObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->web.metadata));
-  }
-SWIGINTERN char *mapObj_getNextMetaDataKey(struct mapObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->web.metadata), lastkey);
-  }
-SWIGINTERN int mapObj_setSymbolSet(struct mapObj *self,char *szFileName){
-    msFreeSymbolSet(&self->symbolset);
-    msInitSymbolSet(&self->symbolset);
-   
-    self->symbolset.filename = strdup(szFileName);
-
-    /* Symbolset shares same fontset as main mapfile */
-    self->symbolset.fontset = &(self->fontset);
-
-    return msLoadSymbolSet(&self->symbolset, self);
-  }
-SWIGINTERN int mapObj_getNumSymbols(struct mapObj *self){
-    return self->symbolset.numsymbols;
-  }
-SWIGINTERN int mapObj_setFontSet(struct mapObj *self,char *filename){
-    msFreeFontSet(&(self->fontset));
-    msInitFontSet(&(self->fontset));
-   
-    self->fontset.filename = strdup(filename);
-
-    return msLoadFontSet(&(self->fontset), self);
-  }
-SWIGINTERN int mapObj_saveMapContext(struct mapObj *self,char *szFileName){
-    return msSaveMapContext(self, szFileName);
-  }
-SWIGINTERN int mapObj_loadMapContext(struct mapObj *self,char *szFileName,int useUniqueNames){
-    return msLoadMapContext(self, szFileName, useUniqueNames);
-  }
-SWIGINTERN int mapObj_moveLayerUp(struct mapObj *self,int layerindex){
-    return msMoveLayerUp(self, layerindex);
-  }
-SWIGINTERN int mapObj_moveLayerDown(struct mapObj *self,int layerindex){
-    return msMoveLayerDown(self, layerindex);
-  }
-SWIGINTERN intarray *mapObj_getLayersDrawingOrder(struct mapObj *self){
-    int i;
-    intarray *order;
-    order = new_intarray(self->numlayers);
-    for (i=0; i<self->numlayers; i++)
-        
-
-
-        intarray_setitem(order, i, self->layerorder[i]);
-        
-    return order;
-  }
-SWIGINTERN int mapObj_setLayersDrawingOrder(struct mapObj *self,int *panIndexes){
-    return  msSetLayersdrawingOrder(self, panIndexes); 
-  }
-SWIGINTERN void mapObj_setConfigOption(struct mapObj *self,char *key,char *value){
-    msSetConfigOption(self,key,value);
-  }
-SWIGINTERN char *mapObj_getConfigOption(struct mapObj *self,char *key){
-    return (char *) msGetConfigOption(self,key);
-  }
-SWIGINTERN void mapObj_applyConfigOptions(struct mapObj *self){
-    msApplyMapConfigOptions( self );
-  }
-SWIGINTERN int mapObj_applySLD(struct mapObj *self,char *sld){
-      return msSLDApplySLD(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN int mapObj_applySLDURL(struct mapObj *self,char *sld){
-      return msSLDApplySLDURL(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN char *mapObj_generateSLD(struct mapObj *self){
-        return (char *) msSLDGenerateSLD(self, -1, NULL);
-    }
-SWIGINTERN char *mapObj_processTemplate(struct mapObj *self,int bGenerateImages,char **names,char **values,int numentries){
-        return msProcessTemplate(self, bGenerateImages, names, values,
-                                 numentries);
-    }
-SWIGINTERN char *mapObj_processLegendTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessLegendTemplate(self, names, values, numentries);
-    }
-SWIGINTERN char *mapObj_processQueryTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessQueryTemplate(self, 1, names, values, numentries);
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormatByName(struct mapObj *self,char *name){
-        return msSelectOutputFormat(self, name); 
-    }
-SWIGINTERN int mapObj_appendOutputFormat(struct mapObj *self,outputFormatObj *format){
-        return msAppendOutputFormat(self, format);
-    }
-SWIGINTERN int mapObj_removeOutputFormat(struct mapObj *self,char *name){
-        return msRemoveOutputFormat(self, name);
-    }
-SWIGINTERN int mapObj_loadOWSParameters(struct mapObj *self,cgiRequestObj *request,char *wmtver_string){
-        return msMapLoadOWSParameters(self, request, wmtver_string);
-    }
-SWIGINTERN int mapObj_OWSDispatch(struct mapObj *self,cgiRequestObj *req){
-	return msOWSDispatch( self, req, 1 );
-    }
-SWIGINTERN char *mapObj_convertToString(struct mapObj *self){
-        return msWriteMapToString(self);
-    }
-SWIGINTERN int mapObj_zoomPoint(struct mapObj *self,int zoomfactor,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        int         bMaxExtSet;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (zoomfactor == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx)  {
-            msSetError(12, "Georeferenced coordinates minx >= maxx",  "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy)  {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomPoint()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* --- -------------------------------------------------------- */
-        /*      zoom in                                                 */
-        /* ------------------------------------------------------------ */
-        if (zoomfactor > 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/(2*zoomfactor));        
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/(2*zoomfactor));
-        }
-
-        if (zoomfactor < 0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2)*(abs(zoomfactor));
-        }
-
-        if (zoomfactor == 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2);
-        }
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before zooming.                           */
-        /* ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-    
-        if (self->web.maxscaledenom > 0) {
-            if (zoomfactor < 0 && dfNewScale > self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /*  we do a spcial case for zoom in : we try to zoom as much as */
-        /*  possible using the mincale set in the .map.                 */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale < self->web.minscaledenom && zoomfactor > 1) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfGeoPosY, 
-                                                   self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger than 
-             * max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        /* ------------------------------------------------------------ */
-        /*      set the map extents with new values.                    */
-        /* ------------------------------------------------------------ */
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);      
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomRectangle(struct mapObj *self,rectObj *poPixRect,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        double      dfDeltaExt;
-        double dfMiddleX, dfMiddleY;
-        double dX, dY;
-        int bMaxExtSet;
-        
-        bMaxExtSet = 0;
-        dfNewScale = 0.0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) bMaxExtSet = 1;
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (poPixRect == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomRectangle");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min <= max.   */
-        /* ----------------------------------------------------------- */
-        if (poPixRect->minx >= poPixRect->maxx) {
-            msSetError(12, "image rectangle minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        /* This is not a typo: "maxx >= minx". For historical reason, we
-         * keep this as it is. See documentation for more info about this check. */
-        if (poPixRect->maxy >= poPixRect->miny) {
-            msSetError(12, "image rectangle maxy >= miny", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12,  "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-        }
-
-  
-        /* ----------------------------------------------------------- */
-        /*   Convert pixel rectangle to georeferenced rectangle        */
-        /* ----------------------------------------------------------- */
-        
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-
-        oNewGeorefExt.minx = Pix2Georef((int)poPixRect->minx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.maxx = Pix2Georef((int)poPixRect->maxx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.miny = Pix2Georef((int)poPixRect->miny, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-        oNewGeorefExt.maxy = Pix2Georef((int)poPixRect->maxy, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before setting extents.                   */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0 &&  dfNewScale > self->web.maxscaledenom)
-            return MS_FAILURE;
-
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom) {
-            dfMiddleX = oNewGeorefExt.minx + ((oNewGeorefExt.maxx - oNewGeorefExt.minx)/2);
-            dfMiddleY = oNewGeorefExt.miny + ((oNewGeorefExt.maxy - oNewGeorefExt.miny)/2);
-
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfMiddleY, self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfMiddleX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfMiddleY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfMiddleX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfMiddleY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width,  self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomScale(struct mapObj *self,double scale,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale, dfCurrentScale;
-        int         bMaxExtSet;
-        int nTmp;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        dfCurrentScale = 0.0;
-        nTmp = 0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (scale <= 0.0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL ) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomScale");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12,  "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* ------------------------------------------------------------ */
-        /*  Calculate new extents based on the scale.                   */
-        /* ------------------------------------------------------------ */
-
-        /* ============================================================ */
-        /*  make sure to take the smallest size because this is the one */
-        /*  that will be used to ajust the scale.                       */
-        /* ============================================================ */
-
-        if (self->width <  self->height)
-            nTmp = self->width;
-        else
-            nTmp = self->height;
-
-        /* To be consistent in swig mapscript and PHP mapscript, 
-           use the same function to calculate the delta extents. */
-        dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-
-        if (dfDeltaExt > 0.0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-        } else
-            return MS_FAILURE;
-
-        /* ------------------------------------------------------------ */
-        /*   get current scale.                                         */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(*poGeorefExt, self->units, self->width, self->height, self->resolution, &dfCurrentScale);
-
-        /* ------------------------------------------------------------ *
-         *   if the min and max scale are set in the map file, we will  *
-         *   use them to test before zooming.                           *
-         *                                                              *
-         *   This function has the same effect as zoomin or zoom out.
-         *   If the current scale is > newscale we zoom in; else it is
-         *   a zoom out.
-         * ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0) {
-            if (dfCurrentScale < dfNewScale && dfNewScale >  self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /* we do a special case for zoom in : we try to zoom as much as */
-        /* possible using the mincale set in the .map.                  */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom && dfCurrentScale > dfNewScale) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN rectObj *new_rectObj(double minx,double miny,double maxx,double maxy,int imageunits){	
-        rectObj *rect;
-    
-        if (imageunits == 0)
-        { 
-            if (minx > maxx || miny > maxy)
-            {
-                msSetError(34,
-                    "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-        else 
-        {
-            if (minx > maxx || maxy > miny) 
-            {
-                msSetError(34,
-                    "image (pixel/line) units { 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-    
-        rect = (rectObj *)calloc(1, sizeof(rectObj));
-        if (!rect)
-            return(NULL);
-    
-        rect->minx = minx;
-        rect->miny = miny;
-        rect->maxx = maxx;
-        rect->maxy = maxy;
-
-        return(rect);    	
-    }
-SWIGINTERN void delete_rectObj(rectObj *self){
-        free(self);
-    }
-SWIGINTERN int rectObj_project(rectObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectRect(projin, projout, self);
-    }
-SWIGINTERN double rectObj_fit(rectObj *self,int width,int height){
-        return  msAdjustExtent(self, width, height);
-    }
-SWIGINTERN int rectObj_draw(rectObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        shapeObj shape;
-
-        msInitShape(&shape);
-        msRectToPolygon(*self, &shape);
-        shape.classindex = classindex;
-        if(text && layer->class[classindex]->numlabels > 0) {
-          shape.text = strdup(text);
-          msShapeGetAnnotation(layer,&shape);
-        }
-        
-        msDrawShape(map, layer, &shape, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-
-        msFreeShape(&shape);
-    
-        return MS_SUCCESS;
-    }
-SWIGINTERN pointObj *rectObj_getCenter(rectObj *self){
-		pointObj *center;
-        center = (pointObj *)calloc(1, sizeof(pointObj));
-        if (!center) {
-            msSetError(2, "Failed to allocate memory for point", "getCenter()");
-            return NULL;
-        }
-        center->x = (self->minx + self->maxx)/2;
-        center->y = (self->miny + self->maxy)/2;
-        
-        return center;
-    }
-SWIGINTERN shapeObj *rectObj_toPolygon(rectObj *self){
-        lineObj line = {0,NULL};
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = MS_SHAPE_POLYGON;
-  
-        line.point = (pointObj *)malloc(sizeof(pointObj)*5);
-        line.point[0].x = self->minx;
-        line.point[0].y = self->miny;
-        line.point[1].x = self->minx;
-        line.point[1].y = self->maxy;
-        line.point[2].x = self->maxx;
-        line.point[2].y = self->maxy;
-        line.point[3].x = self->maxx;
-        line.point[3].y = self->miny;
-        line.point[4].x = line.point[0].x;
-        line.point[4].y = line.point[0].y;
-  
-        line.numpoints = 5;
-  
-        msAddLine(shape, &line);
-        msComputeBounds(shape);
-        
-        free(line.point);
-
-        return shape;
-    }
-SWIGINTERN char *rectObj_toString(rectObj *self){
-        char buffer[256];
-        char fmt[]="{ 'minx': %.16g , 'miny': %.16g , 'maxx': %.16g , 'maxy': %.16g }";
-        msRectToFormattedString(self, (char *) &fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN pointObj *new_pointObj(double x,double y,double z,double m){
-        pointObj *p;
-        p = (pointObj *)calloc(1,sizeof(pointObj));
-        if (!p) return NULL;
-        p->x = x;
-        p->y = y;
-
-
-
-
-        return p;
-    }
-SWIGINTERN void delete_pointObj(pointObj *self){
-        free(self);
-    }
-SWIGINTERN int pointObj_project(pointObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectPoint(projin, projout, self);
-    }
-SWIGINTERN int pointObj_draw(pointObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        return msDrawPoint(map, layer, self, image, classindex, text);
-    }
-SWIGINTERN double pointObj_distanceToPoint(pointObj *self,pointObj *point){
-        return msDistancePointToPoint(self, point);
-    }
-SWIGINTERN double pointObj_distanceToSegment(pointObj *self,pointObj *a,pointObj *b){
-        return msDistancePointToSegment(self, a, b);
-    }
-SWIGINTERN double pointObj_distanceToShape(pointObj *self,shapeObj *shape){
-        return msDistancePointToShape(self, shape);
-    }
-SWIGINTERN int pointObj_setXY(pointObj *self,double x,double y,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-	
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZ(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZM(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *pointObj_toString(pointObj *self){
-        char buffer[256];
-        const char *fmt;
-
-
-
-
-
-
-
-        fmt = "{ 'x': %.16g, 'y': %.16g }";
-
-	
-        msPointToFormattedString(self, fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN shapeObj *pointObj_toShape(pointObj *self){
-      shapeObj *shape;
-
-      shape = (shapeObj *) malloc(sizeof(shapeObj));
-      msInitShape(shape);
-    
-      shape->type = MS_SHAPE_POINT;
-      shape->line = (lineObj *) malloc(sizeof(lineObj));
-      shape->numlines = 1;
-      shape->line[0].point = (pointObj *) malloc(sizeof(pointObj));
-      shape->line[0].numpoints = 1;
-
-      shape->line[0].point[0].x = self->x;
-      shape->line[0].point[0].y = self->y;
-
-
-
-
-
-      return shape;
-    }
-SWIGINTERN lineObj *new_lineObj(){
-        lineObj *line;
-
-        line = (lineObj *)malloc(sizeof(lineObj));
-        if (!line)
-            return(NULL);
-
-        line->numpoints=0;
-        line->point=NULL;
-
-        return line;
-    }
-SWIGINTERN void delete_lineObj(lineObj *self){
-        free(self->point);
-        free(self);		
-    }
-SWIGINTERN int lineObj_project(lineObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectLine(projin, projout, self);
-    }
-SWIGINTERN pointObj *lineObj_get(lineObj *self,int i){
-        if (i<0 || i>=self->numpoints)
-            return NULL;
-        else
-            return &(self->point[i]);
-    }
-SWIGINTERN int lineObj_add(lineObj *self,pointObj *p){
-        if (self->numpoints == 0) { /* new */	
-        self->point = (pointObj *)malloc(sizeof(pointObj));      
-        if (!self->point)
-	        return MS_FAILURE;
-        } else { /* extend array */
-            self->point = (pointObj *)realloc(self->point, 
-                                      sizeof(pointObj)*(self->numpoints+1));
-        if (!self->point)
-	        return MS_FAILURE;
-        }
-
-        self->point[self->numpoints].x = p->x;
-        self->point[self->numpoints].y = p->y;
-        self->numpoints++;
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int lineObj_set(lineObj *self,int i,pointObj *p){
-        if (i<0 || i>=self->numpoints)
-            return MS_FAILURE;
-
-        self->point[i].x = p->x;
-        self->point[i].y = p->y;
-        return MS_SUCCESS;    
-    }
-SWIGINTERN shapeObj *new_shapeObj(int type){
-        shapeObj *shape;
-
-	shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-
-        msInitShape(shape);
-        if(type >= 0) shape->type = type;
-        
-        return shape;
-    }
-SWIGINTERN void delete_shapeObj(shapeObj *self){
-        msFreeShape(self);
-        free(self);		
-    }
-SWIGINTERN shapeObj *shapeObj_fromWKT(char *wkt){
-	shapeObj *shape;
-        
-        if(!wkt) return NULL;
-
-        shape = msShapeFromWKT(wkt);
-	if(!shape) return NULL;
-
-	return shape;
-    }
-SWIGINTERN int shapeObj_project(shapeObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectShape(projin, projout, self);
-    }
-SWIGINTERN lineObj *shapeObj_get(shapeObj *self,int i){
-        if (i<0 || i>=self->numlines)
-            return NULL;
-        else
-            return &(self->line[i]);
-    }
-SWIGINTERN int shapeObj_add(shapeObj *self,lineObj *line){
-        return msAddLine(self, line);
-    }
-SWIGINTERN int shapeObj_draw(shapeObj *self,mapObj *map,layerObj *layer,imageObj *image){
-        return msDrawShape(map, layer, self, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-    }
-SWIGINTERN void shapeObj_setBounds(shapeObj *self){    
-        msComputeBounds(self);
-        return;
-    }
-SWIGINTERN shapeObj *shapeObj_clone(shapeObj *self){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msCopyShape(self, shape);
-        return shape;
-    }
-SWIGINTERN int shapeObj_copy(shapeObj *self,shapeObj *dest){
-        return(msCopyShape(self, dest));
-    }
-SWIGINTERN char *shapeObj_toWKT(shapeObj *self){
-        return msShapeToWKT(self);
-    }
-SWIGINTERN shapeObj *shapeObj_buffer(shapeObj *self,double width){ return msGEOSBuffer(self, width); }
-SWIGINTERN shapeObj *shapeObj_simplify(shapeObj *self,double tolerance){ return msGEOSSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_topologyPreservingSimplify(shapeObj *self,double tolerance){ return msGEOSTopologyPreservingSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_convexHull(shapeObj *self){ return msGEOSConvexHull(self); }
-SWIGINTERN shapeObj *shapeObj_boundary(shapeObj *self){ return msGEOSBoundary(self); }
-SWIGINTERN pointObj *shapeObj_getCentroid(shapeObj *self){ return msGEOSGetCentroid(self); }
-SWIGINTERN shapeObj *shapeObj_Union(shapeObj *self,shapeObj *shape){ return msGEOSUnion(self, shape); }
-SWIGINTERN shapeObj *shapeObj_intersection(shapeObj *self,shapeObj *shape){ return msGEOSIntersection(self, shape); }
-SWIGINTERN shapeObj *shapeObj_difference(shapeObj *self,shapeObj *shape){ return msGEOSDifference(self, shape); }
-SWIGINTERN shapeObj *shapeObj_symDifference(shapeObj *self,shapeObj *shape){ return msGEOSSymDifference(self, shape); }
-SWIGINTERN int shapeObj_contains__SWIG_0(shapeObj *self,shapeObj *shape){ return msGEOSContains(self, shape); }
-SWIGINTERN int shapeObj_overlaps(shapeObj *self,shapeObj *shape){ return msGEOSOverlaps(self, shape); }
-SWIGINTERN int shapeObj_within(shapeObj *self,shapeObj *shape){ return msGEOSWithin(self, shape); }
-SWIGINTERN int shapeObj_crosses(shapeObj *self,shapeObj *shape){ return msGEOSCrosses(self, shape); }
-SWIGINTERN int shapeObj_intersects(shapeObj *self,shapeObj *shape){ return msGEOSIntersects(self, shape); }
-SWIGINTERN int shapeObj_touches(shapeObj *self,shapeObj *shape){ return msGEOSTouches(self, shape); }
-SWIGINTERN int shapeObj_equals(shapeObj *self,shapeObj *shape){ return msGEOSEquals(self, shape); }
-SWIGINTERN int shapeObj_disjoint(shapeObj *self,shapeObj *shape){ return msGEOSDisjoint(self, shape); }
-SWIGINTERN double shapeObj_getArea(shapeObj *self){ return msGEOSArea(self); }
-SWIGINTERN double shapeObj_getLength(shapeObj *self){ return msGEOSLength(self); }
-SWIGINTERN char *shapeObj_getValue(shapeObj *self,int i){
-        if (i >= 0 && i < self->numvalues && self->values)
-            return (self->values[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int shapeObj_contains__SWIG_1(shapeObj *self,pointObj *point){
-        if (self->type == MS_SHAPE_POLYGON)
-            return msIntersectPointPolygon(point, self);
-        
-        return -1;
-    }
-SWIGINTERN double shapeObj_distanceToPoint(shapeObj *self,pointObj *point){
-        return msDistancePointToShape(point, self); /* should there be a GEOS version of this? */
-    }
-SWIGINTERN double shapeObj_distanceToShape(shapeObj *self,shapeObj *shape){
-	return msGEOSDistance(self, shape); /* note this calls msDistanceShapeToShape() if GEOS support is not present */
-    }
-SWIGINTERN pointObj *shapeObj_getLabelPoint(shapeObj *self){
-        pointObj *point = (pointObj *)calloc(1, sizeof(pointObj));
-        if (point == NULL) {
-            msSetError(2, "Failed to allocate memory for point", "labelPoint()");
-            return NULL;
-        }
-
-        if(self->type == MS_SHAPE_POLYGON && msPolygonLabelPoint(self, point, -1) == MS_SUCCESS)
-            return point;
-
-        free(point);
-        return NULL;
-    }
-SWIGINTERN int shapeObj_setValue(shapeObj *self,int i,char *value){
-        if (!self->values || !value)
-        {
-            msSetError(19, "Can't set value", "setValue()");
-            return MS_FAILURE;
-        }
-        if (i >= 0 && i < self->numvalues)
-        {
-            msFree(self->values[i]);
-            self->values[i] = strdup(value);
-            if (!self->values[i])
-            {
-                return MS_FAILURE;
-            }
-            else return MS_SUCCESS;
-        }
-        else
-        {
-            msSetError(19, "Invalid value index", 
-                                  "setValue()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN void shapeObj_initValues(shapeObj *self,int numvalues){
-        int i;
-        
-        if(self->values) msFreeCharArray(self->values, self->numvalues);
-        self->values = NULL;
-        self->numvalues = 0;
-        
-        /* Allocate memory for the values */
-        if (numvalues > 0) {
-            if ((self->values = (char **)malloc(sizeof(char *)*numvalues)) == NULL) {
-                msSetError(2, "Failed to allocate memory for values", "shapeObj()");
-                return;
-            } else {
-                for (i=0; i<numvalues; i++) self->values[i] = strdup("");
-            }
-            self->numvalues = numvalues;
-        }
-    }
-
-SWIGINTERNINLINE SV *
-SWIG_From_unsigned_SS_long  SWIG_PERL_DECL_ARGS_1(unsigned long value)
-{
-  SV *sv;
-  if (value <= UV_MAX)
-    sv = newSVuv(value);
-  else
-    sv = newSVpvf("%lu", value);
-  return sv_2mortal(sv);
-}
-
-
-SWIGINTERNINLINE SV *
-SWIG_From_unsigned_SS_int  SWIG_PERL_DECL_ARGS_1(unsigned int value)
-{    
-  return SWIG_From_unsigned_SS_long  SWIG_PERL_CALL_ARGS_1(value);
-}
-
-SWIGINTERN char *DBFInfo_getFieldName(DBFInfo *self,int iField){
-        static char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, 
-                          &pnDecimals);
-	    return pszFieldName;
-    }
-SWIGINTERN int DBFInfo_getFieldWidth(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnWidth;
-    }
-SWIGINTERN int DBFInfo_getFieldDecimals(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnDecimals;
-    }
-SWIGINTERN int DBFInfo_getFieldType(DBFInfo *self,int iField){
-	    return msDBFGetFieldInfo(self, iField, NULL, NULL, NULL);
-    }
-SWIGINTERN shapefileObj *new_shapefileObj(char *filename,int type){    
-        shapefileObj *shapefile;
-        int status;
-
-        shapefile = (shapefileObj *)malloc(sizeof(shapefileObj));
-        if (!shapefile)
-            return NULL;
-
-        if (type == -1)
-            status = msShapefileOpen(shapefile, "rb", filename, 1);
-        else if (type == -2)
-            status = msShapefileOpen(shapefile, "rb+", filename, 1);
-        else
-            status = msShapefileCreate(shapefile, filename, type);
-
-        if (status == -1) {
-            msShapefileClose(shapefile);
-            free(shapefile);
-            return NULL;
-        }
- 
-        return(shapefile);
-    }
-SWIGINTERN void delete_shapefileObj(shapefileObj *self){
-        msShapefileClose(self);
-        free(self);  
-    }
-SWIGINTERN int shapefileObj_get(shapefileObj *self,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN shapeObj *shapefileObj_getShape(shapefileObj *self,int i){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msSHPReadShape(self->hSHP, i, shape);
-        return shape;
-
-    }
-SWIGINTERN int shapefileObj_getPoint(shapefileObj *self,int i,pointObj *point){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msSHPReadPoint(self->hSHP, i, point);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int shapefileObj_getTransformed(shapefileObj *self,mapObj *map,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-        msTransformShapeSimplify(shape, map->extent, map->cellsize);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN void shapefileObj_getExtent(shapefileObj *self,int i,rectObj *rect){
-        msSHPReadBounds(self->hSHP, i, rect);
-    }
-SWIGINTERN int shapefileObj_add(shapefileObj *self,shapeObj *shape){
-        /* Trap NULL or empty shapes -- bug 1201 */
-        if (!shape) 
-        {
-            msSetError(19, "Can't add NULL shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-        else if (!shape->line)
-        {
-            msSetError(19, "Can't add empty shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-
-        return msSHPWriteShape(self->hSHP, shape);	
-    }
-SWIGINTERN int shapefileObj_addPoint(shapefileObj *self,pointObj *point){    
-        return msSHPWritePoint(self->hSHP, point);	
-    }
-SWIGINTERN DBFInfo *shapefileObj_getDBF(shapefileObj *self){
-    	return self->hDBF;
-    }
-SWIGINTERN projectionObj *new_projectionObj(char *proj4){
-        int status;
-        projectionObj *proj=NULL;
-
-        proj = (projectionObj *)malloc(sizeof(projectionObj));
-        if (!proj) return NULL;
-        msInitProjection(proj);
-
-        status = msLoadProjectionString(proj, proj4);
-        if (status == -1) {
-            msFreeProjection(proj);
-            free(proj);
-            return NULL;
-        }
-
-        return proj;
-    }
-SWIGINTERN void delete_projectionObj(projectionObj *self){
-        msFreeProjection(self);
-        free(self);		
-    }
-SWIGINTERN int projectionObj_setWKTProjection(projectionObj *self,char *wkt){
-        /* no debug output here */
-        return msOGCWKT2ProjectionObj(wkt, self, 0);
-    }
-SWIGINTERN int projectionObj_getUnits(projectionObj *self){
-      return GetMapserverUnitUsingProj(self);
-    }
-SWIGINTERN colorObj *new_colorObj(int red,int green,int blue,int pen){
-        colorObj *color;
-        
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "colorObj()");
-            return NULL;
-        }
-    
-        color = (colorObj *)calloc(1, sizeof(colorObj));
-        if (!color)
-            return(NULL);
-    
-        MS_INIT_COLOR(*color, red, green, blue, 255);
-
-        return(color);    	
-    }
-SWIGINTERN void delete_colorObj(colorObj *self){
-        free(self);
-    }
-SWIGINTERN int colorObj_setRGB(colorObj *self,int red,int green,int blue){
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "setRGB()");
-            return MS_FAILURE;
-        }
-    
-        MS_INIT_COLOR(*self, red, green, blue, 255);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int colorObj_setHex(colorObj *self,char *psHexColor){
-        int red, green, blue;
-        if (psHexColor && strlen(psHexColor)== 7 && psHexColor[0] == '#') {
-            red = msHexToInt(psHexColor+1);
-            green = msHexToInt(psHexColor+3);
-            blue= msHexToInt(psHexColor+5);
-            if (red > 255 || green > 255 || blue > 255) {
-                msSetError(12, "Invalid color index.", "setHex()");
-                return MS_FAILURE;
-            }
-
-            MS_INIT_COLOR(*self, red, green, blue, 255);
-            return MS_SUCCESS;
-        }
-        else {
-            msSetError(12, "Invalid hex color.", "setHex()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN char *colorObj_toHex(colorObj *self){
-        char hexcolor[8] = "";
-
-        if (!self) 
-        {
-            msSetError(12, "Can't express NULL color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        if (self->red < 0 || self->green < 0 || self->blue < 0) 
-        {
-            msSetError(12, "Can't express invalid color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        snprintf(hexcolor, 8, "#%02x%02x%02x",
-                 self->red, self->green, self->blue);
-        return strdup(hexcolor);
-    }
-SWIGINTERN struct symbolObj *new_symbolObj(char *symbolname,char const *imagefile){
-        symbolObj *symbol;
-        symbol = (symbolObj *) malloc(sizeof(symbolObj));
-        initSymbol(symbol);
-        symbol->name = strdup(symbolname);
-        if (imagefile) {
-            msLoadImageSymbol(symbol, imagefile);
-        }
-        return symbol;
-    }
-SWIGINTERN void delete_symbolObj(struct symbolObj *self){
-		if (self) {
-            if (msFreeSymbol(self)==MS_SUCCESS) {
-            	free(self);
-				self=NULL;
-			}
-        }
-    }
-SWIGINTERN int symbolObj_setImagepath(struct symbolObj *self,char const *imagefile){
-	return msLoadImageSymbol(self, imagefile);
-    }
-SWIGINTERN int symbolObj_setPoints(struct symbolObj *self,lineObj *line){
-        int i;
-	self->sizex = 0;
-	self->sizey = 0;
-        for (i=0; i<line->numpoints; i++) {
-            MS_COPYPOINT(&(self->points[i]), &(line->point[i]));
-	    self->sizex = MS_MAX(self->sizex, self->points[i].x);
-	    self->sizey = MS_MAX(self->sizey, self->points[i].y);
-        }
-        self->numpoints = line->numpoints;
-        return self->numpoints;
-    }
-SWIGINTERN lineObj *symbolObj_getPoints(struct symbolObj *self){
-        int i;
-        lineObj *line;
-        line = (lineObj *) malloc(sizeof(lineObj));
-        line->point = (pointObj *) malloc(sizeof(pointObj)*(self->numpoints));
-        for (i=0; i<self->numpoints; i++) {
-            line->point[i].x = self->points[i].x;
-            line->point[i].y = self->points[i].y;
-        }
-        line->numpoints = self->numpoints;
-        return line;
-    }
-SWIGINTERN imageObj *symbolObj_getImage(struct symbolObj *self,outputFormatObj *input_format){
-        imageObj *image = NULL;
-        outputFormatObj *format = NULL;
-        rendererVTableObj *renderer = NULL;
-
-        if (self->type != MS_SYMBOL_PIXMAP)
-        {
-            msSetError(4, "Can't return image from non-pixmap symbol",
-                       "getImage()");
-            return NULL;
-        }
-    
-        if (input_format)
-        {
-            format = input_format;
-        }
-        else 
-        {
-            format = msCreateDefaultOutputFormat(NULL, "GD/GIF", "gdgif");
-            if (format == NULL)
-                format = msCreateDefaultOutputFormat(NULL, "GD/PNG", "gdpng");
-
-            if (format)
-                msInitializeRendererVTable(format);
-        }
-        
-        if (format == NULL) 
-        {
-            msSetError(15, "Could not create output format",
-                       "getImage()");
-            return NULL;
-        }
-
-        renderer = format->vtable;
-        msPreloadImageSymbol(renderer, self);
-        if (self->pixmap_buffer) 
-        {
-            image = msImageCreate(self->pixmap_buffer->width, self->pixmap_buffer->height, format, NULL, NULL,
-                                  MS_DEFAULT_RESOLUTION, MS_DEFAULT_RESOLUTION, NULL);
-            renderer->mergeRasterBuffer(image, self->pixmap_buffer, 1.0, 0, 0, 0, 0, 
-                                        self->pixmap_buffer->width, self->pixmap_buffer->height);
-        }
-
-        return image;
-    }
-SWIGINTERN int symbolObj_setImage(struct symbolObj *self,imageObj *image){
-        rendererVTableObj *renderer = NULL;
-        
-        renderer = image->format->vtable;
-        
-        if (self->pixmap_buffer) {
-            msFreeRasterBuffer(self->pixmap_buffer);
-            free(self->pixmap_buffer);
-        }
-        
-        self->pixmap_buffer = (rasterBufferObj*)malloc(sizeof(rasterBufferObj));
-        if (!self->pixmap_buffer) {
-            msSetError(2, NULL, "setImage()");
-            return MS_FAILURE;
-        }
-        self->type = MS_SYMBOL_PIXMAP;
-        renderer->getRasterBufferCopy(image, self->pixmap_buffer);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN struct errorObj *new_errorObj(){    
-        return msGetErrorObj();
-    }
-SWIGINTERN void delete_errorObj(struct errorObj *self){}
-SWIGINTERN errorObj *errorObj_next(struct errorObj *self){
-        errorObj *ep;	
-
-        if (self == NULL || self->next == NULL) return NULL;
-
-        ep = msGetErrorObj();
-        while (ep != self) {
-            /* We reached end of list of active errorObj and 
-               didn't find the errorObj... this is bad! */
-            if (ep->next == NULL) return NULL;
-            ep = ep->next;
-        }
-    
-        return ep->next;
-    }
-
-#include "../../mapserver.h"
-
-
-#include "../../maphash.h"
-
-SWIGINTERN hashTableObj *new_hashTableObj(){
-
-        return msCreateHashTable();
-    }
-SWIGINTERN void delete_hashTableObj(hashTableObj *self){
-        msFreeHashTable(self);
-    }
-SWIGINTERN int hashTableObj_set(hashTableObj *self,char *key,char *value){
-        if (msInsertHashTable(self, key, value) == NULL) {
-	        return MS_FAILURE;
-        }
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *hashTableObj_get(hashTableObj *self,char *key,char *default_value){
-        char *value = NULL;
-        if (!key) {
-            msSetError(16, "NULL key", "get");
-        }
-     
-        value = (char *) msLookupHashTable(self, key);
-        if (!value) {
-            return default_value;
-        }
-        return value;
-    }
-SWIGINTERN int hashTableObj_remove(hashTableObj *self,char *key){
-        return msRemoveHashTable(self, key);
-    }
-SWIGINTERN void hashTableObj_clear(hashTableObj *self){
-        msFreeHashItems(self);
-        initHashTable(self);
-    }
-SWIGINTERN char const *hashTableObj_nextKey(hashTableObj *self,char *prevkey){
-        return msNextKeyFromHashTable(self, (const char *) prevkey);
-    }
-
-static char *msGetEnvURL( const char *key, void *thread_context )
-{
-    if( strcmp(key,"REQUEST_METHOD") == 0 )
-        return "GET";
-
-    if( strcmp(key,"QUERY_STRING") == 0 )
-        return (char *) thread_context;
-
-    return NULL;
-}
-
-SWIGINTERN cgiRequestObj *new_cgiRequestObj(){
-        cgiRequestObj *request;
-
-        request = msAllocCgiObj();
-        if (!request) {
-            msSetError(13, "Failed to initialize object","OWSRequest()");
-            return NULL;
-        }
-        
-        return request;
-    }
-SWIGINTERN void delete_cgiRequestObj(cgiRequestObj *self){
-        msFreeCgiObj(self);
-    }
-SWIGINTERN int cgiRequestObj_loadParams(cgiRequestObj *self){
-	self->NumParams = loadParams( self, NULL, NULL, 0, NULL);
-	return self->NumParams;
-    }
-SWIGINTERN int cgiRequestObj_loadParamsFromURL(cgiRequestObj *self,char const *url){
-	self->NumParams = loadParams( self, msGetEnvURL, NULL, 0, (void*)url );
-	return self->NumParams;
-    }
-SWIGINTERN void cgiRequestObj_setParameter(cgiRequestObj *self,char *name,char *value){
-        int i;
-        
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "setItem()", 100);
-        }
-        
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                free(self->ParamValues[i]);
-                self->ParamValues[i] = strdup(value);
-                break;
-            }
-        }
-        if (i == self->NumParams) {
-            self->ParamNames[self->NumParams] = strdup(name);
-            self->ParamValues[self->NumParams] = strdup(value);
-            self->NumParams++;
-        }
-    }
-SWIGINTERN void cgiRequestObj_addParameter(cgiRequestObj *self,char *name,char *value){
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "addParameter()", 100);
-        }
-        self->ParamNames[self->NumParams] = strdup(name);
-        self->ParamValues[self->NumParams] = strdup(value);
-        self->NumParams++;
-    }
-SWIGINTERN char *cgiRequestObj_getName(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getName()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamNames[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValue(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getValue()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamValues[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValueByName(cgiRequestObj *self,char const *name){
-        int i;
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                return self->ParamValues[i];
-            }
-        }
-        return NULL;
-    }
-
-
-const char *msIO_getStdoutBufferString() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	return "";
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    /* write one zero byte and backtrack if it isn't already there */
-    if( buf->data_len == 0 || buf->data[buf->data_offset] != '\0' ) {
-        msIO_bufferWrite( buf, "", 1 );
-	buf->data_offset--;
-    }
-
-    return (const char *) (buf->data);
-}
-
-gdBuffer msIO_getStdoutBufferBytes() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-    gdBuffer     gdBuf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	gdBuf.data = (unsigned char*)"";
-	gdBuf.size = 0;
-	gdBuf.owns_data = MS_FALSE;
-	return gdBuf;
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    gdBuf.data = buf->data;
-    gdBuf.size = buf->data_offset;
-    gdBuf.owns_data = MS_TRUE;
-
-    /* we are seizing ownership of the buffer contents */
-    buf->data_offset = 0;
-    buf->data_len = 0;
-    buf->data = NULL;
-
-    return gdBuf;
-}
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef PERL_OBJECT
-#define MAGIC_CLASS _wrap_mapscript_var::
-class _wrap_mapscript_var : public CPerlObj {
-public:
-#else
-#define MAGIC_CLASS
-#endif
-SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
-    MAGIC_PPERL
-    croak("Value is read-only.");
-    return 0;
-}
-
-
-#ifdef PERL_OBJECT
-};
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-XS(_wrap_new_intarray) {
-  {
-    size_t arg1 ;
-    size_t val1 ;
-    int ecode1 = 0 ;
-    int argvi = 0;
-    intarray *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: new_intarray(nelements);");
-    }
-    ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_intarray" "', argument " "1"" of type '" "size_t""'");
-    } 
-    arg1 = (size_t)(val1);
-    result = (intarray *)new_intarray(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_intarray) {
-  {
-    intarray *arg1 = (intarray *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_intarray(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_intarray, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_intarray" "', argument " "1"" of type '" "intarray *""'"); 
-    }
-    arg1 = (intarray *)(argp1);
-    delete_intarray(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_intarray_getitem) {
-  {
-    intarray *arg1 = (intarray *) 0 ;
-    size_t arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    size_t val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: intarray_getitem(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_getitem" "', argument " "1"" of type '" "intarray *""'"); 
-    }
-    arg1 = (intarray *)(argp1);
-    ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intarray_getitem" "', argument " "2"" of type '" "size_t""'");
-    } 
-    arg2 = (size_t)(val2);
-    result = (int)intarray_getitem(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_intarray_setitem) {
-  {
-    intarray *arg1 = (intarray *) 0 ;
-    size_t arg2 ;
-    int arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    size_t val2 ;
-    int ecode2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: intarray_setitem(self,index,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_setitem" "', argument " "1"" of type '" "intarray *""'"); 
-    }
-    arg1 = (intarray *)(argp1);
-    ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intarray_setitem" "', argument " "2"" of type '" "size_t""'");
-    } 
-    arg2 = (size_t)(val2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "intarray_setitem" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    intarray_setitem(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_intarray_cast) {
-  {
-    intarray *arg1 = (intarray *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: intarray_cast(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_cast" "', argument " "1"" of type '" "intarray *""'"); 
-    }
-    arg1 = (intarray *)(argp1);
-    result = (int *)intarray_cast(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_intarray_frompointer) {
-  {
-    int *arg1 = (int *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    intarray *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: intarray_frompointer(t);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_int, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_frompointer" "', argument " "1"" of type '" "int *""'"); 
-    }
-    arg1 = (int *)(argp1);
-    result = (intarray *)intarray_frompointer(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_fontSetObj_filename_get) {
-  {
-    fontSetObj *arg1 = (fontSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: fontSetObj_filename_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_filename_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-    }
-    arg1 = (fontSetObj *)(argp1);
-    result = (char *) ((arg1)->filename);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_fontSetObj_numfonts_get) {
-  {
-    fontSetObj *arg1 = (fontSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: fontSetObj_numfonts_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_numfonts_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-    }
-    arg1 = (fontSetObj *)(argp1);
-    result = (int) ((arg1)->numfonts);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_fontSetObj_fonts_get) {
-  {
-    fontSetObj *arg1 = (fontSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: fontSetObj_fonts_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_fonts_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-    }
-    arg1 = (fontSetObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->fonts);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_fontSetObj) {
-  {
-    int argvi = 0;
-    fontSetObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_fontSetObj();");
-    }
-    result = (fontSetObj *)calloc(1, sizeof(fontSetObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fontSetObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_fontSetObj) {
-  {
-    fontSetObj *arg1 = (fontSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_fontSetObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_fontSetObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_fontSetObj" "', argument " "1"" of type '" "fontSetObj *""'"); 
-    }
-    arg1 = (fontSetObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_maxdistance_set) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_maxdistance_set(self,maxdistance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_maxdistance_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "clusterObj_maxdistance_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxdistance = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_maxdistance_get) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_maxdistance_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_maxdistance_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (double) ((arg1)->maxdistance);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_buffer_set) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_buffer_set(self,buffer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_buffer_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "clusterObj_buffer_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->buffer = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_buffer_get) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_buffer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_buffer_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (double) ((arg1)->buffer);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_region_set) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_region_set(self,region);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_region_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "clusterObj_region_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->region) free((char*)arg1->region);
-      if (arg2) {
-        arg1->region = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->region,arg2);
-      } else {
-        arg1->region = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_region_get) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_region_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_region_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (char *) ((arg1)->region);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_updateFromString) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_updateFromString" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "clusterObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)clusterObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_convertToString) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_convertToString" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (char *)clusterObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_setGroup) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_setGroup(self,group);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_setGroup" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "clusterObj_setGroup" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)clusterObj_setGroup(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_getGroupString) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_getGroupString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_getGroupString" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (char *)clusterObj_getGroupString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_setFilter) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: clusterObj_setFilter(self,filter);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_setFilter" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "clusterObj_setFilter" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)clusterObj_setFilter(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_clusterObj_getFilterString) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: clusterObj_getFilterString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_getFilterString" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    result = (char *)clusterObj_getFilterString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_clusterObj) {
-  {
-    int argvi = 0;
-    clusterObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_clusterObj();");
-    }
-    result = (clusterObj *)calloc(1, sizeof(clusterObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_clusterObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_clusterObj) {
-  {
-    clusterObj *arg1 = (clusterObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_clusterObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_clusterObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_clusterObj" "', argument " "1"" of type '" "clusterObj *""'"); 
-    }
-    arg1 = (clusterObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_numformatoptions_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_numformatoptions_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_numformatoptions_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->numformatoptions);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_name_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_name_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_name_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_name_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_mimetype_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_mimetype_set(self,mimetype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_mimetype_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_mimetype_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->mimetype) free((char*)arg1->mimetype);
-      if (arg2) {
-        arg1->mimetype = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->mimetype,arg2);
-      } else {
-        arg1->mimetype = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_mimetype_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_mimetype_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_mimetype_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (char *) ((arg1)->mimetype);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_driver_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_driver_set(self,driver);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_driver_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_driver_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->driver) free((char*)arg1->driver);
-      if (arg2) {
-        arg1->driver = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->driver,arg2);
-      } else {
-        arg1->driver = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_driver_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_driver_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_driver_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (char *) ((arg1)->driver);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_extension_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_extension_set(self,extension);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_extension_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_extension_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->extension) free((char*)arg1->extension);
-      if (arg2) {
-        arg1->extension = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->extension,arg2);
-      } else {
-        arg1->extension = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_extension_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_extension_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_extension_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (char *) ((arg1)->extension);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_renderer_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_renderer_set(self,renderer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_renderer_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_renderer_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->renderer = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_renderer_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_renderer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_renderer_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->renderer);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_imagemode_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_imagemode_set(self,imagemode);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_imagemode_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_imagemode_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->imagemode = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_imagemode_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_imagemode_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_imagemode_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->imagemode);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_transparent_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_transparent_set(self,transparent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_transparent_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_transparent_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->transparent = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_transparent_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_transparent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_transparent_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->transparent);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_bands_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_bands_set(self,bands);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_bands_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_bands_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->bands = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_bands_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_bands_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_bands_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->bands);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_inmapfile_set) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_inmapfile_set(self,inmapfile);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_inmapfile_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_inmapfile_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->inmapfile = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_inmapfile_get) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_inmapfile_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_inmapfile_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int) ((arg1)->inmapfile);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_outputFormatObj) {
-  {
-    char *arg1 = (char *) 0 ;
-    char *arg2 = (char *) NULL ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    outputFormatObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: new_outputFormatObj(driver,name);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_outputFormatObj" "', argument " "1"" of type '" "char const *""'");
-    }
-    arg1 = (char *)(buf1);
-    if (items > 1) {
-      res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_outputFormatObj" "', argument " "2"" of type '" "char *""'");
-      }
-      arg2 = (char *)(buf2);
-    }
-    result = (outputFormatObj *)new_outputFormatObj((char const *)arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_outputFormatObj) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_outputFormatObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_outputFormatObj" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    delete_outputFormatObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_setExtension) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_setExtension(self,extension);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setExtension" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setExtension" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    outputFormatObj_setExtension(arg1,(char const *)arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_setMimetype) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_setMimetype(self,mimetype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setMimetype" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setMimetype" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    outputFormatObj_setMimetype(arg1,(char const *)arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_setOption) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: outputFormatObj_setOption(self,key,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setOption" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setOption" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "outputFormatObj_setOption" "', argument " "3"" of type '" "char const *""'");
-    }
-    arg3 = (char *)(buf3);
-    outputFormatObj_setOption(arg1,(char const *)arg2,(char const *)arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_validate) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: outputFormatObj_validate(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_validate" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    result = (int)outputFormatObj_validate(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_getOption) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) "" ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: outputFormatObj_getOption(self,key,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_getOption" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_getOption" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "outputFormatObj_getOption" "', argument " "3"" of type '" "char const *""'");
-      }
-      arg3 = (char *)(buf3);
-    }
-    result = (char *)outputFormatObj_getOption(arg1,(char const *)arg2,(char const *)arg3);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_getOptionAt) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_getOptionAt(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_getOptionAt" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_getOptionAt" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)outputFormatObj_getOptionAt(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_outputFormatObj_attachDevice) {
-  {
-    outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-    void *arg2 = (void *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: outputFormatObj_attachDevice(self,device);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_attachDevice" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-    }
-    arg1 = (outputFormatObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_attachDevice" "', argument " "2"" of type '" "void *""'"); 
-    }
-    outputFormatObj_attachDevice(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_height_set) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_height_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_height_get) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_height_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_width_set) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_width_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_width_get) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_width_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_status_set) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_status_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_status_get) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_status_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_style_set) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_style_set(self,style);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_style_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_style_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->style = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_style_get) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_style_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_style_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (int) ((arg1)->style);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_color_set) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_color_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "queryMapObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_color_get) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_color_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_updateFromString) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: queryMapObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_updateFromString" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "queryMapObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)queryMapObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_queryMapObj_convertToString) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: queryMapObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_convertToString" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    result = (char *)queryMapObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_queryMapObj) {
-  {
-    int argvi = 0;
-    queryMapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_queryMapObj();");
-    }
-    result = (queryMapObj *)calloc(1, sizeof(queryMapObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_queryMapObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_queryMapObj) {
-  {
-    queryMapObj *arg1 = (queryMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_queryMapObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_queryMapObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_queryMapObj" "', argument " "1"" of type '" "queryMapObj *""'"); 
-    }
-    arg1 = (queryMapObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_log_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_log_set(self,log);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_log_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_log_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->log) free((char*)arg1->log);
-      if (arg2) {
-        arg1->log = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->log,arg2);
-      } else {
-        arg1->log = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_log_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_log_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_log_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->log);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_imagepath_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_imagepath_set(self,imagepath);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imagepath_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_imagepath_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->imagepath) free((char*)arg1->imagepath);
-      if (arg2) {
-        arg1->imagepath = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->imagepath,arg2);
-      } else {
-        arg1->imagepath = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_imagepath_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_imagepath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imagepath_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->imagepath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_imageurl_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_imageurl_set(self,imageurl);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imageurl_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_imageurl_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->imageurl) free((char*)arg1->imageurl);
-      if (arg2) {
-        arg1->imageurl = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->imageurl,arg2);
-      } else {
-        arg1->imageurl = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_imageurl_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_imageurl_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imageurl_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->imageurl);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_temppath_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_temppath_set(self,temppath);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_temppath_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_temppath_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->temppath) free((char*)arg1->temppath);
-      if (arg2) {
-        arg1->temppath = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->temppath,arg2);
-      } else {
-        arg1->temppath = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_temppath_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_temppath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_temppath_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->temppath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_map_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_map_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_map_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    {
-      /* Accessing map */
-      result = (struct mapObj *) ((arg1)->map);;
-      MS_REFCNT_INCR(result);
-    }
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_template_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_template_set(self,template);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_template_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_template_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->template) free((char*)arg1->template);
-      if (arg2) {
-        arg1->template = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->template,arg2);
-      } else {
-        arg1->template = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_template_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_template_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_template_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->template);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_header_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_header_set(self,header);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_header_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_header_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->header) free((char*)arg1->header);
-      if (arg2) {
-        arg1->header = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->header,arg2);
-      } else {
-        arg1->header = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_header_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_header_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_header_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->header);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_footer_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_footer_set(self,footer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_footer_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_footer_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->footer) free((char*)arg1->footer);
-      if (arg2) {
-        arg1->footer = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->footer,arg2);
-      } else {
-        arg1->footer = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_footer_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_footer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_footer_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->footer);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_empty_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_empty_set(self,empty);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_empty_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_empty_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->empty) free((char*)arg1->empty);
-      if (arg2) {
-        arg1->empty = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->empty,arg2);
-      } else {
-        arg1->empty = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_empty_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_empty_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_empty_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->empty);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_error_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_error_set(self,error);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_error_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_error_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->error) free((char*)arg1->error);
-      if (arg2) {
-        arg1->error = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->error,arg2);
-      } else {
-        arg1->error = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_error_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_error_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_error_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->error);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_extent_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    rectObj *arg2 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_extent_set(self,extent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_extent_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-    }
-    arg2 = (rectObj *)(argp2);
-    if (arg1) (arg1)->extent = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_extent_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_extent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_extent_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (rectObj *)& ((arg1)->extent);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_minscaledenom_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_minscaledenom_set(self,minscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_minscaledenom_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_minscaledenom_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_minscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_minscaledenom_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (double) ((arg1)->minscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_maxscaledenom_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_maxscaledenom_set(self,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxscaledenom_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_maxscaledenom_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_maxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxscaledenom_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (double) ((arg1)->maxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_mintemplate_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_mintemplate_set(self,mintemplate);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_mintemplate_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_mintemplate_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->mintemplate) free((char*)arg1->mintemplate);
-      if (arg2) {
-        arg1->mintemplate = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->mintemplate,arg2);
-      } else {
-        arg1->mintemplate = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_mintemplate_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_mintemplate_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_mintemplate_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->mintemplate);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_maxtemplate_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_maxtemplate_set(self,maxtemplate);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxtemplate_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_maxtemplate_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->maxtemplate) free((char*)arg1->maxtemplate);
-      if (arg2) {
-        arg1->maxtemplate = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->maxtemplate,arg2);
-      } else {
-        arg1->maxtemplate = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_maxtemplate_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_maxtemplate_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxtemplate_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->maxtemplate);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_queryformat_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_queryformat_set(self,queryformat);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_queryformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_queryformat_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->queryformat) free((char*)arg1->queryformat);
-      if (arg2) {
-        arg1->queryformat = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->queryformat,arg2);
-      } else {
-        arg1->queryformat = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_queryformat_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_queryformat_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_queryformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->queryformat);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_legendformat_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_legendformat_set(self,legendformat);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_legendformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_legendformat_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->legendformat) free((char*)arg1->legendformat);
-      if (arg2) {
-        arg1->legendformat = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->legendformat,arg2);
-      } else {
-        arg1->legendformat = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_legendformat_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_legendformat_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_legendformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->legendformat);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_browseformat_set) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_browseformat_set(self,browseformat);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_browseformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_browseformat_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->browseformat) free((char*)arg1->browseformat);
-      if (arg2) {
-        arg1->browseformat = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->browseformat,arg2);
-      } else {
-        arg1->browseformat = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_browseformat_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_browseformat_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_browseformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *) ((arg1)->browseformat);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_metadata_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_metadata_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_metadata_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->metadata);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_validation_get) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_validation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_validation_get" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->validation);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_webObj) {
-  {
-    int argvi = 0;
-    webObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_webObj();");
-    }
-    result = (webObj *)new_webObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_webObj) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_webObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webObj" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    delete_webObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_updateFromString) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: webObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_updateFromString" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)webObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_webObj_convertToString) {
-  {
-    webObj *arg1 = (webObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: webObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_convertToString" "', argument " "1"" of type '" "webObj *""'"); 
-    }
-    arg1 = (webObj *)(argp1);
-    result = (char *)webObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_refcount_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_refcount_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_autoangle_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_autoangle_set(self,autoangle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_autoangle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_autoangle_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->autoangle = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_autoangle_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_autoangle_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_autoangle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->autoangle);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_color_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_color_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_color_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_color_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_backgroundcolor_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_backgroundcolor_set(self,backgroundcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_backgroundcolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->backgroundcolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_backgroundcolor_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_backgroundcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_backgroundcolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (colorObj *)& ((arg1)->backgroundcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_outlinecolor_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinecolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_outlinecolor_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinecolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_opacity_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_opacity_set(self,opacity);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_opacity_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_opacity_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->opacity = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_opacity_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_opacity_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_opacity_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->opacity);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_mincolor_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_mincolor_set(self,mincolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_mincolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_mincolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->mincolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_mincolor_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_mincolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_mincolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (colorObj *)& ((arg1)->mincolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxcolor_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_maxcolor_set(self,maxcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxcolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_maxcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->maxcolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxcolor_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_maxcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxcolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (colorObj *)& ((arg1)->maxcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minvalue_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_minvalue_set(self,minvalue);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minvalue_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minvalue_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minvalue = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minvalue_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_minvalue_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minvalue_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->minvalue);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxvalue_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_maxvalue_set(self,maxvalue);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxvalue_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxvalue_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxvalue = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxvalue_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_maxvalue_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxvalue_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->maxvalue);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_rangeitem_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_rangeitem_set(self,rangeitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitem_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_rangeitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->rangeitem) free((char*)arg1->rangeitem);
-      if (arg2) {
-        arg1->rangeitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->rangeitem,arg2);
-      } else {
-        arg1->rangeitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_rangeitem_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_rangeitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitem_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (char *) ((arg1)->rangeitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_rangeitemindex_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_rangeitemindex_set(self,rangeitemindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitemindex_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_rangeitemindex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->rangeitemindex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_rangeitemindex_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_rangeitemindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitemindex_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->rangeitemindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_symbol_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_symbol_set(self,symbol);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbol_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_symbol_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->symbol = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_symbol_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_symbol_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbol_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->symbol);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_symbolname_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_symbolname_set(self,symbolname);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbolname_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_symbolname_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->symbolname) free((char*)arg1->symbolname);
-      if (arg2) {
-        arg1->symbolname = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->symbolname,arg2);
-      } else {
-        arg1->symbolname = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_symbolname_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_symbolname_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbolname_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (char *) ((arg1)->symbolname);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_size_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_size_set(self,size);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_size_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_size_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->size = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_size_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_size_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_size_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->size);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minsize_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_minsize_set(self,minsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minsize_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_minsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->minsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxsize_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_maxsize_set(self,maxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxsize_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_maxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->maxsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_patternlength_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_patternlength_set(self,patternlength);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_patternlength_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_patternlength_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->patternlength = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_patternlength_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_patternlength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_patternlength_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->patternlength);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_pattern_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double *arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_pattern_set(self,pattern);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_pattern_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_pattern_set" "', argument " "2"" of type '" "double [MS_MAXPATTERNLENGTH]""'"); 
-    } 
-    arg2 = (double *)(argp2);
-    {
-      if (arg2) {
-        size_t ii = 0;
-        for (; ii < (size_t)MS_MAXPATTERNLENGTH; ++ii) arg1->pattern[ii] = arg2[ii];
-      } else {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""pattern""' of type '""double [MS_MAXPATTERNLENGTH]""'");
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_pattern_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_pattern_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_pattern_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double *)(double *) ((arg1)->pattern);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_gap_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_gap_set(self,gap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_gap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_gap_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->gap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_gap_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_gap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_gap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->gap);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_initialgap_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_initialgap_set(self,initialgap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_initialgap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_initialgap_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->initialgap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_initialgap_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_initialgap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_initialgap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->initialgap);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_position_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_position_set(self,position);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_position_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_position_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->position = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_position_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_position_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_position_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->position);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linecap_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_linecap_set(self,linecap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linecap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linecap_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->linecap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linecap_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_linecap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linecap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->linecap);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linejoin_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_linejoin_set(self,linejoin);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoin_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linejoin_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->linejoin = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linejoin_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_linejoin_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoin_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->linejoin);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linejoinmaxsize_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_linejoinmaxsize_set(self,linejoinmaxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoinmaxsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linejoinmaxsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->linejoinmaxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_linejoinmaxsize_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_linejoinmaxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoinmaxsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->linejoinmaxsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_width_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_width_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_width_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_width_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_width_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->width);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_outlinewidth_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_outlinewidth_set(self,outlinewidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinewidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->outlinewidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_outlinewidth_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_outlinewidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinewidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->outlinewidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minwidth_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_minwidth_set(self,minwidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minwidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minwidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minwidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minwidth_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_minwidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minwidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->minwidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxwidth_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_maxwidth_set(self,maxwidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxwidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxwidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxwidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxwidth_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_maxwidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxwidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->maxwidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_offsetx_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_offsetx_set(self,offsetx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsetx_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_offsetx_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->offsetx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_offsetx_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_offsetx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsetx_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->offsetx);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_offsety_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_offsety_set(self,offsety);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsety_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_offsety_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->offsety = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_offsety_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_offsety_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsety_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->offsety);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_polaroffsetpixel_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_polaroffsetpixel_set(self,polaroffsetpixel);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetpixel_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_polaroffsetpixel_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->polaroffsetpixel = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_polaroffsetpixel_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_polaroffsetpixel_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetpixel_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->polaroffsetpixel);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_polaroffsetangle_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_polaroffsetangle_set(self,polaroffsetangle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetangle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_polaroffsetangle_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->polaroffsetangle = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_polaroffsetangle_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_polaroffsetangle_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetangle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->polaroffsetangle);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_angle_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_angle_set(self,angle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_angle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_angle_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->angle = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_angle_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_angle_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_angle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->angle);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_antialias_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_antialias_set(self,antialias);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_antialias_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_antialias_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->antialias = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_antialias_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_antialias_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_antialias_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (int) ((arg1)->antialias);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minscaledenom_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_minscaledenom_set(self,minscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minscaledenom_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_minscaledenom_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_minscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minscaledenom_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->minscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxscaledenom_set) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_maxscaledenom_set(self,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxscaledenom_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_maxscaledenom_get) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_maxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxscaledenom_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (double) ((arg1)->maxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_styleObj) {
-  {
-    classObj *arg1 = (classObj *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_styleObj(parent_class);");
-    }
-    if (items > 0) {
-      res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-      if (!SWIG_IsOK(res1)) {
-        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_styleObj" "', argument " "1"" of type '" "classObj *""'"); 
-      }
-      arg1 = (classObj *)(argp1);
-    }
-    result = (struct styleObj *)new_styleObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_styleObj) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_styleObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_styleObj" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    delete_styleObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_updateFromString) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_updateFromString" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)styleObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_convertToString) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_convertToString" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (char *)styleObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_clone) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_clone(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_clone" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (styleObj *)styleObj_clone(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_setSymbolByName) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: styleObj_setSymbolByName(self,map,symbolname);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setSymbolByName" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_setSymbolByName" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "styleObj_setSymbolByName" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)styleObj_setSymbolByName(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_removeBinding) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_removeBinding(self,binding);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_removeBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_removeBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)styleObj_removeBinding(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_setBinding) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: styleObj_setBinding(self,binding,item);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_setBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "styleObj_setBinding" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)styleObj_setBinding(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_getBinding) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_getBinding(self,binding);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_getBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_getBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)styleObj_getBinding(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_getGeomTransform) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: styleObj_getGeomTransform(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_getGeomTransform" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    result = (char *)styleObj_getGeomTransform(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_styleObj_setGeomTransform) {
-  {
-    struct styleObj *arg1 = (struct styleObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: styleObj_setGeomTransform(self,transform);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setGeomTransform" "', argument " "1"" of type '" "struct styleObj *""'"); 
-    }
-    arg1 = (struct styleObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_setGeomTransform" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    styleObj_setGeomTransform(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelLeaderObj_maxdistance_set) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelLeaderObj_maxdistance_set(self,maxdistance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_maxdistance_set" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelLeaderObj_maxdistance_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->maxdistance = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelLeaderObj_maxdistance_get) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelLeaderObj_maxdistance_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_maxdistance_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    result = (int) ((arg1)->maxdistance);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelLeaderObj_gridstep_set) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelLeaderObj_gridstep_set(self,gridstep);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_gridstep_set" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelLeaderObj_gridstep_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->gridstep = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelLeaderObj_gridstep_get) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelLeaderObj_gridstep_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_gridstep_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    result = (int) ((arg1)->gridstep);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelLeaderObj_numstyles_get) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelLeaderObj_numstyles_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_numstyles_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    result = (int) ((arg1)->numstyles);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelLeaderObj) {
-  {
-    int argvi = 0;
-    labelLeaderObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelLeaderObj();");
-    }
-    result = (labelLeaderObj *)calloc(1, sizeof(labelLeaderObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelLeaderObj) {
-  {
-    labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelLeaderObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelLeaderObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelLeaderObj" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg1 = (labelLeaderObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_refcount_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_refcount_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_font_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_font_set(self,font);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_font_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_font_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->font) free((char*)arg1->font);
-      if (arg2) {
-        arg1->font = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->font,arg2);
-      } else {
-        arg1->font = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_font_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_font_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_font_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *) ((arg1)->font);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_type_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    enum MS_FONT_TYPE arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_type_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_type_set" "', argument " "2"" of type '" "enum MS_FONT_TYPE""'");
-    } 
-    arg2 = (enum MS_FONT_TYPE)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_type_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    enum MS_FONT_TYPE result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_type_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (enum MS_FONT_TYPE) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_color_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_color_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_color_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_color_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_outlinecolor_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinecolor_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_outlinecolor_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinecolor_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_outlinewidth_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_outlinewidth_set(self,outlinewidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinewidth_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_outlinewidth_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->outlinewidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_outlinewidth_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_outlinewidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinewidth_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->outlinewidth);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowcolor_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_shadowcolor_set(self,shadowcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowcolor_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_shadowcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->shadowcolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowcolor_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_shadowcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowcolor_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (colorObj *)& ((arg1)->shadowcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowsizex_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_shadowsizex_set(self,shadowsizex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizex_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_shadowsizex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->shadowsizex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowsizex_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_shadowsizex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizex_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->shadowsizex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowsizey_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_shadowsizey_set(self,shadowsizey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizey_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_shadowsizey_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->shadowsizey = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_shadowsizey_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_shadowsizey_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizey_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->shadowsizey);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_size_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_size_set(self,size);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_size_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_size_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->size = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_size_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_size_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_size_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->size);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minsize_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_minsize_set(self,minsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minsize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minsize_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_minsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minsize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->minsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxsize_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_maxsize_set(self,maxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxsize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxsize_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_maxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxsize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->maxsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_position_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_position_set(self,position);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_position_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_position_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->position = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_position_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_position_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_position_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->position);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_offsetx_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_offsetx_set(self,offsetx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsetx_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_offsetx_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->offsetx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_offsetx_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_offsetx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsetx_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->offsetx);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_offsety_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_offsety_set(self,offsety);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsety_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_offsety_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->offsety = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_offsety_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_offsety_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsety_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->offsety);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_angle_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_angle_set(self,angle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_angle_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_angle_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->angle = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_angle_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_angle_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_angle_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->angle);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_anglemode_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_anglemode_set(self,anglemode);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_anglemode_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_anglemode_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->anglemode = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_anglemode_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_anglemode_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_anglemode_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->anglemode);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_buffer_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_buffer_set(self,buffer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_buffer_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_buffer_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->buffer = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_buffer_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_buffer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_buffer_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->buffer);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_antialias_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_antialias_set(self,antialias);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_antialias_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_antialias_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->antialias = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_antialias_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_antialias_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_antialias_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->antialias);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_align_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_align_set(self,align);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_align_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_align_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->align = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_align_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_align_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_align_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->align);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_wrap_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    char val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_wrap_set(self,wrap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_wrap_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_wrap_set" "', argument " "2"" of type '" "char""'");
-    } 
-    arg2 = (char)(val2);
-    if (arg1) (arg1)->wrap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_wrap_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_wrap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_wrap_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char) ((arg1)->wrap);
-    ST(argvi) = SWIG_From_char  SWIG_PERL_CALL_ARGS_1((char)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxlength_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_maxlength_set(self,maxlength);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxlength_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxlength_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->maxlength = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxlength_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_maxlength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxlength_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->maxlength);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minlength_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_minlength_set(self,minlength);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minlength_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minlength_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->minlength = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minlength_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_minlength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minlength_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->minlength);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_space_size_10_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_space_size_10_set(self,space_size_10);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_space_size_10_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_space_size_10_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->space_size_10 = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_space_size_10_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_space_size_10_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_space_size_10_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->space_size_10);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minfeaturesize_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_minfeaturesize_set(self,minfeaturesize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minfeaturesize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->minfeaturesize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minfeaturesize_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_minfeaturesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minfeaturesize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->minfeaturesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_autominfeaturesize_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_autominfeaturesize_set(self,autominfeaturesize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_autominfeaturesize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_autominfeaturesize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->autominfeaturesize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_autominfeaturesize_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_autominfeaturesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_autominfeaturesize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->autominfeaturesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minscaledenom_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_minscaledenom_set(self,minscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minscaledenom_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_minscaledenom_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_minscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minscaledenom_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->minscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxscaledenom_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_maxscaledenom_set(self,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxscaledenom_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxscaledenom_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_maxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxscaledenom_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->maxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_mindistance_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_mindistance_set(self,mindistance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_mindistance_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_mindistance_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->mindistance = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_mindistance_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_mindistance_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_mindistance_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->mindistance);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_repeatdistance_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_repeatdistance_set(self,repeatdistance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_repeatdistance_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_repeatdistance_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->repeatdistance = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_repeatdistance_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_repeatdistance_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_repeatdistance_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->repeatdistance);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxoverlapangle_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_maxoverlapangle_set(self,maxoverlapangle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxoverlapangle_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxoverlapangle_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxoverlapangle = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_maxoverlapangle_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_maxoverlapangle_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxoverlapangle_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (double) ((arg1)->maxoverlapangle);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_partials_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_partials_set(self,partials);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_partials_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_partials_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->partials = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_partials_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_partials_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_partials_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->partials);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_force_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_force_set(self,force);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_force_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_force_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->force = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_force_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_force_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_force_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->force);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_encoding_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_encoding_set(self,encoding);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_encoding_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_encoding_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->encoding) free((char*)arg1->encoding);
-      if (arg2) {
-        arg1->encoding = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->encoding,arg2);
-      } else {
-        arg1->encoding = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_encoding_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_encoding_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_encoding_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *) ((arg1)->encoding);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_priority_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_priority_set(self,priority);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_priority_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_priority_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->priority = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_priority_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_priority_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_priority_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->priority);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_status_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_status_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_status_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_status_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_numstyles_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_numstyles_set(self,numstyles);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_numstyles_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_numstyles_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->numstyles = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_numstyles_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_numstyles_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_numstyles_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (int) ((arg1)->numstyles);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annotext_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_annotext_set(self,annotext);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annotext_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_annotext_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->annotext) free((char*)arg1->annotext);
-      if (arg2) {
-        arg1->annotext = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->annotext,arg2);
-      } else {
-        arg1->annotext = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annotext_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_annotext_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annotext_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *) ((arg1)->annotext);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annopoint_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_annopoint_set(self,annopoint);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoint_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_annopoint_set" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    if (arg1) (arg1)->annopoint = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annopoint_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_annopoint_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoint_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (pointObj *)& ((arg1)->annopoint);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annopoly_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_annopoly_set(self,annopoly);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoly_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_annopoly_set" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    if (arg1) (arg1)->annopoly = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_annopoly_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_annopoly_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoly_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (shapeObj *) ((arg1)->annopoly);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_leader_set) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_leader_set(self,leader);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_leader_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_leader_set" "', argument " "2"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg2 = (labelLeaderObj *)(argp2);
-    if (arg1) (arg1)->leader = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_leader_get) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelLeaderObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_leader_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_leader_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (labelLeaderObj *)& ((arg1)->leader);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelObj) {
-  {
-    int argvi = 0;
-    struct labelObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelObj();");
-    }
-    result = (struct labelObj *)new_labelObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelObj) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelObj" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    delete_labelObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_updateFromString) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_updateFromString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)labelObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_convertToString) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_convertToString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *)labelObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_removeBinding) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_removeBinding(self,binding);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_removeBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_removeBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)labelObj_removeBinding(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_getBinding) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_getBinding(self,binding);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_getBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)labelObj_getBinding(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_setBinding) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: labelObj_setBinding(self,binding,item);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_setBinding" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "labelObj_setBinding" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)labelObj_setBinding(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_setExpression) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_setExpression(self,expression);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setExpression" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_setExpression" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)labelObj_setExpression(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_getExpressionString) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_getExpressionString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getExpressionString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *)labelObj_getExpressionString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_setText) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_setText(self,text);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setText" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_setText" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)labelObj_setText(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_getTextString) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelObj_getTextString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getTextString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    result = (char *)labelObj_getTextString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_getStyle) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_getStyle(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_getStyle" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (styleObj *)labelObj_getStyle(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_insertStyle) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    styleObj *arg2 = (styleObj *) 0 ;
-    int arg3 = (int) -1 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: labelObj_insertStyle(self,style,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_insertStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_insertStyle" "', argument " "2"" of type '" "styleObj *""'"); 
-    }
-    arg2 = (styleObj *)(argp2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "labelObj_insertStyle" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)labelObj_insertStyle(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_removeStyle) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_removeStyle(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_removeStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_removeStyle" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (styleObj *)labelObj_removeStyle(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_moveStyleUp) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_moveStyleUp(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_moveStyleUp" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_moveStyleUp" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)labelObj_moveStyleUp(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelObj_moveStyleDown) {
-  {
-    struct labelObj *arg1 = (struct labelObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelObj_moveStyleDown(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_moveStyleDown" "', argument " "1"" of type '" "struct labelObj *""'"); 
-    }
-    arg1 = (struct labelObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_moveStyleDown" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)labelObj_moveStyleDown(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_status_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_status_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_status_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_status_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_numstyles_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_numstyles_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numstyles_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->numstyles);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_numlabels_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_numlabels_set(self,numlabels);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numlabels_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_numlabels_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->numlabels = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_numlabels_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_numlabels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numlabels_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->numlabels);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_name_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_name_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_name_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_name_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_title_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_title_set(self,title);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_title_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_title_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->title) free((char*)arg1->title);
-      if (arg2) {
-        arg1->title = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->title,arg2);
-      } else {
-        arg1->title = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_title_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_title_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_title_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *) ((arg1)->title);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_template_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_template_set(self,template);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_template_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_template_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->template) free((char*)arg1->template);
-      if (arg2) {
-        arg1->template = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->template,arg2);
-      } else {
-        arg1->template = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_template_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_template_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_template_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *) ((arg1)->template);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_type_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_type_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_type_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_type_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_type_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_metadata_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_metadata_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_metadata_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->metadata);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_validation_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_validation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_validation_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->validation);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_minscaledenom_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_minscaledenom_set(self,minscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minscaledenom_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_minscaledenom_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_minscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minscaledenom_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (double) ((arg1)->minscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_maxscaledenom_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_maxscaledenom_set(self,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_maxscaledenom_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_maxscaledenom_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_maxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_maxscaledenom_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (double) ((arg1)->maxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_minfeaturesize_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_minfeaturesize_set(self,minfeaturesize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minfeaturesize_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->minfeaturesize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_minfeaturesize_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_minfeaturesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minfeaturesize_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->minfeaturesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_refcount_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_refcount_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_layer_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_layer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_layer_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    {
-      /* Accessing layer */
-      result = (struct layerObj *) ((arg1)->layer);;
-      MS_REFCNT_INCR(result);
-    }
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_debug_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_debug_set(self,debug);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_debug_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_debug_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->debug = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_debug_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_debug_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_debug_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (int) ((arg1)->debug);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_keyimage_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_keyimage_set(self,keyimage);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_keyimage_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_keyimage_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->keyimage) free((char*)arg1->keyimage);
-      if (arg2) {
-        arg1->keyimage = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->keyimage,arg2);
-      } else {
-        arg1->keyimage = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_keyimage_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_keyimage_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_keyimage_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *) ((arg1)->keyimage);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_group_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_group_set(self,group);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_group_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_group_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->group) free((char*)arg1->group);
-      if (arg2) {
-        arg1->group = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->group,arg2);
-      } else {
-        arg1->group = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_group_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_group_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_group_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *) ((arg1)->group);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_leader_set) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_leader_set(self,leader);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_leader_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_leader_set" "', argument " "2"" of type '" "labelLeaderObj *""'"); 
-    }
-    arg2 = (labelLeaderObj *)(argp2);
-    if (arg1) (arg1)->leader = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_leader_get) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelLeaderObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_leader_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_leader_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (labelLeaderObj *)& ((arg1)->leader);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_classObj) {
-  {
-    layerObj *arg1 = (layerObj *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct classObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_classObj(layer);");
-    }
-    if (items > 0) {
-      res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-      if (!SWIG_IsOK(res1)) {
-        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_classObj" "', argument " "1"" of type '" "layerObj *""'"); 
-      }
-      arg1 = (layerObj *)(argp1);
-    }
-    result = (struct classObj *)new_classObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_classObj) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_classObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_classObj" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    delete_classObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_updateFromString) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_updateFromString" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)classObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_convertToString) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_convertToString" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *)classObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_clone) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    classObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_clone(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_clone" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (classObj *)classObj_clone(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_setExpression) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_setExpression(self,expression);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setExpression" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_setExpression" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)classObj_setExpression(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getExpressionString) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_getExpressionString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getExpressionString" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *)classObj_getExpressionString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_setText) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_setText(self,text);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setText" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_setText" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)classObj_setText(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getTextString) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_getTextString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getTextString" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *)classObj_getTextString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getMetaData) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_getMetaData(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getMetaData" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_getMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)classObj_getMetaData(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_setMetaData) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: classObj_setMetaData(self,name,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setMetaData" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_setMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "classObj_setMetaData" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)classObj_setMetaData(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getFirstMetaDataKey) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: classObj_getFirstMetaDataKey(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    result = (char *)classObj_getFirstMetaDataKey(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getNextMetaDataKey) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_getNextMetaDataKey(self,lastkey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_getNextMetaDataKey" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)classObj_getNextMetaDataKey(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_drawLegendIcon) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    layerObj *arg3 = (layerObj *) 0 ;
-    int arg4 ;
-    int arg5 ;
-    imageObj *arg6 = (imageObj *) 0 ;
-    int arg7 ;
-    int arg8 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    void *argp6 = 0 ;
-    int res6 = 0 ;
-    int val7 ;
-    int ecode7 = 0 ;
-    int val8 ;
-    int ecode8 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 8) || (items > 8)) {
-      SWIG_croak("Usage: classObj_drawLegendIcon(self,map,layer,width,height,dstImage,dstX,dstY);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_drawLegendIcon" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_drawLegendIcon" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "classObj_drawLegendIcon" "', argument " "3"" of type '" "layerObj *""'"); 
-    }
-    arg3 = (layerObj *)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "classObj_drawLegendIcon" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "classObj_drawLegendIcon" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "classObj_drawLegendIcon" "', argument " "6"" of type '" "imageObj *""'"); 
-    }
-    arg6 = (imageObj *)(argp6);
-    ecode7 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
-    if (!SWIG_IsOK(ecode7)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "classObj_drawLegendIcon" "', argument " "7"" of type '" "int""'");
-    } 
-    arg7 = (int)(val7);
-    ecode8 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
-    if (!SWIG_IsOK(ecode8)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "classObj_drawLegendIcon" "', argument " "8"" of type '" "int""'");
-    } 
-    arg8 = (int)(val8);
-    result = (int)classObj_drawLegendIcon(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_createLegendIcon) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    layerObj *arg3 = (layerObj *) 0 ;
-    int arg4 ;
-    int arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: classObj_createLegendIcon(self,map,layer,width,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_createLegendIcon" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_createLegendIcon" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "classObj_createLegendIcon" "', argument " "3"" of type '" "layerObj *""'"); 
-    }
-    arg3 = (layerObj *)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "classObj_createLegendIcon" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "classObj_createLegendIcon" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    result = (imageObj *)classObj_createLegendIcon(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getLabel) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    labelObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_getLabel(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_getLabel" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (labelObj *)classObj_getLabel(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_addLabel) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    labelObj *arg2 = (labelObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_addLabel(self,label);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_addLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_labelObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_addLabel" "', argument " "2"" of type '" "labelObj *""'"); 
-    }
-    arg2 = (labelObj *)(argp2);
-    result = (int)classObj_addLabel(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_removeLabel) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    labelObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_removeLabel(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_removeLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_removeLabel" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (labelObj *)classObj_removeLabel(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_getStyle) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_getStyle(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_getStyle" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (styleObj *)classObj_getStyle(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_insertStyle) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    styleObj *arg2 = (styleObj *) 0 ;
-    int arg3 = (int) -1 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: classObj_insertStyle(self,style,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_insertStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_styleObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_insertStyle" "', argument " "2"" of type '" "styleObj *""'"); 
-    }
-    arg2 = (styleObj *)(argp2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "classObj_insertStyle" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)classObj_insertStyle(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_removeStyle) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_removeStyle(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_removeStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_removeStyle" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (styleObj *)classObj_removeStyle(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_moveStyleUp) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_moveStyleUp(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_moveStyleUp" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_moveStyleUp" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)classObj_moveStyleUp(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_classObj_moveStyleDown) {
-  {
-    struct classObj *arg1 = (struct classObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: classObj_moveStyleDown(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_moveStyleDown" "', argument " "1"" of type '" "struct classObj *""'"); 
-    }
-    arg1 = (struct classObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_moveStyleDown" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)classObj_moveStyleDown(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_featuresize_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_featuresize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_featuresize_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (double) ((arg1)->featuresize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_styles_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_styles_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_styles_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (styleObj *) ((arg1)->styles);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_numstyles_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_numstyles_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_numstyles_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->numstyles);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_labels_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_labels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_labels_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (labelObj *) ((arg1)->labels);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_numlabels_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_numlabels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_numlabels_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->numlabels);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_layerindex_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_layerindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_layerindex_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->layerindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_classindex_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_classindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_classindex_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->classindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_shapetype_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_shapetype_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_shapetype_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->shapetype);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_point_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_point_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_point_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (pointObj *)& ((arg1)->point);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_poly_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_poly_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_poly_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (shapeObj *) ((arg1)->poly);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_status_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_status_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_markerid_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_markerid_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_markerid_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->markerid);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_leaderline_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    lineObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_leaderline_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_leaderline_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (lineObj *) ((arg1)->leaderline);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheMemberObj_leaderbbox_get) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheMemberObj_leaderbbox_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_leaderbbox_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    result = (rectObj *) ((arg1)->leaderbbox);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelCacheMemberObj) {
-  {
-    int argvi = 0;
-    labelCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelCacheMemberObj();");
-    }
-    result = (labelCacheMemberObj *)calloc(1, sizeof(labelCacheMemberObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelCacheMemberObj) {
-  {
-    labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelCacheMemberObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheMemberObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheMemberObj" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-    }
-    arg1 = (labelCacheMemberObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_markerCacheMemberObj_id_get) {
-  {
-    markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: markerCacheMemberObj_id_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_markerCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "markerCacheMemberObj_id_get" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-    }
-    arg1 = (markerCacheMemberObj *)(argp1);
-    result = (int) ((arg1)->id);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_markerCacheMemberObj_poly_get) {
-  {
-    markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: markerCacheMemberObj_poly_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_markerCacheMemberObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "markerCacheMemberObj_poly_get" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-    }
-    arg1 = (markerCacheMemberObj *)(argp1);
-    result = (shapeObj *) ((arg1)->poly);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_markerCacheMemberObj) {
-  {
-    int argvi = 0;
-    markerCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_markerCacheMemberObj();");
-    }
-    result = (markerCacheMemberObj *)calloc(1, sizeof(markerCacheMemberObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_markerCacheMemberObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_markerCacheMemberObj) {
-  {
-    markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_markerCacheMemberObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_markerCacheMemberObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_markerCacheMemberObj" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-    }
-    arg1 = (markerCacheMemberObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_labels_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_labels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_labels_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (labelCacheMemberObj *) ((arg1)->labels);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_numlabels_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_numlabels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_numlabels_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (int) ((arg1)->numlabels);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_cachesize_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_cachesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_cachesize_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (int) ((arg1)->cachesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_markers_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    markerCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_markers_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_markers_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (markerCacheMemberObj *) ((arg1)->markers);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_markerCacheMemberObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_nummarkers_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_nummarkers_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_nummarkers_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (int) ((arg1)->nummarkers);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheSlotObj_markercachesize_get) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheSlotObj_markercachesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_markercachesize_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    result = (int) ((arg1)->markercachesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelCacheSlotObj) {
-  {
-    int argvi = 0;
-    labelCacheSlotObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelCacheSlotObj();");
-    }
-    result = (labelCacheSlotObj *)calloc(1, sizeof(labelCacheSlotObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheSlotObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelCacheSlotObj) {
-  {
-    labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelCacheSlotObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheSlotObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheSlotObj" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-    }
-    arg1 = (labelCacheSlotObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheObj_slots_get) {
-  {
-    labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelCacheSlotObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheObj_slots_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_slots_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-    }
-    arg1 = (labelCacheObj *)(argp1);
-    result = (labelCacheSlotObj *)(labelCacheSlotObj *) ((arg1)->slots);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheSlotObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheObj_numlabels_get) {
-  {
-    labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheObj_numlabels_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_numlabels_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-    }
-    arg1 = (labelCacheObj *)(argp1);
-    result = (int) ((arg1)->numlabels);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheObj_gutter_get) {
-  {
-    labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheObj_gutter_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_gutter_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-    }
-    arg1 = (labelCacheObj *)(argp1);
-    result = (int) ((arg1)->gutter);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelCacheObj_freeCache) {
-  {
-    labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelCacheObj_freeCache(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_freeCache" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-    }
-    arg1 = (labelCacheObj *)(argp1);
-    labelCacheObj_freeCache(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelCacheObj) {
-  {
-    int argvi = 0;
-    labelCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelCacheObj();");
-    }
-    result = (labelCacheObj *)calloc(1, sizeof(labelCacheObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelCacheObj) {
-  {
-    labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelCacheObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelCacheObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheObj" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-    }
-    arg1 = (labelCacheObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultObj_shapeindex_get) {
-  {
-    resultObj *arg1 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    long result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultObj_shapeindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_shapeindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-    }
-    arg1 = (resultObj *)(argp1);
-    result = (long) ((arg1)->shapeindex);
-    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultObj_tileindex_get) {
-  {
-    resultObj *arg1 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultObj_tileindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_tileindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-    }
-    arg1 = (resultObj *)(argp1);
-    result = (int) ((arg1)->tileindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultObj_resultindex_get) {
-  {
-    resultObj *arg1 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultObj_resultindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_resultindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-    }
-    arg1 = (resultObj *)(argp1);
-    result = (int) ((arg1)->resultindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultObj_classindex_get) {
-  {
-    resultObj *arg1 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultObj_classindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_classindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-    }
-    arg1 = (resultObj *)(argp1);
-    result = (int) ((arg1)->classindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_resultObj) {
-  {
-    long arg1 ;
-    long val1 ;
-    int ecode1 = 0 ;
-    int argvi = 0;
-    resultObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: new_resultObj(shapeindex);");
-    }
-    ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_resultObj" "', argument " "1"" of type '" "long""'");
-    } 
-    arg1 = (long)(val1);
-    result = (resultObj *)new_resultObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_resultObj) {
-  {
-    resultObj *arg1 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_resultObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_resultObj" "', argument " "1"" of type '" "resultObj *""'"); 
-    }
-    arg1 = (resultObj *)(argp1);
-    delete_resultObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultCacheObj_numresults_get) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultCacheObj_numresults_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_numresults_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    result = (int) ((arg1)->numresults);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultCacheObj_bounds_get) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultCacheObj_bounds_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_bounds_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    result = (rectObj *)& ((arg1)->bounds);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultCacheObj_usegetshape_set) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: resultCacheObj_usegetshape_set(self,usegetshape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_set" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "resultCacheObj_usegetshape_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->usegetshape = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultCacheObj_usegetshape_get) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: resultCacheObj_usegetshape_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    result = (int) ((arg1)->usegetshape);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_resultCacheObj_getResult) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    resultObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: resultCacheObj_getResult(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_getResult" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "resultCacheObj_getResult" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (resultObj *)resultCacheObj_getResult(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_resultCacheObj) {
-  {
-    int argvi = 0;
-    resultCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_resultCacheObj();");
-    }
-    result = (resultCacheObj *)calloc(1, sizeof(resultCacheObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultCacheObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_resultCacheObj) {
-  {
-    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_resultCacheObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_resultCacheObj" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-    }
-    arg1 = (resultCacheObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_filename_set) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_filename_set(self,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_filename_set" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_filename_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->filename) free((char*)arg1->filename);
-      if (arg2) {
-        arg1->filename = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->filename,arg2);
-      } else {
-        arg1->filename = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_filename_get) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolSetObj_filename_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_filename_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    result = (char *) ((arg1)->filename);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_imagecachesize_set) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_imagecachesize_set(self,imagecachesize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_imagecachesize_set" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_imagecachesize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->imagecachesize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_imagecachesize_get) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolSetObj_imagecachesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_imagecachesize_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    result = (int) ((arg1)->imagecachesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_numsymbols_get) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolSetObj_numsymbols_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_numsymbols_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    result = (int) ((arg1)->numsymbols);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_maxsymbols_get) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolSetObj_maxsymbols_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_maxsymbols_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    result = (int) ((arg1)->maxsymbols);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_symbolSetObj) {
-  {
-    char *arg1 = (char *) NULL ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int argvi = 0;
-    symbolSetObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_symbolSetObj(symbolfile);");
-    }
-    if (items > 0) {
-      res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-      if (!SWIG_IsOK(res1)) {
-        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_symbolSetObj" "', argument " "1"" of type '" "char const *""'");
-      }
-      arg1 = (char *)(buf1);
-    }
-    result = (symbolSetObj *)new_symbolSetObj((char const *)arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolSetObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_symbolSetObj) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_symbolSetObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolSetObj" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    delete_symbolSetObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_getSymbol) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    symbolObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_getSymbol(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_getSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_getSymbol" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (symbolObj *)symbolSetObj_getSymbol(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_getSymbolByName) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    symbolObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_getSymbolByName(self,symbolname);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_getSymbolByName" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_getSymbolByName" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (symbolObj *)symbolSetObj_getSymbolByName(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_index) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_index(self,symbolname);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_index" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_index" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)symbolSetObj_index(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_appendSymbol) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    symbolObj *arg2 = (symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_appendSymbol(self,symbol);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_appendSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_appendSymbol" "', argument " "2"" of type '" "symbolObj *""'"); 
-    }
-    arg2 = (symbolObj *)(argp2);
-    result = (int)symbolSetObj_appendSymbol(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_removeSymbol) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    symbolObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_removeSymbol(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_removeSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_removeSymbol" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (symbolObj *)symbolSetObj_removeSymbol(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolSetObj_save) {
-  {
-    symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolSetObj_save(self,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_save" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-    }
-    arg1 = (symbolSetObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_save" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)symbolSetObj_save(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_extent_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    rectObj *arg2 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_extent_set(self,extent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_extent_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-    }
-    arg2 = (rectObj *)(argp2);
-    if (arg1) (arg1)->extent = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_extent_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_extent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_extent_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (rectObj *)& ((arg1)->extent);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_height_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_height_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_height_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_height_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_width_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_width_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_width_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_width_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_color_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_color_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_color_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_color_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_outlinecolor_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_outlinecolor_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_outlinecolor_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_outlinecolor_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_image_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_image_set(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_image_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_image_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->image) free((char*)arg1->image);
-      if (arg2) {
-        arg1->image = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->image,arg2);
-      } else {
-        arg1->image = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_image_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_image_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_image_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (char *) ((arg1)->image);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_status_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_status_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_status_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_status_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_marker_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_marker_set(self,marker);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_marker_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_marker_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->marker = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_marker_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_marker_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_marker_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->marker);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_markername_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_markername_set(self,markername);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markername_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_markername_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->markername) free((char*)arg1->markername);
-      if (arg2) {
-        arg1->markername = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->markername,arg2);
-      } else {
-        arg1->markername = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_markername_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_markername_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markername_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (char *) ((arg1)->markername);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_markersize_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_markersize_set(self,markersize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markersize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_markersize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->markersize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_markersize_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_markersize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markersize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->markersize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_minboxsize_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_minboxsize_set(self,minboxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_minboxsize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_minboxsize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->minboxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_minboxsize_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_minboxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_minboxsize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->minboxsize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_maxboxsize_set) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_maxboxsize_set(self,maxboxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_maxboxsize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_maxboxsize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->maxboxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_maxboxsize_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_maxboxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_maxboxsize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (int) ((arg1)->maxboxsize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_map_get) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_map_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_map_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    {
-      /* Accessing map */
-      result = (struct mapObj *) ((arg1)->map);;
-      MS_REFCNT_INCR(result);
-    }
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_updateFromString) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: referenceMapObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_updateFromString" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)referenceMapObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_referenceMapObj_convertToString) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: referenceMapObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_convertToString" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    result = (char *)referenceMapObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_referenceMapObj) {
-  {
-    int argvi = 0;
-    referenceMapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_referenceMapObj();");
-    }
-    result = (referenceMapObj *)calloc(1, sizeof(referenceMapObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_referenceMapObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_referenceMapObj) {
-  {
-    referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_referenceMapObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_referenceMapObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_referenceMapObj" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-    }
-    arg1 = (referenceMapObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_imagecolor_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_imagecolor_set(self,imagecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_imagecolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->imagecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_imagecolor_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_imagecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_imagecolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (colorObj *)& ((arg1)->imagecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_height_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_height_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_height_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_height_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_width_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_width_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_width_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_width_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_style_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_style_set(self,style);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_style_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_style_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->style = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_style_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_style_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_style_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->style);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_intervals_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_intervals_set(self,intervals);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_intervals_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_intervals_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->intervals = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_intervals_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_intervals_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_intervals_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->intervals);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_label_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    labelObj arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_label_set(self,label);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_label_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    {
-      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_labelObj,  0 );
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_label_set" "', argument " "2"" of type '" "labelObj""'"); 
-      }  
-      if (!argp2) {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "scalebarObj_label_set" "', argument " "2"" of type '" "labelObj""'");
-      } else {
-        arg2 = *((labelObj *)(argp2));
-      }
-    }
-    if (arg1) (arg1)->label = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_label_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelObj result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_label_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_label_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result =  ((arg1)->label);
-    ST(argvi) = SWIG_NewPointerObj((labelObj *)memcpy((labelObj *)malloc(sizeof(labelObj)),&result,sizeof(labelObj)), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_color_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_color_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_color_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_color_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_backgroundcolor_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_backgroundcolor_set(self,backgroundcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_backgroundcolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->backgroundcolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_backgroundcolor_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_backgroundcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_backgroundcolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (colorObj *)& ((arg1)->backgroundcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_outlinecolor_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_outlinecolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_outlinecolor_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_outlinecolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_units_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_units_set(self,units);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_units_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_units_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->units = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_units_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_units_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_units_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->units);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_status_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_status_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_status_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_status_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_position_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_position_set(self,position);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_position_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_position_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->position = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_position_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_position_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_position_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->position);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_postlabelcache_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_postlabelcache_set(self,postlabelcache);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_postlabelcache_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->postlabelcache = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_postlabelcache_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_postlabelcache_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_postlabelcache_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->postlabelcache);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_align_set) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_align_set(self,align);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_align_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_align_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->align = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_align_get) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_align_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_align_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (int) ((arg1)->align);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_updateFromString) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scalebarObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_updateFromString" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)scalebarObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scalebarObj_convertToString) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scalebarObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_convertToString" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    result = (char *)scalebarObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_scalebarObj) {
-  {
-    int argvi = 0;
-    scalebarObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_scalebarObj();");
-    }
-    result = (scalebarObj *)calloc(1, sizeof(scalebarObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scalebarObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_scalebarObj) {
-  {
-    scalebarObj *arg1 = (scalebarObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_scalebarObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scalebarObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scalebarObj" "', argument " "1"" of type '" "scalebarObj *""'"); 
-    }
-    arg1 = (scalebarObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_imagecolor_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_imagecolor_set(self,imagecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_imagecolor_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->imagecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_imagecolor_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_imagecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_imagecolor_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (colorObj *)& ((arg1)->imagecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_label_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelObj result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_label_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_label_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result =  ((arg1)->label);
-    ST(argvi) = SWIG_NewPointerObj((labelObj *)memcpy((labelObj *)malloc(sizeof(labelObj)),&result,sizeof(labelObj)), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keysizex_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_keysizex_set(self,keysizex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizex_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keysizex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->keysizex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keysizex_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_keysizex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizex_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->keysizex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keysizey_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_keysizey_set(self,keysizey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizey_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keysizey_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->keysizey = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keysizey_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_keysizey_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizey_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->keysizey);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keyspacingx_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_keyspacingx_set(self,keyspacingx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingx_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keyspacingx_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->keyspacingx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keyspacingx_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_keyspacingx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingx_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->keyspacingx);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keyspacingy_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_keyspacingy_set(self,keyspacingy);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingy_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keyspacingy_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->keyspacingy = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_keyspacingy_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_keyspacingy_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingy_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->keyspacingy);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_outlinecolor_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_outlinecolor_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_outlinecolor_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_outlinecolor_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_status_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_status_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_status_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_status_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_height_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_height_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_height_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_height_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_width_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_width_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_width_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_width_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_position_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_position_set(self,position);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_position_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_position_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->position = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_position_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_position_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_position_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->position);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_postlabelcache_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_postlabelcache_set(self,postlabelcache);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_postlabelcache_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->postlabelcache = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_postlabelcache_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_postlabelcache_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_postlabelcache_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (int) ((arg1)->postlabelcache);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_template_set) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_template_set(self,template);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_template_set" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_template_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->template) free((char*)arg1->template);
-      if (arg2) {
-        arg1->template = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->template,arg2);
-      } else {
-        arg1->template = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_template_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_template_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_template_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (char *) ((arg1)->template);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_map_get) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_map_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_map_get" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    {
-      /* Accessing map */
-      result = (struct mapObj *) ((arg1)->map);;
-      MS_REFCNT_INCR(result);
-    }
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_updateFromString) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: legendObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_updateFromString" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)legendObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_legendObj_convertToString) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: legendObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_convertToString" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    result = (char *)legendObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_legendObj) {
-  {
-    int argvi = 0;
-    legendObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_legendObj();");
-    }
-    result = (legendObj *)calloc(1, sizeof(legendObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_legendObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_legendObj) {
-  {
-    legendObj *arg1 = (legendObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_legendObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_legendObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_legendObj" "', argument " "1"" of type '" "legendObj *""'"); 
-    }
-    arg1 = (legendObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_width_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_width_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_height_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_height_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_resolution_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_resolution_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_resolution_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (double) ((arg1)->resolution);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_resolutionfactor_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_resolutionfactor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_resolutionfactor_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (double) ((arg1)->resolutionfactor);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_imagepath_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_imagepath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_imagepath_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (char *) ((arg1)->imagepath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_imageurl_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_imageurl_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_imageurl_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (char *) ((arg1)->imageurl);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_format_get) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    outputFormatObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_format_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_format_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (outputFormatObj *) ((arg1)->format);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_imageObj) {
-  {
-    int arg1 ;
-    int arg2 ;
-    outputFormatObj *arg3 = (outputFormatObj *) NULL ;
-    char *arg4 = (char *) NULL ;
-    double arg5 = (double) MS_DEFAULT_RESOLUTION ;
-    double arg6 = (double) MS_DEFAULT_RESOLUTION ;
-    int val1 ;
-    int ecode1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int res4 ;
-    char *buf4 = 0 ;
-    int alloc4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    double val6 ;
-    int ecode6 = 0 ;
-    int argvi = 0;
-    struct imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 6)) {
-      SWIG_croak("Usage: new_imageObj(width,height,input_format,file,resolution,defresolution);");
-    }
-    ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_imageObj" "', argument " "1"" of type '" "int""'");
-    } 
-    arg1 = (int)(val1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_imageObj" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (items > 2) {
-      res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_imageObj" "', argument " "3"" of type '" "outputFormatObj *""'"); 
-      }
-      arg3 = (outputFormatObj *)(argp3);
-    }
-    if (items > 3) {
-      res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
-      if (!SWIG_IsOK(res4)) {
-        SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_imageObj" "', argument " "4"" of type '" "char const *""'");
-      }
-      arg4 = (char *)(buf4);
-    }
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_imageObj" "', argument " "5"" of type '" "double""'");
-      } 
-      arg5 = (double)(val5);
-    }
-    if (items > 5) {
-      ecode6 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
-      if (!SWIG_IsOK(ecode6)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_imageObj" "', argument " "6"" of type '" "double""'");
-      } 
-      arg6 = (double)(val6);
-    }
-    result = (struct imageObj *)new_imageObj(arg1,arg2,arg3,(char const *)arg4,arg5,arg6);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    
-    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_imageObj) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_imageObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_imageObj" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    delete_imageObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_save) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    mapObj *arg3 = (mapObj *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: imageObj_save(self,filename,map);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_save" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "imageObj_save" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_mapObj, 0 |  0 );
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "imageObj_save" "', argument " "3"" of type '" "mapObj *""'"); 
-      }
-      arg3 = (mapObj *)(argp3);
-    }
-    imageObj_save(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_write) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    FILE *arg2 = (FILE *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: imageObj_write(self,file);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_write" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    if (items > 1) {
-      {
-        arg2 = PerlIO_exportFILE (IoIFP (sv_2io (ST(1))), NULL);
-      }
-    }
-    result = (int)imageObj_write(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_getBytes) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    gdBuffer result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_getBytes(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_getBytes" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = imageObj_getBytes(arg1);
-    {
-      SV *mysv;
-      mysv = sv_newmortal();
-      if ((&result)->data == NULL)
-      sv_setpv(mysv,"");
-      else
-      sv_setpvn(mysv,(const char*)(&result)->data,(&result)->size);
-      ST(argvi) = newRV(mysv);
-      sv_2mortal(ST(argvi));
-      argvi++;
-      if( (&result)->owns_data )
-      msFree((&result)->data);
-    }
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_imageObj_getSize) {
-  {
-    struct imageObj *arg1 = (struct imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: imageObj_getSize(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_getSize" "', argument " "1"" of type '" "struct imageObj *""'"); 
-    }
-    arg1 = (struct imageObj *)(argp1);
-    result = (int)imageObj_getSize(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_minscale_set) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_minscale_set(self,minscale);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_minscale_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenEntryObj_minscale_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscale = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_minscale_get) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_minscale_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_minscale_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    result = (double) ((arg1)->minscale);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_maxscale_set) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_maxscale_set(self,maxscale);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_maxscale_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenEntryObj_maxscale_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscale = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_maxscale_get) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_maxscale_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_maxscale_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    result = (double) ((arg1)->maxscale);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_value_set) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_value_set(self,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_value_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scaleTokenEntryObj_value_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->value) free((char*)arg1->value);
-      if (arg2) {
-        arg1->value = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->value,arg2);
-      } else {
-        arg1->value = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenEntryObj_value_get) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenEntryObj_value_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_value_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    result = (char *) ((arg1)->value);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_scaleTokenEntryObj) {
-  {
-    int argvi = 0;
-    scaleTokenEntryObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_scaleTokenEntryObj();");
-    }
-    result = (scaleTokenEntryObj *)calloc(1, sizeof(scaleTokenEntryObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenEntryObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_scaleTokenEntryObj) {
-  {
-    scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_scaleTokenEntryObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenEntryObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scaleTokenEntryObj" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg1 = (scaleTokenEntryObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_name_set) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_name_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scaleTokenObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_name_get) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_name_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_n_entries_set) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenObj_n_entries_set(self,n_entries);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_n_entries_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenObj_n_entries_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->n_entries = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_n_entries_get) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenObj_n_entries_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_n_entries_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    result = (int) ((arg1)->n_entries);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_tokens_set) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    scaleTokenEntryObj *arg2 = (scaleTokenEntryObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: scaleTokenObj_tokens_set(self,tokens);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_tokens_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_scaleTokenEntryObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scaleTokenObj_tokens_set" "', argument " "2"" of type '" "scaleTokenEntryObj *""'"); 
-    }
-    arg2 = (scaleTokenEntryObj *)(argp2);
-    if (arg1) (arg1)->tokens = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_scaleTokenObj_tokens_get) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    scaleTokenEntryObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: scaleTokenObj_tokens_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_tokens_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    result = (scaleTokenEntryObj *) ((arg1)->tokens);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenEntryObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_scaleTokenObj) {
-  {
-    int argvi = 0;
-    scaleTokenObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_scaleTokenObj();");
-    }
-    result = (scaleTokenObj *)calloc(1, sizeof(scaleTokenObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_scaleTokenObj) {
-  {
-    scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_scaleTokenObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_scaleTokenObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scaleTokenObj" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-    }
-    arg1 = (scaleTokenObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_classitem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_classitem_set(self,classitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_classitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->classitem) free((char*)arg1->classitem);
-      if (arg2) {
-        arg1->classitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->classitem,arg2);
-      } else {
-        arg1->classitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_classitem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_classitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->classitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_refcount_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_refcount_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_numclasses_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_numclasses_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numclasses_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->numclasses);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxclasses_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_maxclasses_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxclasses_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->maxclasses);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_index_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_index_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_index_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->index);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_map_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_map_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_map_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    {
-      /* Accessing map */
-      result = (struct mapObj *) ((arg1)->map);;
-      MS_REFCNT_INCR(result);
-    }
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_header_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_header_set(self,header);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_header_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_header_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->header) free((char*)arg1->header);
-      if (arg2) {
-        arg1->header = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->header,arg2);
-      } else {
-        arg1->header = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_header_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_header_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_header_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->header);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_footer_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_footer_set(self,footer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_footer_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_footer_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->footer) free((char*)arg1->footer);
-      if (arg2) {
-        arg1->footer = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->footer,arg2);
-      } else {
-        arg1->footer = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_footer_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_footer_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_footer_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->footer);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_template_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_template_set(self,template);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_template_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_template_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->template) free((char*)arg1->template);
-      if (arg2) {
-        arg1->template = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->template,arg2);
-      } else {
-        arg1->template = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_template_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_template_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_template_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->template);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_name_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_name_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_name_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_name_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_group_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_group_set(self,group);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_group_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_group_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->group) free((char*)arg1->group);
-      if (arg2) {
-        arg1->group = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->group,arg2);
-      } else {
-        arg1->group = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_group_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_group_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_group_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->group);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_status_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_status_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_status_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_status_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_data_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_data_set(self,data);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_data_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_data_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->data) free((char*)arg1->data);
-      if (arg2) {
-        arg1->data = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->data,arg2);
-      } else {
-        arg1->data = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_data_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_data_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_data_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->data);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_type_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    enum MS_LAYER_TYPE arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_type_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_type_set" "', argument " "2"" of type '" "enum MS_LAYER_TYPE""'");
-    } 
-    arg2 = (enum MS_LAYER_TYPE)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_type_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    enum MS_LAYER_TYPE result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_type_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (enum MS_LAYER_TYPE) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tolerance_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_tolerance_set(self,tolerance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tolerance_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_tolerance_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->tolerance = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tolerance_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_tolerance_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tolerance_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->tolerance);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_toleranceunits_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_toleranceunits_set(self,toleranceunits);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_toleranceunits_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_toleranceunits_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->toleranceunits = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_toleranceunits_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_toleranceunits_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_toleranceunits_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->toleranceunits);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_symbolscaledenom_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_symbolscaledenom_set(self,symbolscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_symbolscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_symbolscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->symbolscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_symbolscaledenom_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_symbolscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_symbolscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->symbolscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_minscaledenom_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_minscaledenom_set(self,minscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_minscaledenom_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_minscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->minscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxscaledenom_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_maxscaledenom_set(self,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxscaledenom_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_maxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->maxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_minfeaturesize_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_minfeaturesize_set(self,minfeaturesize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minfeaturesize_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->minfeaturesize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_minfeaturesize_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_minfeaturesize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minfeaturesize_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->minfeaturesize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelminscaledenom_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_labelminscaledenom_set(self,labelminscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelminscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelminscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->labelminscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelminscaledenom_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_labelminscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelminscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->labelminscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelmaxscaledenom_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_labelmaxscaledenom_set(self,labelmaxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelmaxscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelmaxscaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->labelmaxscaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelmaxscaledenom_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_labelmaxscaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelmaxscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->labelmaxscaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_mingeowidth_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_mingeowidth_set(self,mingeowidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mingeowidth_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_mingeowidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->mingeowidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_mingeowidth_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_mingeowidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mingeowidth_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->mingeowidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxgeowidth_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_maxgeowidth_set(self,maxgeowidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxgeowidth_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxgeowidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxgeowidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxgeowidth_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_maxgeowidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxgeowidth_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (double) ((arg1)->maxgeowidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_sizeunits_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_sizeunits_set(self,sizeunits);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_sizeunits_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_sizeunits_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->sizeunits = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_sizeunits_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_sizeunits_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_sizeunits_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->sizeunits);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxfeatures_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_maxfeatures_set(self,maxfeatures);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxfeatures_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxfeatures_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->maxfeatures = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_maxfeatures_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_maxfeatures_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxfeatures_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->maxfeatures);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_startindex_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_startindex_set(self,startindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_startindex_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_startindex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->startindex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_startindex_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_startindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_startindex_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->startindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_offsite_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_offsite_set(self,offsite);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_offsite_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_offsite_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->offsite = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_offsite_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_offsite_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_offsite_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (colorObj *)& ((arg1)->offsite);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_transform_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_transform_set(self,transform);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_transform_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_transform_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->transform = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_transform_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_transform_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_transform_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->transform);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelcache_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_labelcache_set(self,labelcache);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelcache_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelcache_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->labelcache = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelcache_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_labelcache_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelcache_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->labelcache);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_postlabelcache_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_postlabelcache_set(self,postlabelcache);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_postlabelcache_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->postlabelcache = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_postlabelcache_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_postlabelcache_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_postlabelcache_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->postlabelcache);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelitem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_labelitem_set(self,labelitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_labelitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->labelitem) free((char*)arg1->labelitem);
-      if (arg2) {
-        arg1->labelitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->labelitem,arg2);
-      } else {
-        arg1->labelitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelitem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_labelitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->labelitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tileitem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_tileitem_set(self,tileitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_tileitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->tileitem) free((char*)arg1->tileitem);
-      if (arg2) {
-        arg1->tileitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->tileitem,arg2);
-      } else {
-        arg1->tileitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tileitem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_tileitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->tileitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tileindex_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_tileindex_set(self,tileindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileindex_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_tileindex_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->tileindex) free((char*)arg1->tileindex);
-      if (arg2) {
-        arg1->tileindex = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->tileindex,arg2);
-      } else {
-        arg1->tileindex = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tileindex_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_tileindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileindex_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->tileindex);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tilesrs_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_tilesrs_set(self,tilesrs);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tilesrs_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_tilesrs_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->tilesrs) free((char*)arg1->tilesrs);
-      if (arg2) {
-        arg1->tilesrs = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->tilesrs,arg2);
-      } else {
-        arg1->tilesrs = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_tilesrs_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_tilesrs_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tilesrs_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->tilesrs);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_units_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_units_set(self,units);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_units_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_units_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->units = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_units_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_units_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_units_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->units);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_connection_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_connection_set(self,connection);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connection_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_connection_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->connection) free((char*)arg1->connection);
-      if (arg2) {
-        arg1->connection = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->connection,arg2);
-      } else {
-        arg1->connection = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_connection_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_connection_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connection_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->connection);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_plugin_library_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_plugin_library_set(self,plugin_library);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_plugin_library_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->plugin_library) free((char*)arg1->plugin_library);
-      if (arg2) {
-        arg1->plugin_library = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->plugin_library,arg2);
-      } else {
-        arg1->plugin_library = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_plugin_library_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_plugin_library_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->plugin_library);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_plugin_library_original_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_plugin_library_original_set(self,plugin_library_original);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_original_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_plugin_library_original_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->plugin_library_original) free((char*)arg1->plugin_library_original);
-      if (arg2) {
-        arg1->plugin_library_original = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->plugin_library_original,arg2);
-      } else {
-        arg1->plugin_library_original = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_plugin_library_original_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_plugin_library_original_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_original_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->plugin_library_original);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_connectiontype_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    enum MS_CONNECTION_TYPE arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_connectiontype_set(self,connectiontype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connectiontype_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_connectiontype_set" "', argument " "2"" of type '" "enum MS_CONNECTION_TYPE""'");
-    } 
-    arg2 = (enum MS_CONNECTION_TYPE)(val2);
-    if (arg1) (arg1)->connectiontype = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_connectiontype_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    enum MS_CONNECTION_TYPE result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_connectiontype_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connectiontype_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (enum MS_CONNECTION_TYPE) ((arg1)->connectiontype);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_numitems_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_numitems_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numitems_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->numitems);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_bandsitem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_bandsitem_set(self,bandsitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bandsitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_bandsitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->bandsitem) free((char*)arg1->bandsitem);
-      if (arg2) {
-        arg1->bandsitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->bandsitem,arg2);
-      } else {
-        arg1->bandsitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_bandsitem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_bandsitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bandsitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->bandsitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_filteritem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_filteritem_set(self,filteritem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_filteritem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_filteritem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->filteritem) free((char*)arg1->filteritem);
-      if (arg2) {
-        arg1->filteritem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->filteritem,arg2);
-      } else {
-        arg1->filteritem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_filteritem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_filteritem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_filteritem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->filteritem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_styleitem_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_styleitem_set(self,styleitem);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_styleitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_styleitem_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->styleitem) free((char*)arg1->styleitem);
-      if (arg2) {
-        arg1->styleitem = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->styleitem,arg2);
-      } else {
-        arg1->styleitem = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_styleitem_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_styleitem_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_styleitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->styleitem);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_requires_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_requires_set(self,requires);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_requires_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_requires_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->requires) free((char*)arg1->requires);
-      if (arg2) {
-        arg1->requires = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->requires,arg2);
-      } else {
-        arg1->requires = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_requires_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_requires_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_requires_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->requires);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelrequires_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_labelrequires_set(self,labelrequires);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelrequires_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_labelrequires_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->labelrequires) free((char*)arg1->labelrequires);
-      if (arg2) {
-        arg1->labelrequires = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->labelrequires,arg2);
-      } else {
-        arg1->labelrequires = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_labelrequires_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_labelrequires_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelrequires_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->labelrequires);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_metadata_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_metadata_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_metadata_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->metadata);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_validation_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_validation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_validation_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->validation);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_bindvals_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_bindvals_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bindvals_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->bindvals);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_cluster_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    clusterObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_cluster_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_cluster_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (clusterObj *)& ((arg1)->cluster);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_clusterObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_opacity_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_opacity_set(self,opacity);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_opacity_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_opacity_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->opacity = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_opacity_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_opacity_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_opacity_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->opacity);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_dump_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_dump_set(self,dump);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_dump_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_dump_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->dump = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_dump_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_dump_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_dump_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->dump);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_debug_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_debug_set(self,debug);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_debug_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_debug_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->debug = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_debug_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_debug_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_debug_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->debug);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_extent_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_extent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_extent_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (rectObj *)& ((arg1)->extent);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_numprocessing_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_numprocessing_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numprocessing_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->numprocessing);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_numjoins_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_numjoins_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numjoins_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int) ((arg1)->numjoins);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_classgroup_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_classgroup_set(self,classgroup);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classgroup_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_classgroup_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->classgroup) free((char*)arg1->classgroup);
-      if (arg2) {
-        arg1->classgroup = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->classgroup,arg2);
-      } else {
-        arg1->classgroup = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_classgroup_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_classgroup_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classgroup_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->classgroup);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_mask_set) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_mask_set(self,mask);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mask_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_mask_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->mask) free((char*)arg1->mask);
-      if (arg2) {
-        arg1->mask = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->mask,arg2);
-      } else {
-        arg1->mask = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_mask_get) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_mask_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mask_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *) ((arg1)->mask);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_layerObj) {
-  {
-    mapObj *arg1 = (mapObj *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    struct layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_layerObj(map);");
-    }
-    if (items > 0) {
-      res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-      if (!SWIG_IsOK(res1)) {
-        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_layerObj" "', argument " "1"" of type '" "mapObj *""'"); 
-      }
-      arg1 = (mapObj *)(argp1);
-    }
-    result = (struct layerObj *)new_layerObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_layerObj) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_layerObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_layerObj" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    delete_layerObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_clone) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_clone(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_clone" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (layerObj *)layerObj_clone(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_updateFromString) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_updateFromString(self,snippet);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_updateFromString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_updateFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)layerObj_updateFromString(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_convertToString) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_convertToString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_insertClass) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    classObj *arg2 = (classObj *) 0 ;
-    int arg3 = (int) -1 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_insertClass(self,classobj,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_insertClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_insertClass" "', argument " "2"" of type '" "classObj *""'"); 
-    }
-    arg2 = (classObj *)(argp2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_insertClass" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)layerObj_insertClass(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_removeClass) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    classObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_removeClass(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_removeClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_removeClass" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (classObj *)layerObj_removeClass(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_open) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_open(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_open" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int)layerObj_open(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_whichShapes) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    rectObj arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_whichShapes(self,rect);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_whichShapes" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    {
-      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_rectObj,  0 );
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_whichShapes" "', argument " "2"" of type '" "rectObj""'"); 
-      }  
-      if (!argp2) {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "layerObj_whichShapes" "', argument " "2"" of type '" "rectObj""'");
-      } else {
-        arg2 = *((rectObj *)(argp2));
-      }
-    }
-    result = (int)layerObj_whichShapes(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_nextShape) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_nextShape(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_nextShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (shapeObj *)layerObj_nextShape(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_close) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_close(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_close" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    layerObj_close(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getShape) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    resultObj *arg2 = (resultObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getShape(self,record);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_resultObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getShape" "', argument " "2"" of type '" "resultObj *""'"); 
-    }
-    arg2 = (resultObj *)(argp2);
-    result = (shapeObj *)layerObj_getShape(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getNumResults) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getNumResults(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNumResults" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int)layerObj_getNumResults(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getResultsBounds) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getResultsBounds(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResultsBounds" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (rectObj *)layerObj_getResultsBounds(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getResult) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    resultObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getResult(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResult" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getResult" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (resultObj *)layerObj_getResult(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getClass) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    classObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getClass(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getClass" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (classObj *)layerObj_getClass(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getItem) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getItem(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getItem" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getItem" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)layerObj_getItem(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setItems) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char **arg2 = (char **) 0 ;
-    int arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_setItems(self,items,numitems);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setItems" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setItems" "', argument " "2"" of type '" "char **""'"); 
-    }
-    arg2 = (char **)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_setItems" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    result = (int)layerObj_setItems(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_draw) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    imageObj *arg3 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_draw(self,map,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_draw" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_draw" "', argument " "3"" of type '" "imageObj *""'"); 
-    }
-    arg3 = (imageObj *)(argp3);
-    result = (int)layerObj_draw(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_drawQuery) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    imageObj *arg3 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_drawQuery(self,map,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_drawQuery" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_drawQuery" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_drawQuery" "', argument " "3"" of type '" "imageObj *""'"); 
-    }
-    arg3 = (imageObj *)(argp3);
-    result = (int)layerObj_drawQuery(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByFilter) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_queryByFilter(self,map,string);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByFilter" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByFilter" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByFilter" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)layerObj_queryByFilter(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByAttributes) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    char *arg3 = (char *) 0 ;
-    char *arg4 = (char *) 0 ;
-    int arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int res4 ;
-    char *buf4 = 0 ;
-    int alloc4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: layerObj_queryByAttributes(self,map,qitem,qstring,mode);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByAttributes" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByAttributes" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByAttributes" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4);
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "layerObj_queryByAttributes" "', argument " "4"" of type '" "char *""'");
-    }
-    arg4 = (char *)(buf4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByAttributes" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    result = (int)layerObj_queryByAttributes(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByPoint) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    int arg4 ;
-    double arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: layerObj_queryByPoint(self,map,point,mode,buffer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByPoint" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByPoint" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_queryByPoint" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByPoint" "', argument " "5"" of type '" "double""'");
-    } 
-    arg5 = (double)(val5);
-    result = (int)layerObj_queryByPoint(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByRect) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    rectObj arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_queryByRect(self,map,rect);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByRect" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByRect" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    {
-      res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_rectObj,  0 );
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByRect" "', argument " "3"" of type '" "rectObj""'"); 
-      }  
-      if (!argp3) {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "layerObj_queryByRect" "', argument " "3"" of type '" "rectObj""'");
-      } else {
-        arg3 = *((rectObj *)(argp3));
-      }
-    }
-    result = (int)layerObj_queryByRect(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByFeatures) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    int arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_queryByFeatures(self,map,slayer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByFeatures" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByFeatures" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_queryByFeatures" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    result = (int)layerObj_queryByFeatures(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByShape) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    shapeObj *arg3 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_queryByShape(self,map,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByShape" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByShape" "', argument " "3"" of type '" "shapeObj *""'"); 
-    }
-    arg3 = (shapeObj *)(argp3);
-    result = (int)layerObj_queryByShape(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_queryByIndex) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    int arg3 ;
-    int arg4 ;
-    int arg5 = (int) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 5)) {
-      SWIG_croak("Usage: layerObj_queryByIndex(self,map,tileindex,shapeindex,bAddToQuery);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByIndex" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByIndex" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_queryByIndex" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_queryByIndex" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByIndex" "', argument " "5"" of type '" "int""'");
-      } 
-      arg5 = (int)(val5);
-    }
-    result = (int)layerObj_queryByIndex(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getResults) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    resultCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getResults(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResults" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (resultCacheObj *)layerObj_getResults(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultCacheObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setFilter) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_setFilter(self,filter);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setFilter" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setFilter" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)layerObj_setFilter(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getFilterString) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getFilterString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getFilterString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_getFilterString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setWKTProjection) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_setWKTProjection(self,wkt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setWKTProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setWKTProjection" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)layerObj_setWKTProjection(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getProjection) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getProjection(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_getProjection(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setProjection) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_setProjection(self,proj4);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setProjection" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)layerObj_setProjection(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_addFeature) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_addFeature(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_addFeature" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_addFeature" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)layerObj_addFeature(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getNumFeatures) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getNumFeatures(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNumFeatures" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int)layerObj_getNumFeatures(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getExtent) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getExtent(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getExtent" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (rectObj *)layerObj_getExtent(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setExtent) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    double arg2 = (double) -1.0 ;
-    double arg3 = (double) -1.0 ;
-    double arg4 = (double) -1.0 ;
-    double arg5 = (double) -1.0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 5)) {
-      SWIG_croak("Usage: layerObj_setExtent(self,minx,miny,maxx,maxy);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setExtent" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_setExtent" "', argument " "2"" of type '" "double""'");
-      } 
-      arg2 = (double)(val2);
-    }
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_setExtent" "', argument " "3"" of type '" "double""'");
-      } 
-      arg3 = (double)(val3);
-    }
-    if (items > 3) {
-      ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-      if (!SWIG_IsOK(ecode4)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_setExtent" "', argument " "4"" of type '" "double""'");
-      } 
-      arg4 = (double)(val4);
-    }
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_setExtent" "', argument " "5"" of type '" "double""'");
-      } 
-      arg5 = (double)(val5);
-    }
-    result = (int)layerObj_setExtent(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getMetaData) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getMetaData(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)layerObj_getMetaData(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setMetaData) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_setMetaData(self,name,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_setMetaData" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)layerObj_setMetaData(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_removeMetaData) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_removeMetaData(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_removeMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_removeMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)layerObj_removeMetaData(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getFirstMetaDataKey) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getFirstMetaDataKey(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_getFirstMetaDataKey(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getNextMetaDataKey) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getNextMetaDataKey(self,lastkey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getNextMetaDataKey" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)layerObj_getNextMetaDataKey(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getWMSFeatureInfoURL) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    int arg3 ;
-    int arg4 ;
-    int arg5 ;
-    char *arg6 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int res6 ;
-    char *buf6 = 0 ;
-    int alloc6 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 6) || (items > 6)) {
-      SWIG_croak("Usage: layerObj_getWMSFeatureInfoURL(self,map,click_x,click_y,feature_count,info_format);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6);
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "6"" of type '" "char *""'");
-    }
-    arg6 = (char *)(buf6);
-    result = (char *)layerObj_getWMSFeatureInfoURL(arg1,arg2,arg3,arg4,arg5,arg6);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_executeWFSGetFeature) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    layerObj *arg2 = (layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_executeWFSGetFeature(self,layer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_executeWFSGetFeature" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_executeWFSGetFeature" "', argument " "2"" of type '" "layerObj *""'"); 
-    }
-    arg2 = (layerObj *)(argp2);
-    result = (char *)layerObj_executeWFSGetFeature(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_applySLD) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_applySLD(self,sld,stylelayer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_applySLD" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_applySLD" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_applySLD" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)layerObj_applySLD(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_applySLDURL) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_applySLDURL(self,sld,stylelayer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_applySLDURL" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_applySLDURL" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_applySLDURL" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)layerObj_applySLDURL(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_generateSLD) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_generateSLD(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_generateSLD" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_generateSLD(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_isVisible) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_isVisible(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_isVisible" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int)layerObj_isVisible(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_moveClassUp) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_moveClassUp(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_moveClassUp" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_moveClassUp" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)layerObj_moveClassUp(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_moveClassDown) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_moveClassDown(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_moveClassDown" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_moveClassDown" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)layerObj_moveClassDown(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setProcessingKey) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_setProcessingKey(self,key,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProcessingKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setProcessingKey" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_setProcessingKey" "', argument " "3"" of type '" "char const *""'");
-    }
-    arg3 = (char *)(buf3);
-    layerObj_setProcessingKey(arg1,(char const *)arg2,(char const *)arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setProcessing) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_setProcessing(self,directive);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setProcessing" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    layerObj_setProcessing(arg1,(char const *)arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_addProcessing) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_addProcessing(self,directive);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_addProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_addProcessing" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    layerObj_addProcessing(arg1,(char const *)arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getProcessing) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getProcessing(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getProcessing" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)layerObj_getProcessing(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getProcessingKey) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_getProcessingKey(self,key);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProcessingKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getProcessingKey" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)layerObj_getProcessingKey(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_clearProcessing) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_clearProcessing(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_clearProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (int)layerObj_clearProcessing(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setConnectionType) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    int arg2 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: layerObj_setConnectionType(self,connectiontype,library_str);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setConnectionType" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_setConnectionType" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_setConnectionType" "', argument " "3"" of type '" "char const *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)layerObj_setConnectionType(arg1,arg2,(char const *)arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getClassIndex) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    shapeObj *arg3 = (shapeObj *) 0 ;
-    int *arg4 = (int *) NULL ;
-    int arg5 = (int) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 5)) {
-      SWIG_croak("Usage: layerObj_getClassIndex(self,map,shape,classgroup,numclasses);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getClassIndex" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getClassIndex" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_getClassIndex" "', argument " "3"" of type '" "shapeObj *""'"); 
-    }
-    arg3 = (shapeObj *)(argp3);
-    if (items > 3) {
-      res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_int, 0 |  0 );
-      if (!SWIG_IsOK(res4)) {
-        SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "layerObj_getClassIndex" "', argument " "4"" of type '" "int *""'"); 
-      }
-      arg4 = (int *)(argp4);
-    }
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_getClassIndex" "', argument " "5"" of type '" "int""'");
-      } 
-      arg5 = (int)(val5);
-    }
-    result = (int)layerObj_getClassIndex(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_getGeomTransform) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: layerObj_getGeomTransform(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getGeomTransform" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    result = (char *)layerObj_getGeomTransform(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_layerObj_setGeomTransform) {
-  {
-    struct layerObj *arg1 = (struct layerObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: layerObj_setGeomTransform(self,transform);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setGeomTransform" "', argument " "1"" of type '" "struct layerObj *""'"); 
-    }
-    arg1 = (struct layerObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setGeomTransform" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    layerObj_setGeomTransform(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_name_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_name_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_name_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_name_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_status_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_status_set(self,status);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_status_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_status_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->status = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_status_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_status_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->status);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_height_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_height_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_height_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_height_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_width_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_width_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_width_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_width_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_maxsize_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_maxsize_set(self,maxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxsize_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_maxsize_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->maxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_maxsize_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_maxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxsize_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->maxsize);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_refcount_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_refcount_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_numlayers_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_numlayers_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_numlayers_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->numlayers);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_maxlayers_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_maxlayers_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxlayers_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->maxlayers);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_symbolset_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    symbolSetObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_symbolset_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_symbolset_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (symbolSetObj *)& ((arg1)->symbolset);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolSetObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_fontset_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    fontSetObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_fontset_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_fontset_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (fontSetObj *)& ((arg1)->fontset);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fontSetObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_labelcache_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_labelcache_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_labelcache_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (labelCacheObj *)& ((arg1)->labelcache);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_transparent_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_transparent_set(self,transparent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_transparent_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_transparent_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->transparent = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_transparent_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_transparent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_transparent_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->transparent);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_interlace_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_interlace_set(self,interlace);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_interlace_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_interlace_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->interlace = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_interlace_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_interlace_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_interlace_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->interlace);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_imagequality_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_imagequality_set(self,imagequality);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagequality_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_imagequality_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->imagequality = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_imagequality_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_imagequality_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagequality_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->imagequality);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_extent_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    rectObj *arg2 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_extent_set(self,extent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_extent_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-    }
-    arg2 = (rectObj *)(argp2);
-    if (arg1) (arg1)->extent = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_extent_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_extent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_extent_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (rectObj *)& ((arg1)->extent);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_cellsize_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_cellsize_set(self,cellsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_cellsize_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_cellsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->cellsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_cellsize_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_cellsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_cellsize_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (double) ((arg1)->cellsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_units_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    enum MS_UNITS arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_units_set(self,units);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_units_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_units_set" "', argument " "2"" of type '" "enum MS_UNITS""'");
-    } 
-    arg2 = (enum MS_UNITS)(val2);
-    if (arg1) (arg1)->units = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_units_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    enum MS_UNITS result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_units_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_units_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (enum MS_UNITS) ((arg1)->units);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_scaledenom_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_scaledenom_set(self,scaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaledenom_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_scaledenom_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->scaledenom = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_scaledenom_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_scaledenom_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaledenom_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (double) ((arg1)->scaledenom);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_resolution_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_resolution_set(self,resolution);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_resolution_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_resolution_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->resolution = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_resolution_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_resolution_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_resolution_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (double) ((arg1)->resolution);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_defresolution_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_defresolution_set(self,defresolution);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_defresolution_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_defresolution_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->defresolution = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_defresolution_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_defresolution_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_defresolution_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (double) ((arg1)->defresolution);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_shapepath_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_shapepath_set(self,shapepath);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_shapepath_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_shapepath_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->shapepath) free((char*)arg1->shapepath);
-      if (arg2) {
-        arg1->shapepath = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->shapepath,arg2);
-      } else {
-        arg1->shapepath = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_shapepath_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_shapepath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_shapepath_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->shapepath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_mappath_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_mappath_set(self,mappath);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_mappath_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_mappath_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->mappath) free((char*)arg1->mappath);
-      if (arg2) {
-        arg1->mappath = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->mappath,arg2);
-      } else {
-        arg1->mappath = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_mappath_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_mappath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_mappath_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->mappath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_imagecolor_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_imagecolor_set(self,imagecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagecolor_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->imagecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_imagecolor_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_imagecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagecolor_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (colorObj *)& ((arg1)->imagecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_numoutputformats_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_numoutputformats_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_numoutputformats_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->numoutputformats);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_outputformat_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    outputFormatObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_outputformat_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_outputformat_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (outputFormatObj *) ((arg1)->outputformat);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_imagetype_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_imagetype_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagetype_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->imagetype);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_reference_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    referenceMapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_reference_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_reference_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (referenceMapObj *)& ((arg1)->reference);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_referenceMapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_scalebar_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    scalebarObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_scalebar_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scalebar_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (scalebarObj *)& ((arg1)->scalebar);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scalebarObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_legend_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    legendObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_legend_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_legend_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (legendObj *)& ((arg1)->legend);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_legendObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_querymap_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    queryMapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_querymap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_querymap_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (queryMapObj *)& ((arg1)->querymap);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_queryMapObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_web_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    webObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_web_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_web_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (webObj *)& ((arg1)->web);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_layerorder_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int *arg2 = (int *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_layerorder_set(self,layerorder);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_layerorder_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_layerorder_set" "', argument " "2"" of type '" "int *""'"); 
-    }
-    arg2 = (int *)(argp2);
-    if (arg1) (arg1)->layerorder = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_layerorder_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_layerorder_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_layerorder_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int *) ((arg1)->layerorder);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_debug_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_debug_set(self,debug);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_debug_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_debug_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->debug = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_debug_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_debug_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_debug_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int) ((arg1)->debug);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_datapattern_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_datapattern_set(self,datapattern);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_datapattern_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_datapattern_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->datapattern) free((char*)arg1->datapattern);
-      if (arg2) {
-        arg1->datapattern = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->datapattern,arg2);
-      } else {
-        arg1->datapattern = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_datapattern_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_datapattern_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_datapattern_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->datapattern);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_templatepattern_set) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_templatepattern_set(self,templatepattern);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_templatepattern_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_templatepattern_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->templatepattern) free((char*)arg1->templatepattern);
-      if (arg2) {
-        arg1->templatepattern = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->templatepattern,arg2);
-      } else {
-        arg1->templatepattern = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_templatepattern_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_templatepattern_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_templatepattern_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *) ((arg1)->templatepattern);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_configoptions_get) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_configoptions_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_configoptions_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (hashTableObj *)& ((arg1)->configoptions);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_mapObj) {
-  {
-    char *arg1 = (char *) "" ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int argvi = 0;
-    struct mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_mapObj(filename);");
-    }
-    if (items > 0) {
-      res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-      if (!SWIG_IsOK(res1)) {
-        SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_mapObj" "', argument " "1"" of type '" "char *""'");
-      }
-      arg1 = (char *)(buf1);
-    }
-    result = (struct mapObj *)new_mapObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_mapObj) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_mapObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_mapObj" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    delete_mapObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_clone) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_clone(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_clone" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (mapObj *)mapObj_clone(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_insertLayer) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    layerObj *arg2 = (layerObj *) 0 ;
-    int arg3 = (int) -1 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_insertLayer(self,layer,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_insertLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_insertLayer" "', argument " "2"" of type '" "layerObj *""'"); 
-    }
-    arg2 = (layerObj *)(argp2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_insertLayer" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)mapObj_insertLayer(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_removeLayer) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_removeLayer(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_removeLayer" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (layerObj *)mapObj_removeLayer(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setExtent) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    double arg4 ;
-    double arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: mapObj_setExtent(self,minx,miny,maxx,maxy);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setExtent" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_setExtent" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_setExtent" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-    ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_setExtent" "', argument " "5"" of type '" "double""'");
-    } 
-    arg5 = (double)(val5);
-    result = (int)mapObj_setExtent(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_offsetExtent) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_offsetExtent(self,x,y);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_offsetExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_offsetExtent" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_offsetExtent" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    result = (int)mapObj_offsetExtent(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_scaleExtent) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    double arg4 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: mapObj_scaleExtent(self,zoomfactor,minscaledenom,maxscaledenom);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaleExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_scaleExtent" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_scaleExtent" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_scaleExtent" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-    result = (int)mapObj_scaleExtent(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setCenter) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setCenter(self,center);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setCenter" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setCenter" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (int)mapObj_setCenter(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setSize) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_setSize(self,width,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setSize" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setSize" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_setSize" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    result = (int)mapObj_setSize(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setRotation) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setRotation(self,rotation_angle);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setRotation" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setRotation" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    result = (int)mapObj_setRotation(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getLayer) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getLayer(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getLayer" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (layerObj *)mapObj_getLayer(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getLayerByName) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    layerObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getLayerByName(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayerByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getLayerByName" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (layerObj *)mapObj_getLayerByName(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getSymbolByName) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getSymbolByName(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getSymbolByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getSymbolByName" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_getSymbolByName(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_prepareQuery) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_prepareQuery(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_prepareQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    mapObj_prepareQuery(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_prepareImage) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_prepareImage(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_prepareImage" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_prepareImage(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setImageType) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setImageType(self,imagetype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setImageType" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setImageType" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    mapObj_setImageType(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_selectOutputFormat) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_selectOutputFormat(self,imagetype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_selectOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_selectOutputFormat" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    mapObj_selectOutputFormat(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getOutputFormat) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    outputFormatObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getOutputFormat(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getOutputFormat" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (outputFormatObj *)mapObj_getOutputFormat(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setOutputFormat) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setOutputFormat(self,format);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setOutputFormat" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-    }
-    arg2 = (outputFormatObj *)(argp2);
-    mapObj_setOutputFormat(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_draw) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_draw(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_draw" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_draw(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_drawQuery) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_drawQuery(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_drawQuery(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_drawLegend) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_drawLegend(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawLegend" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_drawLegend(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_drawScalebar) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_drawScalebar(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawScalebar" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_drawScalebar(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_drawReferenceMap) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_drawReferenceMap(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawReferenceMap" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (imageObj *)mapObj_drawReferenceMap(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_embedScalebar) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_embedScalebar(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_embedScalebar" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_embedScalebar" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    result = (int)mapObj_embedScalebar(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_embedLegend) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_embedLegend(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_embedLegend" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_embedLegend" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    result = (int)mapObj_embedLegend(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_drawLabelCache) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_drawLabelCache(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawLabelCache" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_drawLabelCache" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    result = (int)mapObj_drawLabelCache(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getLabel) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    labelCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getLabel(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLabel" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getLabel" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (labelCacheMemberObj *)mapObj_getLabel(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_nextLabel) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    labelCacheMemberObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_nextLabel(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_nextLabel" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (labelCacheMemberObj *)mapObj_nextLabel(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_queryByFilter) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_queryByFilter(self,string);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByFilter" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByFilter" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_queryByFilter(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_queryByPoint) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    int arg3 ;
-    double arg4 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: mapObj_queryByPoint(self,point,mode,buffer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByPoint" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_queryByPoint" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_queryByPoint" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-    result = (int)mapObj_queryByPoint(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_queryByRect) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    rectObj arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_queryByRect(self,rect);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByRect" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    {
-      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_rectObj,  0 );
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByRect" "', argument " "2"" of type '" "rectObj""'"); 
-      }  
-      if (!argp2) {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapObj_queryByRect" "', argument " "2"" of type '" "rectObj""'");
-      } else {
-        arg2 = *((rectObj *)(argp2));
-      }
-    }
-    result = (int)mapObj_queryByRect(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_queryByFeatures) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_queryByFeatures(self,slayer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByFeatures" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_queryByFeatures" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)mapObj_queryByFeatures(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_queryByShape) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_queryByShape(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByShape" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)mapObj_queryByShape(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setWKTProjection) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setWKTProjection(self,wkt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setWKTProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setWKTProjection" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_setWKTProjection(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getProjection) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_getProjection(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *)mapObj_getProjection(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setProjection) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setProjection(self,proj4);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setProjection" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_setProjection(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_save) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_save(self,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_save" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_save" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_save(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_saveQuery) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    int arg3 = (int) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_saveQuery(self,filename,results);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_saveQuery" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_saveQuery" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)mapObj_saveQuery(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_loadQuery) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_loadQuery(self,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_loadQuery" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_loadQuery(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_freeQuery) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 = (int) -1 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_freeQuery(self,qlayer);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_freeQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_freeQuery" "', argument " "2"" of type '" "int""'");
-      } 
-      arg2 = (int)(val2);
-    }
-    mapObj_freeQuery(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_saveQueryAsGML) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) "GOMF" ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_saveQueryAsGML(self,filename,ns);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveQueryAsGML" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_saveQueryAsGML" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_saveQueryAsGML" "', argument " "3"" of type '" "char const *""'");
-      }
-      arg3 = (char *)(buf3);
-    }
-    result = (int)mapObj_saveQueryAsGML(arg1,arg2,(char const *)arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getMetaData) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getMetaData(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)mapObj_getMetaData(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setMetaData) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_setMetaData(self,name,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_setMetaData" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)mapObj_setMetaData(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_removeMetaData) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_removeMetaData(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_removeMetaData" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_removeMetaData(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getFirstMetaDataKey) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_getFirstMetaDataKey(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *)mapObj_getFirstMetaDataKey(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getNextMetaDataKey) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getNextMetaDataKey(self,lastkey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getNextMetaDataKey" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)mapObj_getNextMetaDataKey(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setSymbolSet) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setSymbolSet(self,szFileName);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setSymbolSet" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setSymbolSet" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_setSymbolSet(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getNumSymbols) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_getNumSymbols(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getNumSymbols" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (int)mapObj_getNumSymbols(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setFontSet) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setFontSet(self,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setFontSet" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setFontSet" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_setFontSet(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_saveMapContext) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_saveMapContext(self,szFileName);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveMapContext" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_saveMapContext" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_saveMapContext(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_loadMapContext) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    int arg3 = (int) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_loadMapContext(self,szFileName,useUniqueNames);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadMapContext" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_loadMapContext" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_loadMapContext" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    result = (int)mapObj_loadMapContext(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_moveLayerUp) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_moveLayerUp(self,layerindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_moveLayerUp" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_moveLayerUp" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)mapObj_moveLayerUp(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_moveLayerDown) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_moveLayerDown(self,layerindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_moveLayerDown" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_moveLayerDown" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)mapObj_moveLayerDown(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getLayersDrawingOrder) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    intarray *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_getLayersDrawingOrder(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayersDrawingOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (intarray *)mapObj_getLayersDrawingOrder(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setLayersDrawingOrder) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int *arg2 = (int *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_setLayersDrawingOrder(self,panIndexes);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setLayersDrawingOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_int, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setLayersDrawingOrder" "', argument " "2"" of type '" "int *""'"); 
-    }
-    arg2 = (int *)(argp2);
-    result = (int)mapObj_setLayersDrawingOrder(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_setConfigOption) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_setConfigOption(self,key,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setConfigOption" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setConfigOption" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_setConfigOption" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    mapObj_setConfigOption(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getConfigOption) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getConfigOption(self,key);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getConfigOption" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getConfigOption" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)mapObj_getConfigOption(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_applyConfigOptions) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_applyConfigOptions(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applyConfigOptions" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    mapObj_applyConfigOptions(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_applySLD) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_applySLD(self,sld);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applySLD" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_applySLD" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_applySLD(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_applySLDURL) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_applySLDURL(self,sld);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applySLDURL" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_applySLDURL" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_applySLDURL(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_generateSLD) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_generateSLD(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_generateSLD" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *)mapObj_generateSLD(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_processTemplate) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    char **arg3 = (char **) 0 ;
-    char **arg4 = (char **) 0 ;
-    int arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: mapObj_processTemplate(self,bGenerateImages,names,values,numentries);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_processTemplate" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processTemplate" "', argument " "3"" of type '" "char **""'"); 
-    }
-    arg3 = (char **)(argp3);
-    res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mapObj_processTemplate" "', argument " "4"" of type '" "char **""'"); 
-    }
-    arg4 = (char **)(argp4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_processTemplate" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    result = (char *)mapObj_processTemplate(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    
-    
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_processLegendTemplate) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char **arg2 = (char **) 0 ;
-    char **arg3 = (char **) 0 ;
-    int arg4 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: mapObj_processLegendTemplate(self,names,values,numentries);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processLegendTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_processLegendTemplate" "', argument " "2"" of type '" "char **""'"); 
-    }
-    arg2 = (char **)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processLegendTemplate" "', argument " "3"" of type '" "char **""'"); 
-    }
-    arg3 = (char **)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_processLegendTemplate" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    result = (char *)mapObj_processLegendTemplate(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_processQueryTemplate) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char **arg2 = (char **) 0 ;
-    char **arg3 = (char **) 0 ;
-    int arg4 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: mapObj_processQueryTemplate(self,names,values,numentries);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processQueryTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_processQueryTemplate" "', argument " "2"" of type '" "char **""'"); 
-    }
-    arg2 = (char **)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processQueryTemplate" "', argument " "3"" of type '" "char **""'"); 
-    }
-    arg3 = (char **)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_processQueryTemplate" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    result = (char *)mapObj_processQueryTemplate(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_getOutputFormatByName) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    outputFormatObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_getOutputFormatByName(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getOutputFormatByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_getOutputFormatByName" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (outputFormatObj *)mapObj_getOutputFormatByName(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_appendOutputFormat) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_appendOutputFormat(self,format);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_appendOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_appendOutputFormat" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-    }
-    arg2 = (outputFormatObj *)(argp2);
-    result = (int)mapObj_appendOutputFormat(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_removeOutputFormat) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_removeOutputFormat(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_removeOutputFormat" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)mapObj_removeOutputFormat(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_loadOWSParameters) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-    char *arg3 = (char *) "1.1.1" ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: mapObj_loadOWSParameters(self,request,wmtver_string);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadOWSParameters" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_loadOWSParameters" "', argument " "2"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg2 = (cgiRequestObj *)(argp2);
-    if (items > 2) {
-      res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_loadOWSParameters" "', argument " "3"" of type '" "char *""'");
-      }
-      arg3 = (char *)(buf3);
-    }
-    result = (int)mapObj_loadOWSParameters(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_OWSDispatch) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: mapObj_OWSDispatch(self,req);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_OWSDispatch" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_OWSDispatch" "', argument " "2"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg2 = (cgiRequestObj *)(argp2);
-    result = (int)mapObj_OWSDispatch(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_convertToString) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: mapObj_convertToString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_convertToString" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    result = (char *)mapObj_convertToString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_zoomPoint) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    int arg2 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    int arg4 ;
-    int arg5 ;
-    rectObj *arg6 = (rectObj *) 0 ;
-    rectObj *arg7 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    void *argp6 = 0 ;
-    int res6 = 0 ;
-    void *argp7 = 0 ;
-    int res7 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 7) || (items > 7)) {
-      SWIG_croak("Usage: mapObj_zoomPoint(self,zoomfactor,poPixPos,width,height,poGeorefExt,poMaxGeorefExt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomPoint" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_zoomPoint" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_zoomPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomPoint" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_zoomPoint" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomPoint" "', argument " "6"" of type '" "rectObj *""'"); 
-    }
-    arg6 = (rectObj *)(argp6);
-    res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res7)) {
-      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "mapObj_zoomPoint" "', argument " "7"" of type '" "rectObj *""'"); 
-    }
-    arg7 = (rectObj *)(argp7);
-    result = (int)mapObj_zoomPoint(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_zoomRectangle) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    rectObj *arg2 = (rectObj *) 0 ;
-    int arg3 ;
-    int arg4 ;
-    rectObj *arg5 = (rectObj *) 0 ;
-    rectObj *arg6 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    void *argp5 = 0 ;
-    int res5 = 0 ;
-    void *argp6 = 0 ;
-    int res6 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 6) || (items > 6)) {
-      SWIG_croak("Usage: mapObj_zoomRectangle(self,poPixRect,width,height,poGeorefExt,poMaxGeorefExt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomRectangle" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_zoomRectangle" "', argument " "2"" of type '" "rectObj *""'"); 
-    }
-    arg2 = (rectObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_zoomRectangle" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomRectangle" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res5)) {
-      SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mapObj_zoomRectangle" "', argument " "5"" of type '" "rectObj *""'"); 
-    }
-    arg5 = (rectObj *)(argp5);
-    res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomRectangle" "', argument " "6"" of type '" "rectObj *""'"); 
-    }
-    arg6 = (rectObj *)(argp6);
-    result = (int)mapObj_zoomRectangle(arg1,arg2,arg3,arg4,arg5,arg6);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_mapObj_zoomScale) {
-  {
-    struct mapObj *arg1 = (struct mapObj *) 0 ;
-    double arg2 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    int arg4 ;
-    int arg5 ;
-    rectObj *arg6 = (rectObj *) 0 ;
-    rectObj *arg7 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    void *argp6 = 0 ;
-    int res6 = 0 ;
-    void *argp7 = 0 ;
-    int res7 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 7) || (items > 7)) {
-      SWIG_croak("Usage: mapObj_zoomScale(self,scale,poPixPos,width,height,poGeorefExt,poMaxGeorefExt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomScale" "', argument " "1"" of type '" "struct mapObj *""'"); 
-    }
-    arg1 = (struct mapObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_zoomScale" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_zoomScale" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomScale" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_zoomScale" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomScale" "', argument " "6"" of type '" "rectObj *""'"); 
-    }
-    arg6 = (rectObj *)(argp6);
-    res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res7)) {
-      SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "mapObj_zoomScale" "', argument " "7"" of type '" "rectObj *""'"); 
-    }
-    arg7 = (rectObj *)(argp7);
-    result = (int)mapObj_zoomScale(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msSaveImage) {
-  {
-    mapObj *arg1 = (mapObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: msSaveImage(map,img,filename);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msSaveImage" "', argument " "1"" of type '" "mapObj *""'"); 
-    }
-    arg1 = (mapObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "msSaveImage" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "msSaveImage" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)msSaveImage(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msFreeImage) {
-  {
-    imageObj *arg1 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: msFreeImage(img);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msFreeImage" "', argument " "1"" of type '" "imageObj *""'"); 
-    }
-    arg1 = (imageObj *)(argp1);
-    msFreeImage(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msSetup) {
-  {
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msSetup();");
-    }
-    result = (int)msSetup();
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msCleanup) {
-  {
-    int arg1 ;
-    int val1 ;
-    int ecode1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: msCleanup(signal);");
-    }
-    ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "msCleanup" "', argument " "1"" of type '" "int""'");
-    } 
-    arg1 = (int)(val1);
-    msCleanup(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msLoadMapFromString) {
-  {
-    char *arg1 = (char *) 0 ;
-    char *arg2 = (char *) 0 ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    mapObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: msLoadMapFromString(buffer,new_mappath);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msLoadMapFromString" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "msLoadMapFromString" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (mapObj *)msLoadMapFromString(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_width_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_width_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_width_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_width_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_width_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (double) ((arg1)->width);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_patternlength_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_patternlength_set(self,patternlength);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternlength_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_patternlength_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->patternlength = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_patternlength_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_patternlength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternlength_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (int) ((arg1)->patternlength);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_pattern_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    double *arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_pattern_set(self,pattern);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_pattern_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_double, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "strokeStyleObj_pattern_set" "', argument " "2"" of type '" "double [MS_MAXPATTERNLENGTH]""'"); 
-    } 
-    arg2 = (double *)(argp2);
-    {
-      if (arg2) {
-        size_t ii = 0;
-        for (; ii < (size_t)MS_MAXPATTERNLENGTH; ++ii) arg1->pattern[ii] = arg2[ii];
-      } else {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""pattern""' of type '""double [MS_MAXPATTERNLENGTH]""'");
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_pattern_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_pattern_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_pattern_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (double *)(double *) ((arg1)->pattern);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_patternoffset_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_patternoffset_set(self,patternoffset);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternoffset_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_patternoffset_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->patternoffset = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_patternoffset_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_patternoffset_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternoffset_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (double) ((arg1)->patternoffset);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_color_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_color_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "strokeStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_color_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_color_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linecap_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_linecap_set(self,linecap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linecap_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linecap_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->linecap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linecap_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_linecap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linecap_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (int) ((arg1)->linecap);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linejoin_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_linejoin_set(self,linejoin);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoin_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linejoin_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->linejoin = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linejoin_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_linejoin_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoin_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (int) ((arg1)->linejoin);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linejoinmaxsize_set) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: strokeStyleObj_linejoinmaxsize_set(self,linejoinmaxsize);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoinmaxsize_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linejoinmaxsize_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->linejoinmaxsize = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_strokeStyleObj_linejoinmaxsize_get) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: strokeStyleObj_linejoinmaxsize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoinmaxsize_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    result = (double) ((arg1)->linejoinmaxsize);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_strokeStyleObj) {
-  {
-    int argvi = 0;
-    strokeStyleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_strokeStyleObj();");
-    }
-    result = (strokeStyleObj *)calloc(1, sizeof(strokeStyleObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_strokeStyleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_strokeStyleObj) {
-  {
-    strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_strokeStyleObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_strokeStyleObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_strokeStyleObj" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-    }
-    arg1 = (strokeStyleObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_color_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_color_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_color_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_color_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_backgroundcolor_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_backgroundcolor_set(self,backgroundcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_backgroundcolor_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->backgroundcolor = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_backgroundcolor_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_backgroundcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_backgroundcolor_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->backgroundcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_outlinewidth_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_outlinewidth_set(self,outlinewidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinewidth_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->outlinewidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_outlinewidth_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_outlinewidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinewidth_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (double) ((arg1)->outlinewidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_outlinecolor_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinecolor_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_outlinecolor_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinecolor_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_scale_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_scale_set(self,scale);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_scale_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_scale_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->scale = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_scale_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_scale_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_scale_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (double) ((arg1)->scale);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_rotation_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_rotation_set(self,rotation);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_rotation_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_rotation_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->rotation = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_rotation_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_rotation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_rotation_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (double) ((arg1)->rotation);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_gap_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_gap_set(self,gap);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_gap_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_gap_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->gap = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_gap_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_gap_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_gap_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (double) ((arg1)->gap);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_style_set) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    styleObj *arg2 = (styleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolStyleObj_style_set(self,style);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_style_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_styleObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_style_set" "', argument " "2"" of type '" "styleObj *""'"); 
-    }
-    arg2 = (styleObj *)(argp2);
-    if (arg1) (arg1)->style = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolStyleObj_style_get) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    styleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolStyleObj_style_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_style_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    result = (styleObj *) ((arg1)->style);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_symbolStyleObj) {
-  {
-    int argvi = 0;
-    symbolStyleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_symbolStyleObj();");
-    }
-    result = (symbolStyleObj *)calloc(1, sizeof(symbolStyleObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolStyleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_symbolStyleObj) {
-  {
-    symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_symbolStyleObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolStyleObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolStyleObj" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-    }
-    arg1 = (symbolStyleObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_symbol_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    symbolObj *arg2 = (symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_symbol_set(self,symbol);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_symbol_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_symbolObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_symbol_set" "', argument " "2"" of type '" "symbolObj *""'"); 
-    }
-    arg2 = (symbolObj *)(argp2);
-    if (arg1) (arg1)->symbol = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_symbol_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    symbolObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_symbol_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_symbol_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (symbolObj *) ((arg1)->symbol);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_width_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_width_set(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_width_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_width_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->width = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_width_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_width_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_width_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (int) ((arg1)->width);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_height_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_height_set(self,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_height_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_height_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->height = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_height_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_height_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_height_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (int) ((arg1)->height);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_color_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_color_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_color_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_color_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (colorObj *)& ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_outlinecolor_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinecolor_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_outlinecolor_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinecolor_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (colorObj *)& ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_backgroundcolor_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_backgroundcolor_set(self,backgroundcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_backgroundcolor_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->backgroundcolor = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_backgroundcolor_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_backgroundcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_backgroundcolor_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (colorObj *)& ((arg1)->backgroundcolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_outlinewidth_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_outlinewidth_set(self,outlinewidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinewidth_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->outlinewidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_outlinewidth_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_outlinewidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinewidth_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (double) ((arg1)->outlinewidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_rotation_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_rotation_set(self,rotation);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_rotation_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_rotation_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->rotation = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_rotation_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_rotation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_rotation_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (double) ((arg1)->rotation);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_scale_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_scale_set(self,scale);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_scale_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_scale_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->scale = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_scale_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_scale_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_scale_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (double) ((arg1)->scale);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_image_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_image_set(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_image_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_image_set" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    if (arg1) (arg1)->image = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_image_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_image_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_image_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (imageObj *) ((arg1)->image);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_next_set) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    tileCacheObj *arg2 = (tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: tileCacheObj_next_set(self,next);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_next_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_tileCacheObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_next_set" "', argument " "2"" of type '" "tileCacheObj *""'"); 
-    }
-    arg2 = (tileCacheObj *)(argp2);
-    if (arg1) (arg1)->next = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_tileCacheObj_next_get) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    tileCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: tileCacheObj_next_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_next_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    result = (tileCacheObj *) ((arg1)->next);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tileCacheObj, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_tileCacheObj) {
-  {
-    int argvi = 0;
-    struct tileCacheObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_tileCacheObj();");
-    }
-    result = (struct tileCacheObj *)calloc(1, sizeof(struct tileCacheObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tileCacheObj, SWIG_OWNER | 0); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_tileCacheObj) {
-  {
-    struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_tileCacheObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_tileCacheObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_tileCacheObj" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-    }
-    arg1 = (struct tileCacheObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_fonts_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    char **arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_fonts_set(self,fonts);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_fonts_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_fonts_set" "', argument " "2"" of type '" "char *[5]""'"); 
-    } 
-    arg2 = (char **)(argp2);
-    {
-      if (arg2) {
-        size_t ii = 0;
-        for (; ii < (size_t)5; ++ii) arg1->fonts[ii] = arg2[ii];
-      } else {
-        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""fonts""' of type '""char *[5]""'");
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_fonts_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char **result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_fonts_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_fonts_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (char **)(char **) ((arg1)->fonts);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_numfonts_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_numfonts_set(self,numfonts);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_numfonts_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_numfonts_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->numfonts = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_numfonts_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_numfonts_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_numfonts_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (int) ((arg1)->numfonts);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_size_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_size_set(self,size);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_size_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_size_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->size = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_size_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_size_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_size_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (double) ((arg1)->size);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_rotation_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_rotation_set(self,rotation);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_rotation_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_rotation_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->rotation = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_rotation_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_rotation_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_rotation_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (double) ((arg1)->rotation);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_color_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_color_set(self,color);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_color_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->color = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_color_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_color_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_color_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->color);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_outlinewidth_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_outlinewidth_set(self,outlinewidth);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinewidth_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->outlinewidth = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_outlinewidth_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_outlinewidth_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinewidth_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (double) ((arg1)->outlinewidth);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_outlinecolor_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    colorObj *arg2 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_outlinecolor_set(self,outlinecolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinecolor_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-    }
-    arg2 = (colorObj *)(argp2);
-    if (arg1) (arg1)->outlinecolor = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_outlinecolor_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_outlinecolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinecolor_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (colorObj *) ((arg1)->outlinecolor);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_antialias_set) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: labelStyleObj_antialias_set(self,antialias);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_antialias_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_antialias_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->antialias = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_labelStyleObj_antialias_get) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: labelStyleObj_antialias_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_antialias_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    result = (int) ((arg1)->antialias);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_labelStyleObj) {
-  {
-    int argvi = 0;
-    labelStyleObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_labelStyleObj();");
-    }
-    result = (labelStyleObj *)calloc(1, sizeof(labelStyleObj));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelStyleObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_labelStyleObj) {
-  {
-    labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_labelStyleObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_labelStyleObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelStyleObj" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-    }
-    arg1 = (labelStyleObj *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_minx_set) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: rectObj_minx_set(self,minx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_minx_set" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_minx_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_minx_get) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_minx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_minx_get" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (double) ((arg1)->minx);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_miny_set) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: rectObj_miny_set(self,miny);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_miny_set" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_miny_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->miny = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_miny_get) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_miny_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_miny_get" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (double) ((arg1)->miny);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_maxx_set) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: rectObj_maxx_set(self,maxx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxx_set" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_maxx_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_maxx_get) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_maxx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxx_get" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (double) ((arg1)->maxx);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_maxy_set) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: rectObj_maxy_set(self,maxy);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxy_set" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_maxy_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxy = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_maxy_get) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_maxy_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxy_get" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (double) ((arg1)->maxy);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_rectObj) {
-  {
-    double arg1 = (double) -1.0 ;
-    double arg2 = (double) -1.0 ;
-    double arg3 = (double) -1.0 ;
-    double arg4 = (double) -1.0 ;
-    int arg5 = (int) 0 ;
-    double val1 ;
-    int ecode1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 5)) {
-      SWIG_croak("Usage: new_rectObj(minx,miny,maxx,maxy,imageunits);");
-    }
-    if (items > 0) {
-      ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-      if (!SWIG_IsOK(ecode1)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rectObj" "', argument " "1"" of type '" "double""'");
-      } 
-      arg1 = (double)(val1);
-    }
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rectObj" "', argument " "2"" of type '" "double""'");
-      } 
-      arg2 = (double)(val2);
-    }
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rectObj" "', argument " "3"" of type '" "double""'");
-      } 
-      arg3 = (double)(val3);
-    }
-    if (items > 3) {
-      ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-      if (!SWIG_IsOK(ecode4)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rectObj" "', argument " "4"" of type '" "double""'");
-      } 
-      arg4 = (double)(val4);
-    }
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rectObj" "', argument " "5"" of type '" "int""'");
-      } 
-      arg5 = (int)(val5);
-    }
-    result = (rectObj *)new_rectObj(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_rectObj) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_rectObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rectObj" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    delete_rectObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_project) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    projectionObj *arg2 = (projectionObj *) 0 ;
-    projectionObj *arg3 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: rectObj_project(self,projin,projout);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_project" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rectObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-    }
-    arg2 = (projectionObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rectObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-    }
-    arg3 = (projectionObj *)(argp3);
-    result = (int)rectObj_project(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_fit) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: rectObj_fit(self,width,height);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_fit" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_fit" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rectObj_fit" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    result = (double)rectObj_fit(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_draw) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    layerObj *arg3 = (layerObj *) 0 ;
-    imageObj *arg4 = (imageObj *) 0 ;
-    int arg5 ;
-    char *arg6 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int res6 ;
-    char *buf6 = 0 ;
-    int alloc6 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 6) || (items > 6)) {
-      SWIG_croak("Usage: rectObj_draw(self,map,layer,image,classindex,text);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_draw" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rectObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rectObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-    }
-    arg3 = (layerObj *)(argp3);
-    res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rectObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-    }
-    arg4 = (imageObj *)(argp4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rectObj_draw" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6);
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rectObj_draw" "', argument " "6"" of type '" "char *""'");
-    }
-    arg6 = (char *)(buf6);
-    result = (int)rectObj_draw(arg1,arg2,arg3,arg4,arg5,arg6);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_getCenter) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_getCenter(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_getCenter" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (pointObj *)rectObj_getCenter(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_toPolygon) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_toPolygon(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_toPolygon" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (shapeObj *)rectObj_toPolygon(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_rectObj_toString) {
-  {
-    rectObj *arg1 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: rectObj_toString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_toString" "', argument " "1"" of type '" "rectObj *""'"); 
-    }
-    arg1 = (rectObj *)(argp1);
-    result = (char *)rectObj_toString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_x_set) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: pointObj_x_set(self,x);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_x_set" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_x_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->x = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_x_get) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: pointObj_x_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_x_get" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    result = (double) ((arg1)->x);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_y_set) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: pointObj_y_set(self,y);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_y_set" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_y_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->y = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_y_get) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: pointObj_y_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_y_get" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    result = (double) ((arg1)->y);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_pointObj) {
-  {
-    double arg1 = (double) 0.0 ;
-    double arg2 = (double) 0.0 ;
-    double arg3 = (double) 0.0 ;
-    double arg4 = (double) -2e38 ;
-    double val1 ;
-    int ecode1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 4)) {
-      SWIG_croak("Usage: new_pointObj(x,y,z,m);");
-    }
-    if (items > 0) {
-      ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-      if (!SWIG_IsOK(ecode1)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_pointObj" "', argument " "1"" of type '" "double""'");
-      } 
-      arg1 = (double)(val1);
-    }
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_pointObj" "', argument " "2"" of type '" "double""'");
-      } 
-      arg2 = (double)(val2);
-    }
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_pointObj" "', argument " "3"" of type '" "double""'");
-      } 
-      arg3 = (double)(val3);
-    }
-    if (items > 3) {
-      ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-      if (!SWIG_IsOK(ecode4)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_pointObj" "', argument " "4"" of type '" "double""'");
-      } 
-      arg4 = (double)(val4);
-    }
-    result = (pointObj *)new_pointObj(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_pointObj) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_pointObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pointObj" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    delete_pointObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_project) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    projectionObj *arg2 = (projectionObj *) 0 ;
-    projectionObj *arg3 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: pointObj_project(self,projin,projout);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_project" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-    }
-    arg2 = (projectionObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-    }
-    arg3 = (projectionObj *)(argp3);
-    result = (int)pointObj_project(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_draw) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    layerObj *arg3 = (layerObj *) 0 ;
-    imageObj *arg4 = (imageObj *) 0 ;
-    int arg5 ;
-    char *arg6 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int val5 ;
-    int ecode5 = 0 ;
-    int res6 ;
-    char *buf6 = 0 ;
-    int alloc6 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 6) || (items > 6)) {
-      SWIG_croak("Usage: pointObj_draw(self,map,layer,image,classindex,text);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_draw" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-    }
-    arg3 = (layerObj *)(argp3);
-    res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pointObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-    }
-    arg4 = (imageObj *)(argp4);
-    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_draw" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-    res6 = SWIG_AsCharPtrAndSize(ST(5), &buf6, NULL, &alloc6);
-    if (!SWIG_IsOK(res6)) {
-      SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pointObj_draw" "', argument " "6"" of type '" "char *""'");
-    }
-    arg6 = (char *)(buf6);
-    result = (int)pointObj_draw(arg1,arg2,arg3,arg4,arg5,arg6);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_distanceToPoint) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: pointObj_distanceToPoint(self,point);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToPoint" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (double)pointObj_distanceToPoint(arg1,arg2);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_distanceToSegment) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: pointObj_distanceToSegment(self,a,b);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToSegment" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToSegment" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_distanceToSegment" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    result = (double)pointObj_distanceToSegment(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_distanceToShape) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: pointObj_distanceToShape(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToShape" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (double)pointObj_distanceToShape(arg1,arg2);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_setXY) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    double arg4 = (double) -2e38 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 4)) {
-      SWIG_croak("Usage: pointObj_setXY(self,x,y,m);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXY" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXY" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXY" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    if (items > 3) {
-      ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-      if (!SWIG_IsOK(ecode4)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXY" "', argument " "4"" of type '" "double""'");
-      } 
-      arg4 = (double)(val4);
-    }
-    result = (int)pointObj_setXY(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_setXYZ) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    double arg4 ;
-    double arg5 = (double) -2e38 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 5)) {
-      SWIG_croak("Usage: pointObj_setXYZ(self,x,y,z,m);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXYZ" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXYZ" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXYZ" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXYZ" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-    if (items > 4) {
-      ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-      if (!SWIG_IsOK(ecode5)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_setXYZ" "', argument " "5"" of type '" "double""'");
-      } 
-      arg5 = (double)(val5);
-    }
-    result = (int)pointObj_setXYZ(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_setXYZM) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    double arg2 ;
-    double arg3 ;
-    double arg4 ;
-    double arg5 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    double val3 ;
-    int ecode3 = 0 ;
-    double val4 ;
-    int ecode4 = 0 ;
-    double val5 ;
-    int ecode5 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 5) || (items > 5)) {
-      SWIG_croak("Usage: pointObj_setXYZM(self,x,y,z,m);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXYZM" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXYZM" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    ecode3 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXYZM" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-    ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXYZM" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-    ecode5 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_setXYZM" "', argument " "5"" of type '" "double""'");
-    } 
-    arg5 = (double)(val5);
-    result = (int)pointObj_setXYZM(arg1,arg2,arg3,arg4,arg5);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_toString) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: pointObj_toString(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_toString" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    result = (char *)pointObj_toString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_pointObj_toShape) {
-  {
-    pointObj *arg1 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: pointObj_toShape(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_toShape" "', argument " "1"" of type '" "pointObj *""'"); 
-    }
-    arg1 = (pointObj *)(argp1);
-    result = (shapeObj *)pointObj_toShape(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_lineObj_numpoints_get) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: lineObj_numpoints_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_numpoints_get" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    result = (int) ((arg1)->numpoints);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_lineObj) {
-  {
-    int argvi = 0;
-    lineObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_lineObj();");
-    }
-    result = (lineObj *)new_lineObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_lineObj) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_lineObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_lineObj" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    delete_lineObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_lineObj_project) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    projectionObj *arg2 = (projectionObj *) 0 ;
-    projectionObj *arg3 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: lineObj_project(self,projin,projout);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_project" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "lineObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-    }
-    arg2 = (projectionObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lineObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-    }
-    arg3 = (projectionObj *)(argp3);
-    result = (int)lineObj_project(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_lineObj_get) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: lineObj_get(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_get" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lineObj_get" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (pointObj *)lineObj_get(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_lineObj_add) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: lineObj_add(self,p);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_add" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "lineObj_add" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (int)lineObj_add(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_lineObj_set) {
-  {
-    lineObj *arg1 = (lineObj *) 0 ;
-    int arg2 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: lineObj_set(self,i,p);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_set" "', argument " "1"" of type '" "lineObj *""'"); 
-    }
-    arg1 = (lineObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lineObj_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lineObj_set" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    result = (int)lineObj_set(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_numlines_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_numlines_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_numlines_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->numlines);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_numvalues_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_numvalues_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_numvalues_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->numvalues);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_bounds_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    rectObj *arg2 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_bounds_set(self,bounds);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_bounds_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_bounds_set" "', argument " "2"" of type '" "rectObj *""'"); 
-    }
-    arg2 = (rectObj *)(argp2);
-    if (arg1) (arg1)->bounds = *arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_bounds_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_bounds_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_bounds_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (rectObj *)& ((arg1)->bounds);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_type_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_type_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_type_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_type_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_type_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_index_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    long arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    long val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_index_set(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_index_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_index_set" "', argument " "2"" of type '" "long""'");
-    } 
-    arg2 = (long)(val2);
-    if (arg1) (arg1)->index = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_index_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    long result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_index_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_index_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (long) ((arg1)->index);
-    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_tileindex_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_tileindex_set(self,tileindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_tileindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_tileindex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->tileindex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_tileindex_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_tileindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_tileindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->tileindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_classindex_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_classindex_set(self,classindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_classindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_classindex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->classindex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_classindex_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_classindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_classindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->classindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_text_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_text_set(self,text);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_text_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_text_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->text) free((char*)arg1->text);
-      if (arg2) {
-        arg1->text = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->text,arg2);
-      } else {
-        arg1->text = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_text_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_text_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_text_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (char *) ((arg1)->text);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_scratch_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_scratch_set(self,scratch);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_scratch_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_scratch_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->scratch = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_scratch_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_scratch_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_scratch_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->scratch);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_resultindex_set) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_resultindex_set(self,resultindex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_resultindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_resultindex_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->resultindex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_resultindex_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_resultindex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_resultindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (int) ((arg1)->resultindex);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_shapeObj) {
-  {
-    int arg1 = (int) MS_SHAPE_NULL ;
-    int val1 ;
-    int ecode1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 1)) {
-      SWIG_croak("Usage: new_shapeObj(type);");
-    }
-    if (items > 0) {
-      ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-      if (!SWIG_IsOK(ecode1)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_shapeObj" "', argument " "1"" of type '" "int""'");
-      } 
-      arg1 = (int)(val1);
-    }
-    result = (shapeObj *)new_shapeObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_shapeObj) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_shapeObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_shapeObj" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    delete_shapeObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_fromWKT) {
-  {
-    char *arg1 = (char *) 0 ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_fromWKT(wkt);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_fromWKT" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    result = (shapeObj *)shapeObj_fromWKT(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_project) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    projectionObj *arg2 = (projectionObj *) 0 ;
-    projectionObj *arg3 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: shapeObj_project(self,projin,projout);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_project" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-    }
-    arg2 = (projectionObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapeObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-    }
-    arg3 = (projectionObj *)(argp3);
-    result = (int)shapeObj_project(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_get) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    lineObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_get(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_get" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (lineObj *)shapeObj_get(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_add) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    lineObj *arg2 = (lineObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_add(self,line);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_add" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_add" "', argument " "2"" of type '" "lineObj *""'"); 
-    }
-    arg2 = (lineObj *)(argp2);
-    result = (int)shapeObj_add(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_draw) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    layerObj *arg3 = (layerObj *) 0 ;
-    imageObj *arg4 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: shapeObj_draw(self,map,layer,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_draw" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapeObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-    }
-    arg3 = (layerObj *)(argp3);
-    res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "shapeObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-    }
-    arg4 = (imageObj *)(argp4);
-    result = (int)shapeObj_draw(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_setBounds) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_setBounds(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_setBounds" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    shapeObj_setBounds(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_clone) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_clone(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_clone" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (shapeObj *)shapeObj_clone(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_copy) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_copy(self,dest);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_copy" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_copy" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_copy(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_toWKT) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_toWKT(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_toWKT" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (char *)shapeObj_toWKT(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_buffer) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_buffer(self,width);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_buffer" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_buffer" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    result = (shapeObj *)shapeObj_buffer(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_simplify) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_simplify(self,tolerance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_simplify" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_simplify" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    result = (shapeObj *)shapeObj_simplify(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_topologyPreservingSimplify) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_topologyPreservingSimplify(self,tolerance);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_topologyPreservingSimplify" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_topologyPreservingSimplify" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    result = (shapeObj *)shapeObj_topologyPreservingSimplify(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_convexHull) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_convexHull(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_convexHull" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (shapeObj *)shapeObj_convexHull(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_boundary) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_boundary(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_boundary" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (shapeObj *)shapeObj_boundary(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_getCentroid) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_getCentroid(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getCentroid" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (pointObj *)shapeObj_getCentroid(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_Union) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_Union(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_Union" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_Union" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (shapeObj *)shapeObj_Union(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_intersection) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_intersection(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_intersection" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_intersection" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (shapeObj *)shapeObj_intersection(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_difference) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_difference(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_difference" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_difference" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (shapeObj *)shapeObj_difference(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_symDifference) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_symDifference(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_symDifference" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_symDifference" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (shapeObj *)shapeObj_symDifference(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_contains__SWIG_0) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_contains(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_contains" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_contains" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_contains__SWIG_0(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_overlaps) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_overlaps(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_overlaps" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_overlaps" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_overlaps(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_within) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_within(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_within" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_within" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_within(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_crosses) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_crosses(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_crosses" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_crosses" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_crosses(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_intersects) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_intersects(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_intersects" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_intersects" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_intersects(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_touches) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_touches(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_touches" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_touches" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_touches(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_equals) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_equals(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_equals" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_equals" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_equals(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_disjoint) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_disjoint(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_disjoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_disjoint" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapeObj_disjoint(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_getArea) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_getArea(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getArea" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (double)shapeObj_getArea(arg1);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_getLength) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_getLength(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getLength" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (double)shapeObj_getLength(arg1);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_getValue) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_getValue(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getValue" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_getValue" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)shapeObj_getValue(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_contains__SWIG_1) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_contains(self,point);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_contains" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_contains" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (int)shapeObj_contains__SWIG_1(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_contains) {
-  dXSARGS;
-  
-  {
-    unsigned long _index = 0;
-    SWIG_TypeRank _rank = 0; 
-    if (items == 2) {
-      SWIG_TypeRank _ranki = 0;
-      SWIG_TypeRank _rankm = 0;
-      SWIG_TypeRank _pi = 1;
-      int _v = 0;
-      {
-        void *vptr = 0;
-        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_shapeObj, 0);
-        _v = SWIG_CheckState(res);
-      }
-      if (!_v) goto check_1;
-      _ranki += _v*_pi;
-      _rankm += _pi;
-      _pi *= SWIG_MAXCASTRANK;
-      {
-        void *vptr = 0;
-        int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_shapeObj, 0);
-        _v = SWIG_CheckState(res);
-      }
-      if (!_v) goto check_1;
-      _ranki += _v*_pi;
-      _rankm += _pi;
-      _pi *= SWIG_MAXCASTRANK;
-      if (!_index || (_ranki < _rank)) {
-        _rank = _ranki; _index = 1;
-        if (_rank == _rankm) goto dispatch;
-      }
-    }
-  check_1:
-    
-    if (items == 2) {
-      SWIG_TypeRank _ranki = 0;
-      SWIG_TypeRank _rankm = 0;
-      SWIG_TypeRank _pi = 1;
-      int _v = 0;
-      {
-        void *vptr = 0;
-        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_shapeObj, 0);
-        _v = SWIG_CheckState(res);
-      }
-      if (!_v) goto check_2;
-      _ranki += _v*_pi;
-      _rankm += _pi;
-      _pi *= SWIG_MAXCASTRANK;
-      {
-        void *vptr = 0;
-        int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_pointObj, 0);
-        _v = SWIG_CheckState(res);
-      }
-      if (!_v) goto check_2;
-      _ranki += _v*_pi;
-      _rankm += _pi;
-      _pi *= SWIG_MAXCASTRANK;
-      if (!_index || (_ranki < _rank)) {
-        _rank = _ranki; _index = 2;
-        if (_rank == _rankm) goto dispatch;
-      }
-    }
-  check_2:
-    
-  dispatch:
-    switch(_index) {
-    case 1:
-      PUSHMARK(MARK); SWIG_CALLXS(_wrap_shapeObj_contains__SWIG_0); return;
-    case 2:
-      PUSHMARK(MARK); SWIG_CALLXS(_wrap_shapeObj_contains__SWIG_1); return;
-    }
-  }
-  
-  croak("No matching function for overloaded 'shapeObj_contains'");
-  XSRETURN(0);
-}
-
-
-XS(_wrap_shapeObj_distanceToPoint) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_distanceToPoint(self,point);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_distanceToPoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_distanceToPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (double)shapeObj_distanceToPoint(arg1,arg2);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_distanceToShape) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_distanceToShape(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_distanceToShape" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_distanceToShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (double)shapeObj_distanceToShape(arg1,arg2);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_getLabelPoint) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    pointObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapeObj_getLabelPoint(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getLabelPoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    result = (pointObj *)shapeObj_getLabelPoint(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_setValue) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: shapeObj_setValue(self,i,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_setValue" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_setValue" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapeObj_setValue" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)shapeObj_setValue(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapeObj_initValues) {
-  {
-    shapeObj *arg1 = (shapeObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapeObj_initValues(self,numvalues);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_initValues" "', argument " "1"" of type '" "shapeObj *""'"); 
-    }
-    arg1 = (shapeObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_initValues" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    shapeObj_initValues(arg1,arg2);
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_fp_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    FILE *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_fp_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_fp_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (FILE *) ((arg1)->fp);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nRecords_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nRecords_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nRecords_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->nRecords);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nRecordLength_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    unsigned int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nRecordLength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nRecordLength_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (unsigned int) ((arg1)->nRecordLength);
-    ST(argvi) = SWIG_From_unsigned_SS_int  SWIG_PERL_CALL_ARGS_1((unsigned int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nHeaderLength_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nHeaderLength_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nHeaderLength_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->nHeaderLength);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nFields_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nFields_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nFields_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->nFields);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_panFieldOffset_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_panFieldOffset_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldOffset_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int *) ((arg1)->panFieldOffset);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_panFieldSize_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_panFieldSize_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldSize_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int *) ((arg1)->panFieldSize);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_panFieldDecimals_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_panFieldDecimals_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldDecimals_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int *) ((arg1)->panFieldDecimals);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_pachFieldType_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_pachFieldType_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pachFieldType_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (char *) ((arg1)->pachFieldType);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_pszHeader_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_pszHeader_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszHeader_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (char *) ((arg1)->pszHeader);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nCurrentRecord_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nCurrentRecord_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nCurrentRecord_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->nCurrentRecord);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_bCurrentRecordModified_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_bCurrentRecordModified_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bCurrentRecordModified_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->bCurrentRecordModified);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_pszCurrentRecord_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_pszCurrentRecord_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszCurrentRecord_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (char *) ((arg1)->pszCurrentRecord);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_bNoHeader_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_bNoHeader_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bNoHeader_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->bNoHeader);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_bUpdated_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_bUpdated_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bUpdated_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->bUpdated);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_pszStringField_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_pszStringField_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszStringField_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (char *) ((arg1)->pszStringField);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_nStringFieldLen_get) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: DBFInfo_nStringFieldLen_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nStringFieldLen_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    result = (int) ((arg1)->nStringFieldLen);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_getFieldName) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: DBFInfo_getFieldName(self,iField);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldName" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldName" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)DBFInfo_getFieldName(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_getFieldWidth) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: DBFInfo_getFieldWidth(self,iField);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldWidth" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldWidth" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)DBFInfo_getFieldWidth(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_getFieldDecimals) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: DBFInfo_getFieldDecimals(self,iField);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldDecimals" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldDecimals" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)DBFInfo_getFieldDecimals(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_DBFInfo_getFieldType) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: DBFInfo_getFieldType(self,iField);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldType" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldType" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (int)DBFInfo_getFieldType(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_DBFInfo) {
-  {
-    int argvi = 0;
-    DBFInfo *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_DBFInfo();");
-    }
-    result = (DBFInfo *)calloc(1, sizeof(DBFInfo));
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DBFInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_DBFInfo) {
-  {
-    DBFInfo *arg1 = (DBFInfo *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_DBFInfo(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DBFInfo, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DBFInfo" "', argument " "1"" of type '" "DBFInfo *""'"); 
-    }
-    arg1 = (DBFInfo *)(argp1);
-    free((char *) arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_source_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_source_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_source_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (char *)(char *) ((arg1)->source);
-    {
-      ST(argvi) = newSVpvn(result, strlen(result));
-      argvi++;
-    }
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_type_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_type_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (int) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_numshapes_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_numshapes_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_numshapes_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (int) ((arg1)->numshapes);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_bounds_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_bounds_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_bounds_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (rectObj *)& ((arg1)->bounds);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_lastshape_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_lastshape_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_lastshape_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (int) ((arg1)->lastshape);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_status_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    ms_bitarray result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_status_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_status_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (ms_bitarray) ((arg1)->status);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 | 0); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_statusbounds_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    rectObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_statusbounds_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_statusbounds_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (rectObj *)& ((arg1)->statusbounds);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_isopen_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_isopen_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_isopen_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (int) ((arg1)->isopen);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_shapefileObj) {
-  {
-    char *arg1 = (char *) 0 ;
-    int arg2 = (int) -1 ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    shapefileObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: new_shapefileObj(filename,type);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_shapefileObj" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_shapefileObj" "', argument " "2"" of type '" "int""'");
-      } 
-      arg2 = (int)(val2);
-    }
-    result = (shapefileObj *)new_shapefileObj(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapefileObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_shapefileObj) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_shapefileObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_shapefileObj" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    delete_shapefileObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_get) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    int arg2 ;
-    shapeObj *arg3 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: shapefileObj_get(self,i,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_get" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_get" "', argument " "3"" of type '" "shapeObj *""'"); 
-    }
-    arg3 = (shapeObj *)(argp3);
-    result = (int)shapefileObj_get(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_getShape) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    shapeObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapefileObj_getShape(self,i);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getShape" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getShape" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (shapeObj *)shapefileObj_getShape(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_getPoint) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    int arg2 ;
-    pointObj *arg3 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: shapefileObj_getPoint(self,i,point);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getPoint" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getPoint" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_getPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-    }
-    arg3 = (pointObj *)(argp3);
-    result = (int)shapefileObj_getPoint(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_getTransformed) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    mapObj *arg2 = (mapObj *) 0 ;
-    int arg3 ;
-    shapeObj *arg4 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    void *argp4 = 0 ;
-    int res4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: shapefileObj_getTransformed(self,map,i,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getTransformed" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_getTransformed" "', argument " "2"" of type '" "mapObj *""'"); 
-    }
-    arg2 = (mapObj *)(argp2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "shapefileObj_getTransformed" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "shapefileObj_getTransformed" "', argument " "4"" of type '" "shapeObj *""'"); 
-    }
-    arg4 = (shapeObj *)(argp4);
-    result = (int)shapefileObj_getTransformed(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_getExtent) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    int arg2 ;
-    rectObj *arg3 = (rectObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    void *argp3 = 0 ;
-    int res3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: shapefileObj_getExtent(self,i,rect);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getExtent" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getExtent" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_rectObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_getExtent" "', argument " "3"" of type '" "rectObj *""'"); 
-    }
-    arg3 = (rectObj *)(argp3);
-    shapefileObj_getExtent(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_add) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    shapeObj *arg2 = (shapeObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapefileObj_add(self,shape);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_add" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_add" "', argument " "2"" of type '" "shapeObj *""'"); 
-    }
-    arg2 = (shapeObj *)(argp2);
-    result = (int)shapefileObj_add(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_addPoint) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    pointObj *arg2 = (pointObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: shapefileObj_addPoint(self,point);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_addPoint" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_addPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-    }
-    arg2 = (pointObj *)(argp2);
-    result = (int)shapefileObj_addPoint(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_shapefileObj_getDBF) {
-  {
-    shapefileObj *arg1 = (shapefileObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    DBFInfo *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: shapefileObj_getDBF(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getDBF" "', argument " "1"" of type '" "shapefileObj *""'"); 
-    }
-    arg1 = (shapefileObj *)(argp1);
-    result = (DBFInfo *)shapefileObj_getDBF(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DBFInfo, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_numargs_get) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: projectionObj_numargs_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_numargs_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    result = (int) ((arg1)->numargs);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_automatic_get) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: projectionObj_automatic_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_automatic_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    result = (int) ((arg1)->automatic);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_wellknownprojection_set) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: projectionObj_wellknownprojection_set(self,wellknownprojection);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_wellknownprojection_set" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "projectionObj_wellknownprojection_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->wellknownprojection = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_wellknownprojection_get) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: projectionObj_wellknownprojection_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_wellknownprojection_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    result = (int) ((arg1)->wellknownprojection);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_projectionObj) {
-  {
-    char *arg1 = (char *) 0 ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int argvi = 0;
-    projectionObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: new_projectionObj(proj4);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_projectionObj" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    result = (projectionObj *)new_projectionObj(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_projectionObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_projectionObj) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_projectionObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_projectionObj" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    delete_projectionObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_setWKTProjection) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: projectionObj_setWKTProjection(self,wkt);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_setWKTProjection" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "projectionObj_setWKTProjection" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)projectionObj_setWKTProjection(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_projectionObj_getUnits) {
-  {
-    projectionObj *arg1 = (projectionObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: projectionObj_getUnits(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_getUnits" "', argument " "1"" of type '" "projectionObj *""'"); 
-    }
-    arg1 = (projectionObj *)(argp1);
-    result = (int)projectionObj_getUnits(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_red_set) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: colorObj_red_set(self,red);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_red_set" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_red_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->red = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_red_get) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: colorObj_red_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_red_get" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    result = (int) ((arg1)->red);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_green_set) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: colorObj_green_set(self,green);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_green_set" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_green_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->green = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_green_get) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: colorObj_green_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_green_get" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    result = (int) ((arg1)->green);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_blue_set) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: colorObj_blue_set(self,blue);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_blue_set" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_blue_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->blue = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_blue_get) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: colorObj_blue_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_blue_get" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    result = (int) ((arg1)->blue);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_alpha_set) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: colorObj_alpha_set(self,alpha);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_alpha_set" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_alpha_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->alpha = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_alpha_get) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: colorObj_alpha_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_alpha_get" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    result = (int) ((arg1)->alpha);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_colorObj) {
-  {
-    int arg1 = (int) 0 ;
-    int arg2 = (int) 0 ;
-    int arg3 = (int) 0 ;
-    int arg4 = (int) MS_PEN_UNSET ;
-    int val1 ;
-    int ecode1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    colorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 4)) {
-      SWIG_croak("Usage: new_colorObj(red,green,blue,pen);");
-    }
-    if (items > 0) {
-      ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
-      if (!SWIG_IsOK(ecode1)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_colorObj" "', argument " "1"" of type '" "int""'");
-      } 
-      arg1 = (int)(val1);
-    }
-    if (items > 1) {
-      ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-      if (!SWIG_IsOK(ecode2)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_colorObj" "', argument " "2"" of type '" "int""'");
-      } 
-      arg2 = (int)(val2);
-    }
-    if (items > 2) {
-      ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-      if (!SWIG_IsOK(ecode3)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_colorObj" "', argument " "3"" of type '" "int""'");
-      } 
-      arg3 = (int)(val3);
-    }
-    if (items > 3) {
-      ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-      if (!SWIG_IsOK(ecode4)) {
-        SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_colorObj" "', argument " "4"" of type '" "int""'");
-      } 
-      arg4 = (int)(val4);
-    }
-    result = (colorObj *)new_colorObj(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_colorObj) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_colorObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_colorObj" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    delete_colorObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_setRGB) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    int arg2 ;
-    int arg3 ;
-    int arg4 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int val3 ;
-    int ecode3 = 0 ;
-    int val4 ;
-    int ecode4 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 4) || (items > 4)) {
-      SWIG_croak("Usage: colorObj_setRGB(self,red,green,blue);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_setRGB" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_setRGB" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "colorObj_setRGB" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "colorObj_setRGB" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-    result = (int)colorObj_setRGB(arg1,arg2,arg3,arg4);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_setHex) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: colorObj_setHex(self,psHexColor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_setHex" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "colorObj_setHex" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)colorObj_setHex(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_colorObj_toHex) {
-  {
-    colorObj *arg1 = (colorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: colorObj_toHex(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_toHex" "', argument " "1"" of type '" "colorObj *""'"); 
-    }
-    arg1 = (colorObj *)(argp1);
-    result = (char *)colorObj_toHex(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_name_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_name_set(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_name_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_name_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->name) free((char*)arg1->name);
-      if (arg2) {
-        arg1->name = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->name,arg2);
-      } else {
-        arg1->name = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_name_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_name_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_name_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (char *) ((arg1)->name);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_type_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_type_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_type_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_type_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_type_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_inmapfile_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_inmapfile_set(self,inmapfile);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_inmapfile_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_inmapfile_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->inmapfile = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_inmapfile_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_inmapfile_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_inmapfile_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->inmapfile);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_sizex_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_sizex_set(self,sizex);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizex_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_sizex_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->sizex = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_sizex_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_sizex_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizex_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->sizex);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_sizey_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_sizey_set(self,sizey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizey_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_sizey_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->sizey = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_sizey_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_sizey_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizey_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->sizey);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_minx_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_minx_set(self,minx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_minx_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_minx_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->minx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_minx_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_minx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_minx_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->minx);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_miny_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_miny_set(self,miny);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_miny_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_miny_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->miny = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_miny_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_miny_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_miny_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->miny);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_maxx_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_maxx_set(self,maxx);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxx_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_maxx_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxx = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_maxx_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_maxx_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxx_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->maxx);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_maxy_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_maxy_set(self,maxy);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxy_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_maxy_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->maxy = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_maxy_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_maxy_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxy_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->maxy);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_refcount_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_refcount_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_refcount_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->refcount);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_numpoints_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_numpoints_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_numpoints_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->numpoints);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_filled_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_filled_set(self,filled);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_filled_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_filled_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->filled = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_filled_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_filled_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_filled_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->filled);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_anchorpoint_x_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_anchorpoint_x_set(self,anchorpoint_x);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_x_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_anchorpoint_x_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->anchorpoint_x = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_anchorpoint_x_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_anchorpoint_x_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_x_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->anchorpoint_x);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_anchorpoint_y_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    double arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    double val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_anchorpoint_y_set(self,anchorpoint_y);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_y_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_anchorpoint_y_set" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-    if (arg1) (arg1)->anchorpoint_y = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_anchorpoint_y_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    double result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_anchorpoint_y_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_y_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (double) ((arg1)->anchorpoint_y);
-    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_imagepath_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_imagepath_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_imagepath_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (char *) ((arg1)->imagepath);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_transparent_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_transparent_set(self,transparent);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparent_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_transparent_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->transparent = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_transparent_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_transparent_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparent_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->transparent);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_transparentcolor_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_transparentcolor_set(self,transparentcolor);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparentcolor_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_transparentcolor_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->transparentcolor = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_transparentcolor_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_transparentcolor_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparentcolor_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->transparentcolor);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_character_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_character_set(self,character);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_character_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_character_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->character) free((char*)arg1->character);
-      if (arg2) {
-        arg1->character = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->character,arg2);
-      } else {
-        arg1->character = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_character_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_character_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_character_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (char *) ((arg1)->character);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_antialias_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_antialias_set(self,antialias);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_antialias_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_antialias_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->antialias = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_antialias_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_antialias_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_antialias_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (int) ((arg1)->antialias);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_font_set) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_font_set(self,font);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_font_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_font_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->font) free((char*)arg1->font);
-      if (arg2) {
-        arg1->font = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->font,arg2);
-      } else {
-        arg1->font = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_font_get) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_font_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_font_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (char *) ((arg1)->font);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_symbolObj) {
-  {
-    char *arg1 = (char *) 0 ;
-    char *arg2 = (char *) NULL ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    struct symbolObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: new_symbolObj(symbolname,imagefile);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_symbolObj" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    if (items > 1) {
-      res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_symbolObj" "', argument " "2"" of type '" "char const *""'");
-      }
-      arg2 = (char *)(buf2);
-    }
-    result = (struct symbolObj *)new_symbolObj(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_symbolObj) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_symbolObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolObj" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    delete_symbolObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_setImagepath) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_setImagepath(self,imagefile);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setImagepath" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setImagepath" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)symbolObj_setImagepath(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_setPoints) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    lineObj *arg2 = (lineObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_setPoints(self,line);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setPoints" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_lineObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setPoints" "', argument " "2"" of type '" "lineObj *""'"); 
-    }
-    arg2 = (lineObj *)(argp2);
-    result = (int)symbolObj_setPoints(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_getPoints) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    lineObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: symbolObj_getPoints(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_getPoints" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    result = (lineObj *)symbolObj_getPoints(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_getImage) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    imageObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_getImage(self,input_format);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_getImage" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_getImage" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-    }
-    arg2 = (outputFormatObj *)(argp2);
-    result = (imageObj *)symbolObj_getImage(arg1,arg2);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_symbolObj_setImage) {
-  {
-    struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-    imageObj *arg2 = (imageObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    void *argp2 = 0 ;
-    int res2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: symbolObj_setImage(self,image);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setImage" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-    }
-    arg1 = (struct symbolObj *)(argp1);
-    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setImage" "', argument " "2"" of type '" "imageObj *""'"); 
-    }
-    arg2 = (imageObj *)(argp2);
-    result = (int)symbolObj_setImage(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_code_set) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: errorObj_code_set(self,code);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_code_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "errorObj_code_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->code = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_code_get) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: errorObj_code_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_code_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    result = (int) ((arg1)->code);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_routine_set) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    char *arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    char temp2[64] ;
-    int res2 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: errorObj_routine_set(self,routine);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_routine_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    res2 = SWIG_AsCharArray(ST(1), temp2, 64);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "errorObj_routine_set" "', argument " "2"" of type '" "char [64]""'");
-    }
-    arg2 = (char *)(temp2);
-    if (arg2) memcpy(arg1->routine,arg2,64*sizeof(char));
-    else memset(arg1->routine,0,64*sizeof(char));
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_routine_get) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: errorObj_routine_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_routine_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    result = (char *)(char *) ((arg1)->routine);
-    {
-      ST(argvi) = newSVpvn(result, strlen(result));
-      argvi++;
-    }
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_message_set) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    char *arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    char temp2[2048] ;
-    int res2 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: errorObj_message_set(self,message);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_message_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    res2 = SWIG_AsCharArray(ST(1), temp2, 2048);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "errorObj_message_set" "', argument " "2"" of type '" "char [2048]""'");
-    }
-    arg2 = (char *)(temp2);
-    if (arg2) memcpy(arg1->message,arg2,2048*sizeof(char));
-    else memset(arg1->message,0,2048*sizeof(char));
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_message_get) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: errorObj_message_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_message_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    result = (char *)(char *) ((arg1)->message);
-    {
-      ST(argvi) = newSVpvn(result, strlen(result));
-      argvi++;
-    }
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_isreported_set) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: errorObj_isreported_set(self,isreported);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_isreported_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "errorObj_isreported_set" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    if (arg1) (arg1)->isreported = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_isreported_get) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: errorObj_isreported_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_isreported_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    result = (int) ((arg1)->isreported);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_errorObj) {
-  {
-    int argvi = 0;
-    struct errorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_errorObj();");
-    }
-    result = (struct errorObj *)new_errorObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_errorObj) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_errorObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_errorObj" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    delete_errorObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_errorObj_next) {
-  {
-    struct errorObj *arg1 = (struct errorObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    errorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: errorObj_next(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_next" "', argument " "1"" of type '" "struct errorObj *""'"); 
-    }
-    arg1 = (struct errorObj *)(argp1);
-    result = (errorObj *)errorObj_next(arg1);
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, 0 | SWIG_SHADOW); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msGetErrorObj) {
-  {
-    int argvi = 0;
-    errorObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msGetErrorObj();");
-    }
-    result = (errorObj *)msGetErrorObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, 0 | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msResetErrorList) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msResetErrorList();");
-    }
-    msResetErrorList();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msGetVersion) {
-  {
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msGetVersion();");
-    }
-    result = (char *)msGetVersion();
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msGetVersionInt) {
-  {
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msGetVersionInt();");
-    }
-    result = (int)msGetVersionInt();
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msGetErrorString) {
-  {
-    char *arg1 = (char *) 0 ;
-    int res1 ;
-    char *buf1 = 0 ;
-    int alloc1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: msGetErrorString(delimiter);");
-    }
-    res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msGetErrorString" "', argument " "1"" of type '" "char *""'");
-    }
-    arg1 = (char *)(buf1);
-    result = (char *)msGetErrorString(arg1);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    XSRETURN(argvi);
-  fail:
-    if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_numitems_get) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: hashTableObj_numitems_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_numitems_get" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    result = (int) ((arg1)->numitems);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_hashTableObj) {
-  {
-    int argvi = 0;
-    hashTableObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_hashTableObj();");
-    }
-    result = (hashTableObj *)new_hashTableObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_hashTableObj) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_hashTableObj(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_hashTableObj" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    delete_hashTableObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_set) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: hashTableObj_set(self,key,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_set" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hashTableObj_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "hashTableObj_set" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    result = (int)hashTableObj_set(arg1,arg2,arg3);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_get) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 3)) {
-      SWIG_croak("Usage: hashTableObj_get(self,key,default_value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_get" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hashTableObj_get" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    if (items > 2) {
-      res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-      if (!SWIG_IsOK(res3)) {
-        SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "hashTableObj_get" "', argument " "3"" of type '" "char *""'");
-      }
-      arg3 = (char *)(buf3);
-    }
-    result = (char *)hashTableObj_get(arg1,arg2,arg3);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_remove) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: hashTableObj_remove(self,key);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_remove" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hashTableObj_remove" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)hashTableObj_remove(arg1,arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_clear) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: hashTableObj_clear(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_clear" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    hashTableObj_clear(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_hashTableObj_nextKey) {
-  {
-    hashTableObj *arg1 = (hashTableObj *) 0 ;
-    char *arg2 = (char *) NULL ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 2)) {
-      SWIG_croak("Usage: hashTableObj_nextKey(self,prevkey);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_nextKey" "', argument " "1"" of type '" "hashTableObj *""'"); 
-    }
-    arg1 = (hashTableObj *)(argp1);
-    if (items > 1) {
-      res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-      if (!SWIG_IsOK(res2)) {
-        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hashTableObj_nextKey" "', argument " "2"" of type '" "char *""'");
-      }
-      arg2 = (char *)(buf2);
-    }
-    result = (char *)hashTableObj_nextKey(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_NumParams_get) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_NumParams_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_NumParams_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (int) ((arg1)->NumParams);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_type_set) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    enum MS_REQUEST_TYPE arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_type_set(self,type);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_type_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_type_set" "', argument " "2"" of type '" "enum MS_REQUEST_TYPE""'");
-    } 
-    arg2 = (enum MS_REQUEST_TYPE)(val2);
-    if (arg1) (arg1)->type = arg2;
-    ST(argvi) = sv_newmortal();
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_type_get) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    enum MS_REQUEST_TYPE result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_type_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_type_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (enum MS_REQUEST_TYPE) ((arg1)->type);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_contenttype_set) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_contenttype_set(self,contenttype);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_contenttype_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_contenttype_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->contenttype) free((char*)arg1->contenttype);
-      if (arg2) {
-        arg1->contenttype = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->contenttype,arg2);
-      } else {
-        arg1->contenttype = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_contenttype_get) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_contenttype_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_contenttype_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (char *) ((arg1)->contenttype);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_postrequest_set) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_postrequest_set(self,postrequest);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_postrequest_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_postrequest_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->postrequest) free((char*)arg1->postrequest);
-      if (arg2) {
-        arg1->postrequest = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->postrequest,arg2);
-      } else {
-        arg1->postrequest = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_postrequest_get) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_postrequest_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_postrequest_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (char *) ((arg1)->postrequest);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_httpcookiedata_set) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_httpcookiedata_set(self,httpcookiedata);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_httpcookiedata_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_httpcookiedata_set" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    {
-      if (arg1->httpcookiedata) free((char*)arg1->httpcookiedata);
-      if (arg2) {
-        arg1->httpcookiedata = (char *) malloc(strlen(arg2)+1);
-        strcpy((char*)arg1->httpcookiedata,arg2);
-      } else {
-        arg1->httpcookiedata = 0;
-      }
-    }
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_httpcookiedata_get) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_httpcookiedata_get(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_httpcookiedata_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (char *) ((arg1)->httpcookiedata);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_new_OWSRequest) {
-  {
-    int argvi = 0;
-    cgiRequestObj *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: new_OWSRequest();");
-    }
-    result = (cgiRequestObj *)new_cgiRequestObj();
-    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cgiRequestObj, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_delete_OWSRequest) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: delete_OWSRequest(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, SWIG_POINTER_DISOWN |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OWSRequest" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    delete_cgiRequestObj(arg1);
-    ST(argvi) = sv_newmortal();
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_loadParams) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 1) || (items > 1)) {
-      SWIG_croak("Usage: OWSRequest_loadParams(self);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_loadParams" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    result = (int)cgiRequestObj_loadParams(arg1);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    XSRETURN(argvi);
-  fail:
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_loadParamsFromURL) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    int result;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_loadParamsFromURL(self,url);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_loadParamsFromURL" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_loadParamsFromURL" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (int)cgiRequestObj_loadParamsFromURL(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_setParameter) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: OWSRequest_setParameter(self,name,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_setParameter" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_setParameter" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OWSRequest_setParameter" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    cgiRequestObj_setParameter(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_addParameter) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    char *arg3 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int res3 ;
-    char *buf3 = 0 ;
-    int alloc3 = 0 ;
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 3) || (items > 3)) {
-      SWIG_croak("Usage: OWSRequest_addParameter(self,name,value);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_addParameter" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_addParameter" "', argument " "2"" of type '" "char *""'");
-    }
-    arg2 = (char *)(buf2);
-    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OWSRequest_addParameter" "', argument " "3"" of type '" "char *""'");
-    }
-    arg3 = (char *)(buf3);
-    cgiRequestObj_addParameter(arg1,arg2,arg3);
-    ST(argvi) = sv_newmortal();
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_getName) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_getName(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getName" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_getName" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)cgiRequestObj_getName(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_getValue) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    int arg2 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int val2 ;
-    int ecode2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_getValue(self,index);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getValue" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_getValue" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-    result = (char *)cgiRequestObj_getValue(arg1,arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    
-    XSRETURN(argvi);
-  fail:
-    
-    
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_OWSRequest_getValueByName) {
-  {
-    cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-    char *arg2 = (char *) 0 ;
-    void *argp1 = 0 ;
-    int res1 = 0 ;
-    int res2 ;
-    char *buf2 = 0 ;
-    int alloc2 = 0 ;
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 2) || (items > 2)) {
-      SWIG_croak("Usage: OWSRequest_getValueByName(self,name);");
-    }
-    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getValueByName" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-    }
-    arg1 = (cgiRequestObj *)(argp1);
-    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_getValueByName" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-    result = (char *)cgiRequestObj_getValueByName(arg1,(char const *)arg2);
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    XSRETURN(argvi);
-  fail:
-    
-    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msConnPoolCloseUnreferenced) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msConnPoolCloseUnreferenced();");
-    }
-    msConnPoolCloseUnreferenced();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_resetHandlers) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_resetHandlers();");
-    }
-    msIO_resetHandlers();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_installStdoutToBuffer) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_installStdoutToBuffer();");
-    }
-    msIO_installStdoutToBuffer();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_installStdinFromBuffer) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_installStdinFromBuffer();");
-    }
-    msIO_installStdinFromBuffer();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_stripStdoutBufferContentType) {
-  {
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_stripStdoutBufferContentType();");
-    }
-    result = (char *)msIO_stripStdoutBufferContentType();
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    free((char*)result);
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_stripStdoutBufferContentHeaders) {
-  {
-    int argvi = 0;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_stripStdoutBufferContentHeaders();");
-    }
-    msIO_stripStdoutBufferContentHeaders();
-    ST(argvi) = sv_newmortal();
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_getStdoutBufferString) {
-  {
-    int argvi = 0;
-    char *result = 0 ;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_getStdoutBufferString();");
-    }
-    result = (char *)msIO_getStdoutBufferString();
-    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-XS(_wrap_msIO_getStdoutBufferBytes) {
-  {
-    int argvi = 0;
-    gdBuffer result;
-    dXSARGS;
-    
-    if ((items < 0) || (items > 0)) {
-      SWIG_croak("Usage: msIO_getStdoutBufferBytes();");
-    }
-    result = msIO_getStdoutBufferBytes();
-    {
-      SV *mysv;
-      mysv = sv_newmortal();
-      if ((&result)->data == NULL)
-      sv_setpv(mysv,"");
-      else
-      sv_setpvn(mysv,(const char*)(&result)->data,(&result)->size);
-      ST(argvi) = newRV(mysv);
-      sv_2mortal(ST(argvi));
-      argvi++;
-      if( (&result)->owns_data )
-      msFree((&result)->data);
-    }
-    XSRETURN(argvi);
-  fail:
-    SWIG_croak_null();
-  }
-}
-
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static void *_p_intarrayTo_p_int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
-    return (void *)((int *)  ((intarray *) x));
-}
-static swig_type_info _swigt__p_DBFFieldType = {"_p_DBFFieldType", "enum DBFFieldType *|DBFFieldType *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_DBFInfo = {"_p_DBFInfo", "DBFInfo *", 0, 0, (void*)"mapscript::DBFInfo", 0};
-static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_cgiRequestObj = {"_p_cgiRequestObj", "cgiRequestObj *", 0, 0, (void*)"mapscript::OWSRequest", 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_classObj = {"_p_classObj", "classObj *|struct classObj *", 0, 0, (void*)"mapscript::classObj", 0};
-static swig_type_info _swigt__p_clusterObj = {"_p_clusterObj", "clusterObj *", 0, 0, (void*)"mapscript::clusterObj", 0};
-static swig_type_info _swigt__p_colorObj = {"_p_colorObj", "colorObj *", 0, 0, (void*)"mapscript::colorObj", 0};
-static swig_type_info _swigt__p_debugLevel = {"_p_debugLevel", "enum debugLevel *|debugLevel *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_errorObj = {"_p_errorObj", "struct errorObj *|errorObj *", 0, 0, (void*)"mapscript::errorObj", 0};
-static swig_type_info _swigt__p_fontSetObj = {"_p_fontSetObj", "fontSetObj *", 0, 0, (void*)"mapscript::fontSetObj", 0};
-static swig_type_info _swigt__p_hashTableObj = {"_p_hashTableObj", "hashTableObj *", 0, 0, (void*)"mapscript::hashTableObj", 0};
-static swig_type_info _swigt__p_imageObj = {"_p_imageObj", "imageObj *|struct imageObj *", 0, 0, (void*)"mapscript::imageObj", 0};
-static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *|ms_int32 *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_intarray = {"_p_intarray", "intarray *", 0, 0, (void*)"mapscript::intarray", 0};
-static swig_type_info _swigt__p_labelCacheMemberObj = {"_p_labelCacheMemberObj", "labelCacheMemberObj *", 0, 0, (void*)"mapscript::labelCacheMemberObj", 0};
-static swig_type_info _swigt__p_labelCacheObj = {"_p_labelCacheObj", "labelCacheObj *", 0, 0, (void*)"mapscript::labelCacheObj", 0};
-static swig_type_info _swigt__p_labelCacheSlotObj = {"_p_labelCacheSlotObj", "labelCacheSlotObj *", 0, 0, (void*)"mapscript::labelCacheSlotObj", 0};
-static swig_type_info _swigt__p_labelLeaderObj = {"_p_labelLeaderObj", "labelLeaderObj *", 0, 0, (void*)"mapscript::labelLeaderObj", 0};
-static swig_type_info _swigt__p_labelObj = {"_p_labelObj", "struct labelObj *|labelObj *", 0, 0, (void*)"mapscript::labelObj", 0};
-static swig_type_info _swigt__p_labelStyleObj = {"_p_labelStyleObj", "labelStyleObj *", 0, 0, (void*)"mapscript::labelStyleObj", 0};
-static swig_type_info _swigt__p_layerObj = {"_p_layerObj", "struct layerObj *|layerObj *", 0, 0, (void*)"mapscript::layerObj", 0};
-static swig_type_info _swigt__p_legendObj = {"_p_legendObj", "legendObj *", 0, 0, (void*)"mapscript::legendObj", 0};
-static swig_type_info _swigt__p_lineObj = {"_p_lineObj", "lineObj *|multipointObj *", 0, 0, (void*)"mapscript::lineObj", 0};
-static swig_type_info _swigt__p_mapObj = {"_p_mapObj", "struct mapObj *|mapObj *", 0, 0, (void*)"mapscript::mapObj", 0};
-static swig_type_info _swigt__p_markerCacheMemberObj = {"_p_markerCacheMemberObj", "markerCacheMemberObj *", 0, 0, (void*)"mapscript::markerCacheMemberObj", 0};
-static swig_type_info _swigt__p_outputFormatObj = {"_p_outputFormatObj", "outputFormatObj *", 0, 0, (void*)"mapscript::outputFormatObj", 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pointObj = {"_p_pointObj", "pointObj *", 0, 0, (void*)"mapscript::pointObj", 0};
-static swig_type_info _swigt__p_projectionObj = {"_p_projectionObj", "projectionObj *", 0, 0, (void*)"mapscript::projectionObj", 0};
-static swig_type_info _swigt__p_queryMapObj = {"_p_queryMapObj", "queryMapObj *", 0, 0, (void*)"mapscript::queryMapObj", 0};
-static swig_type_info _swigt__p_rectObj = {"_p_rectObj", "rectObj *", 0, 0, (void*)"mapscript::rectObj", 0};
-static swig_type_info _swigt__p_referenceMapObj = {"_p_referenceMapObj", "referenceMapObj *", 0, 0, (void*)"mapscript::referenceMapObj", 0};
-static swig_type_info _swigt__p_rendererVTableObj = {"_p_rendererVTableObj", "struct rendererVTableObj *|rendererVTableObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_resultCacheObj = {"_p_resultCacheObj", "resultCacheObj *", 0, 0, (void*)"mapscript::resultCacheObj", 0};
-static swig_type_info _swigt__p_resultObj = {"_p_resultObj", "resultObj *", 0, 0, (void*)"mapscript::resultObj", 0};
-static swig_type_info _swigt__p_scaleTokenEntryObj = {"_p_scaleTokenEntryObj", "scaleTokenEntryObj *", 0, 0, (void*)"mapscript::scaleTokenEntryObj", 0};
-static swig_type_info _swigt__p_scaleTokenObj = {"_p_scaleTokenObj", "scaleTokenObj *", 0, 0, (void*)"mapscript::scaleTokenObj", 0};
-static swig_type_info _swigt__p_scalebarObj = {"_p_scalebarObj", "scalebarObj *", 0, 0, (void*)"mapscript::scalebarObj", 0};
-static swig_type_info _swigt__p_shapeObj = {"_p_shapeObj", "shapeObj *", 0, 0, (void*)"mapscript::shapeObj", 0};
-static swig_type_info _swigt__p_shapefileObj = {"_p_shapefileObj", "shapefileObj *", 0, 0, (void*)"mapscript::shapefileObj", 0};
-static swig_type_info _swigt__p_strokeStyleObj = {"_p_strokeStyleObj", "strokeStyleObj *", 0, 0, (void*)"mapscript::strokeStyleObj", 0};
-static swig_type_info _swigt__p_styleObj = {"_p_styleObj", "struct styleObj *|styleObj *", 0, 0, (void*)"mapscript::styleObj", 0};
-static swig_type_info _swigt__p_symbolObj = {"_p_symbolObj", "symbolObj *|struct symbolObj *", 0, 0, (void*)"mapscript::symbolObj", 0};
-static swig_type_info _swigt__p_symbolSetObj = {"_p_symbolSetObj", "symbolSetObj *", 0, 0, (void*)"mapscript::symbolSetObj", 0};
-static swig_type_info _swigt__p_symbolStyleObj = {"_p_symbolStyleObj", "symbolStyleObj *", 0, 0, (void*)"mapscript::symbolStyleObj", 0};
-static swig_type_info _swigt__p_tileCacheObj = {"_p_tileCacheObj", "struct tileCacheObj *|tileCacheObj *", 0, 0, (void*)"mapscript::tileCacheObj", 0};
-static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *|ms_uint32 *|ms_bitarray", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_webObj = {"_p_webObj", "webObj *", 0, 0, (void*)"mapscript::webObj", 0};
-
-static swig_type_info *swig_type_initial[] = {
-  &_swigt__p_DBFFieldType,
-  &_swigt__p_DBFInfo,
-  &_swigt__p_FILE,
-  &_swigt__p_cgiRequestObj,
-  &_swigt__p_char,
-  &_swigt__p_classObj,
-  &_swigt__p_clusterObj,
-  &_swigt__p_colorObj,
-  &_swigt__p_debugLevel,
-  &_swigt__p_double,
-  &_swigt__p_errorObj,
-  &_swigt__p_fontSetObj,
-  &_swigt__p_hashTableObj,
-  &_swigt__p_imageObj,
-  &_swigt__p_int,
-  &_swigt__p_int32_t,
-  &_swigt__p_intarray,
-  &_swigt__p_labelCacheMemberObj,
-  &_swigt__p_labelCacheObj,
-  &_swigt__p_labelCacheSlotObj,
-  &_swigt__p_labelLeaderObj,
-  &_swigt__p_labelObj,
-  &_swigt__p_labelStyleObj,
-  &_swigt__p_layerObj,
-  &_swigt__p_legendObj,
-  &_swigt__p_lineObj,
-  &_swigt__p_mapObj,
-  &_swigt__p_markerCacheMemberObj,
-  &_swigt__p_outputFormatObj,
-  &_swigt__p_p_char,
-  &_swigt__p_pointObj,
-  &_swigt__p_projectionObj,
-  &_swigt__p_queryMapObj,
-  &_swigt__p_rectObj,
-  &_swigt__p_referenceMapObj,
-  &_swigt__p_rendererVTableObj,
-  &_swigt__p_resultCacheObj,
-  &_swigt__p_resultObj,
-  &_swigt__p_scaleTokenEntryObj,
-  &_swigt__p_scaleTokenObj,
-  &_swigt__p_scalebarObj,
-  &_swigt__p_shapeObj,
-  &_swigt__p_shapefileObj,
-  &_swigt__p_strokeStyleObj,
-  &_swigt__p_styleObj,
-  &_swigt__p_symbolObj,
-  &_swigt__p_symbolSetObj,
-  &_swigt__p_symbolStyleObj,
-  &_swigt__p_tileCacheObj,
-  &_swigt__p_uint32_t,
-  &_swigt__p_webObj,
-};
-
-static swig_cast_info _swigc__p_DBFFieldType[] = {  {&_swigt__p_DBFFieldType, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_DBFInfo[] = {  {&_swigt__p_DBFInfo, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_cgiRequestObj[] = {  {&_swigt__p_cgiRequestObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_classObj[] = {  {&_swigt__p_classObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_clusterObj[] = {  {&_swigt__p_clusterObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_colorObj[] = {  {&_swigt__p_colorObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_debugLevel[] = {  {&_swigt__p_debugLevel, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_errorObj[] = {  {&_swigt__p_errorObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_fontSetObj[] = {  {&_swigt__p_fontSetObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_hashTableObj[] = {  {&_swigt__p_hashTableObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_imageObj[] = {  {&_swigt__p_imageObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},  {&_swigt__p_intarray, _p_intarrayTo_p_int, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int32_t[] = {  {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_intarray[] = {  {&_swigt__p_intarray, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheMemberObj[] = {  {&_swigt__p_labelCacheMemberObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheObj[] = {  {&_swigt__p_labelCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheSlotObj[] = {  {&_swigt__p_labelCacheSlotObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelLeaderObj[] = {  {&_swigt__p_labelLeaderObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelObj[] = {  {&_swigt__p_labelObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelStyleObj[] = {  {&_swigt__p_labelStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_layerObj[] = {  {&_swigt__p_layerObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_legendObj[] = {  {&_swigt__p_legendObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_lineObj[] = {  {&_swigt__p_lineObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_mapObj[] = {  {&_swigt__p_mapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_markerCacheMemberObj[] = {  {&_swigt__p_markerCacheMemberObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_outputFormatObj[] = {  {&_swigt__p_outputFormatObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_pointObj[] = {  {&_swigt__p_pointObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_projectionObj[] = {  {&_swigt__p_projectionObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_queryMapObj[] = {  {&_swigt__p_queryMapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_rectObj[] = {  {&_swigt__p_rectObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_referenceMapObj[] = {  {&_swigt__p_referenceMapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_rendererVTableObj[] = {  {&_swigt__p_rendererVTableObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_resultCacheObj[] = {  {&_swigt__p_resultCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_resultObj[] = {  {&_swigt__p_resultObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scaleTokenEntryObj[] = {  {&_swigt__p_scaleTokenEntryObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scaleTokenObj[] = {  {&_swigt__p_scaleTokenObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scalebarObj[] = {  {&_swigt__p_scalebarObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_shapeObj[] = {  {&_swigt__p_shapeObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_shapefileObj[] = {  {&_swigt__p_shapefileObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_strokeStyleObj[] = {  {&_swigt__p_strokeStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_styleObj[] = {  {&_swigt__p_styleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolObj[] = {  {&_swigt__p_symbolObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolSetObj[] = {  {&_swigt__p_symbolSetObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolStyleObj[] = {  {&_swigt__p_symbolStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_tileCacheObj[] = {  {&_swigt__p_tileCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_uint32_t[] = {  {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_webObj[] = {  {&_swigt__p_webObj, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
-  _swigc__p_DBFFieldType,
-  _swigc__p_DBFInfo,
-  _swigc__p_FILE,
-  _swigc__p_cgiRequestObj,
-  _swigc__p_char,
-  _swigc__p_classObj,
-  _swigc__p_clusterObj,
-  _swigc__p_colorObj,
-  _swigc__p_debugLevel,
-  _swigc__p_double,
-  _swigc__p_errorObj,
-  _swigc__p_fontSetObj,
-  _swigc__p_hashTableObj,
-  _swigc__p_imageObj,
-  _swigc__p_int,
-  _swigc__p_int32_t,
-  _swigc__p_intarray,
-  _swigc__p_labelCacheMemberObj,
-  _swigc__p_labelCacheObj,
-  _swigc__p_labelCacheSlotObj,
-  _swigc__p_labelLeaderObj,
-  _swigc__p_labelObj,
-  _swigc__p_labelStyleObj,
-  _swigc__p_layerObj,
-  _swigc__p_legendObj,
-  _swigc__p_lineObj,
-  _swigc__p_mapObj,
-  _swigc__p_markerCacheMemberObj,
-  _swigc__p_outputFormatObj,
-  _swigc__p_p_char,
-  _swigc__p_pointObj,
-  _swigc__p_projectionObj,
-  _swigc__p_queryMapObj,
-  _swigc__p_rectObj,
-  _swigc__p_referenceMapObj,
-  _swigc__p_rendererVTableObj,
-  _swigc__p_resultCacheObj,
-  _swigc__p_resultObj,
-  _swigc__p_scaleTokenEntryObj,
-  _swigc__p_scaleTokenObj,
-  _swigc__p_scalebarObj,
-  _swigc__p_shapeObj,
-  _swigc__p_shapefileObj,
-  _swigc__p_strokeStyleObj,
-  _swigc__p_styleObj,
-  _swigc__p_symbolObj,
-  _swigc__p_symbolSetObj,
-  _swigc__p_symbolStyleObj,
-  _swigc__p_tileCacheObj,
-  _swigc__p_uint32_t,
-  _swigc__p_webObj,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-static swig_constant_info swig_constants[] = {
-{0,0,0,0,0,0}
-};
-#ifdef __cplusplus
-}
-#endif
-static swig_variable_info swig_variables[] = {
-{0,0,0,0}
-};
-static swig_command_info swig_commands[] = {
-{"mapscriptc::new_intarray", _wrap_new_intarray},
-{"mapscriptc::delete_intarray", _wrap_delete_intarray},
-{"mapscriptc::intarray_getitem", _wrap_intarray_getitem},
-{"mapscriptc::intarray_setitem", _wrap_intarray_setitem},
-{"mapscriptc::intarray_cast", _wrap_intarray_cast},
-{"mapscriptc::intarray_frompointer", _wrap_intarray_frompointer},
-{"mapscriptc::fontSetObj_filename_get", _wrap_fontSetObj_filename_get},
-{"mapscriptc::fontSetObj_numfonts_get", _wrap_fontSetObj_numfonts_get},
-{"mapscriptc::fontSetObj_fonts_get", _wrap_fontSetObj_fonts_get},
-{"mapscriptc::new_fontSetObj", _wrap_new_fontSetObj},
-{"mapscriptc::delete_fontSetObj", _wrap_delete_fontSetObj},
-{"mapscriptc::clusterObj_maxdistance_set", _wrap_clusterObj_maxdistance_set},
-{"mapscriptc::clusterObj_maxdistance_get", _wrap_clusterObj_maxdistance_get},
-{"mapscriptc::clusterObj_buffer_set", _wrap_clusterObj_buffer_set},
-{"mapscriptc::clusterObj_buffer_get", _wrap_clusterObj_buffer_get},
-{"mapscriptc::clusterObj_region_set", _wrap_clusterObj_region_set},
-{"mapscriptc::clusterObj_region_get", _wrap_clusterObj_region_get},
-{"mapscriptc::clusterObj_updateFromString", _wrap_clusterObj_updateFromString},
-{"mapscriptc::clusterObj_convertToString", _wrap_clusterObj_convertToString},
-{"mapscriptc::clusterObj_setGroup", _wrap_clusterObj_setGroup},
-{"mapscriptc::clusterObj_getGroupString", _wrap_clusterObj_getGroupString},
-{"mapscriptc::clusterObj_setFilter", _wrap_clusterObj_setFilter},
-{"mapscriptc::clusterObj_getFilterString", _wrap_clusterObj_getFilterString},
-{"mapscriptc::new_clusterObj", _wrap_new_clusterObj},
-{"mapscriptc::delete_clusterObj", _wrap_delete_clusterObj},
-{"mapscriptc::outputFormatObj_numformatoptions_get", _wrap_outputFormatObj_numformatoptions_get},
-{"mapscriptc::outputFormatObj_name_set", _wrap_outputFormatObj_name_set},
-{"mapscriptc::outputFormatObj_name_get", _wrap_outputFormatObj_name_get},
-{"mapscriptc::outputFormatObj_mimetype_set", _wrap_outputFormatObj_mimetype_set},
-{"mapscriptc::outputFormatObj_mimetype_get", _wrap_outputFormatObj_mimetype_get},
-{"mapscriptc::outputFormatObj_driver_set", _wrap_outputFormatObj_driver_set},
-{"mapscriptc::outputFormatObj_driver_get", _wrap_outputFormatObj_driver_get},
-{"mapscriptc::outputFormatObj_extension_set", _wrap_outputFormatObj_extension_set},
-{"mapscriptc::outputFormatObj_extension_get", _wrap_outputFormatObj_extension_get},
-{"mapscriptc::outputFormatObj_renderer_set", _wrap_outputFormatObj_renderer_set},
-{"mapscriptc::outputFormatObj_renderer_get", _wrap_outputFormatObj_renderer_get},
-{"mapscriptc::outputFormatObj_imagemode_set", _wrap_outputFormatObj_imagemode_set},
-{"mapscriptc::outputFormatObj_imagemode_get", _wrap_outputFormatObj_imagemode_get},
-{"mapscriptc::outputFormatObj_transparent_set", _wrap_outputFormatObj_transparent_set},
-{"mapscriptc::outputFormatObj_transparent_get", _wrap_outputFormatObj_transparent_get},
-{"mapscriptc::outputFormatObj_bands_set", _wrap_outputFormatObj_bands_set},
-{"mapscriptc::outputFormatObj_bands_get", _wrap_outputFormatObj_bands_get},
-{"mapscriptc::outputFormatObj_inmapfile_set", _wrap_outputFormatObj_inmapfile_set},
-{"mapscriptc::outputFormatObj_inmapfile_get", _wrap_outputFormatObj_inmapfile_get},
-{"mapscriptc::new_outputFormatObj", _wrap_new_outputFormatObj},
-{"mapscriptc::delete_outputFormatObj", _wrap_delete_outputFormatObj},
-{"mapscriptc::outputFormatObj_setExtension", _wrap_outputFormatObj_setExtension},
-{"mapscriptc::outputFormatObj_setMimetype", _wrap_outputFormatObj_setMimetype},
-{"mapscriptc::outputFormatObj_setOption", _wrap_outputFormatObj_setOption},
-{"mapscriptc::outputFormatObj_validate", _wrap_outputFormatObj_validate},
-{"mapscriptc::outputFormatObj_getOption", _wrap_outputFormatObj_getOption},
-{"mapscriptc::outputFormatObj_getOptionAt", _wrap_outputFormatObj_getOptionAt},
-{"mapscriptc::outputFormatObj_attachDevice", _wrap_outputFormatObj_attachDevice},
-{"mapscriptc::queryMapObj_height_set", _wrap_queryMapObj_height_set},
-{"mapscriptc::queryMapObj_height_get", _wrap_queryMapObj_height_get},
-{"mapscriptc::queryMapObj_width_set", _wrap_queryMapObj_width_set},
-{"mapscriptc::queryMapObj_width_get", _wrap_queryMapObj_width_get},
-{"mapscriptc::queryMapObj_status_set", _wrap_queryMapObj_status_set},
-{"mapscriptc::queryMapObj_status_get", _wrap_queryMapObj_status_get},
-{"mapscriptc::queryMapObj_style_set", _wrap_queryMapObj_style_set},
-{"mapscriptc::queryMapObj_style_get", _wrap_queryMapObj_style_get},
-{"mapscriptc::queryMapObj_color_set", _wrap_queryMapObj_color_set},
-{"mapscriptc::queryMapObj_color_get", _wrap_queryMapObj_color_get},
-{"mapscriptc::queryMapObj_updateFromString", _wrap_queryMapObj_updateFromString},
-{"mapscriptc::queryMapObj_convertToString", _wrap_queryMapObj_convertToString},
-{"mapscriptc::new_queryMapObj", _wrap_new_queryMapObj},
-{"mapscriptc::delete_queryMapObj", _wrap_delete_queryMapObj},
-{"mapscriptc::webObj_log_set", _wrap_webObj_log_set},
-{"mapscriptc::webObj_log_get", _wrap_webObj_log_get},
-{"mapscriptc::webObj_imagepath_set", _wrap_webObj_imagepath_set},
-{"mapscriptc::webObj_imagepath_get", _wrap_webObj_imagepath_get},
-{"mapscriptc::webObj_imageurl_set", _wrap_webObj_imageurl_set},
-{"mapscriptc::webObj_imageurl_get", _wrap_webObj_imageurl_get},
-{"mapscriptc::webObj_temppath_set", _wrap_webObj_temppath_set},
-{"mapscriptc::webObj_temppath_get", _wrap_webObj_temppath_get},
-{"mapscriptc::webObj_map_get", _wrap_webObj_map_get},
-{"mapscriptc::webObj_template_set", _wrap_webObj_template_set},
-{"mapscriptc::webObj_template_get", _wrap_webObj_template_get},
-{"mapscriptc::webObj_header_set", _wrap_webObj_header_set},
-{"mapscriptc::webObj_header_get", _wrap_webObj_header_get},
-{"mapscriptc::webObj_footer_set", _wrap_webObj_footer_set},
-{"mapscriptc::webObj_footer_get", _wrap_webObj_footer_get},
-{"mapscriptc::webObj_empty_set", _wrap_webObj_empty_set},
-{"mapscriptc::webObj_empty_get", _wrap_webObj_empty_get},
-{"mapscriptc::webObj_error_set", _wrap_webObj_error_set},
-{"mapscriptc::webObj_error_get", _wrap_webObj_error_get},
-{"mapscriptc::webObj_extent_set", _wrap_webObj_extent_set},
-{"mapscriptc::webObj_extent_get", _wrap_webObj_extent_get},
-{"mapscriptc::webObj_minscaledenom_set", _wrap_webObj_minscaledenom_set},
-{"mapscriptc::webObj_minscaledenom_get", _wrap_webObj_minscaledenom_get},
-{"mapscriptc::webObj_maxscaledenom_set", _wrap_webObj_maxscaledenom_set},
-{"mapscriptc::webObj_maxscaledenom_get", _wrap_webObj_maxscaledenom_get},
-{"mapscriptc::webObj_mintemplate_set", _wrap_webObj_mintemplate_set},
-{"mapscriptc::webObj_mintemplate_get", _wrap_webObj_mintemplate_get},
-{"mapscriptc::webObj_maxtemplate_set", _wrap_webObj_maxtemplate_set},
-{"mapscriptc::webObj_maxtemplate_get", _wrap_webObj_maxtemplate_get},
-{"mapscriptc::webObj_queryformat_set", _wrap_webObj_queryformat_set},
-{"mapscriptc::webObj_queryformat_get", _wrap_webObj_queryformat_get},
-{"mapscriptc::webObj_legendformat_set", _wrap_webObj_legendformat_set},
-{"mapscriptc::webObj_legendformat_get", _wrap_webObj_legendformat_get},
-{"mapscriptc::webObj_browseformat_set", _wrap_webObj_browseformat_set},
-{"mapscriptc::webObj_browseformat_get", _wrap_webObj_browseformat_get},
-{"mapscriptc::webObj_metadata_get", _wrap_webObj_metadata_get},
-{"mapscriptc::webObj_validation_get", _wrap_webObj_validation_get},
-{"mapscriptc::new_webObj", _wrap_new_webObj},
-{"mapscriptc::delete_webObj", _wrap_delete_webObj},
-{"mapscriptc::webObj_updateFromString", _wrap_webObj_updateFromString},
-{"mapscriptc::webObj_convertToString", _wrap_webObj_convertToString},
-{"mapscriptc::styleObj_refcount_get", _wrap_styleObj_refcount_get},
-{"mapscriptc::styleObj_autoangle_set", _wrap_styleObj_autoangle_set},
-{"mapscriptc::styleObj_autoangle_get", _wrap_styleObj_autoangle_get},
-{"mapscriptc::styleObj_color_set", _wrap_styleObj_color_set},
-{"mapscriptc::styleObj_color_get", _wrap_styleObj_color_get},
-{"mapscriptc::styleObj_backgroundcolor_set", _wrap_styleObj_backgroundcolor_set},
-{"mapscriptc::styleObj_backgroundcolor_get", _wrap_styleObj_backgroundcolor_get},
-{"mapscriptc::styleObj_outlinecolor_set", _wrap_styleObj_outlinecolor_set},
-{"mapscriptc::styleObj_outlinecolor_get", _wrap_styleObj_outlinecolor_get},
-{"mapscriptc::styleObj_opacity_set", _wrap_styleObj_opacity_set},
-{"mapscriptc::styleObj_opacity_get", _wrap_styleObj_opacity_get},
-{"mapscriptc::styleObj_mincolor_set", _wrap_styleObj_mincolor_set},
-{"mapscriptc::styleObj_mincolor_get", _wrap_styleObj_mincolor_get},
-{"mapscriptc::styleObj_maxcolor_set", _wrap_styleObj_maxcolor_set},
-{"mapscriptc::styleObj_maxcolor_get", _wrap_styleObj_maxcolor_get},
-{"mapscriptc::styleObj_minvalue_set", _wrap_styleObj_minvalue_set},
-{"mapscriptc::styleObj_minvalue_get", _wrap_styleObj_minvalue_get},
-{"mapscriptc::styleObj_maxvalue_set", _wrap_styleObj_maxvalue_set},
-{"mapscriptc::styleObj_maxvalue_get", _wrap_styleObj_maxvalue_get},
-{"mapscriptc::styleObj_rangeitem_set", _wrap_styleObj_rangeitem_set},
-{"mapscriptc::styleObj_rangeitem_get", _wrap_styleObj_rangeitem_get},
-{"mapscriptc::styleObj_rangeitemindex_set", _wrap_styleObj_rangeitemindex_set},
-{"mapscriptc::styleObj_rangeitemindex_get", _wrap_styleObj_rangeitemindex_get},
-{"mapscriptc::styleObj_symbol_set", _wrap_styleObj_symbol_set},
-{"mapscriptc::styleObj_symbol_get", _wrap_styleObj_symbol_get},
-{"mapscriptc::styleObj_symbolname_set", _wrap_styleObj_symbolname_set},
-{"mapscriptc::styleObj_symbolname_get", _wrap_styleObj_symbolname_get},
-{"mapscriptc::styleObj_size_set", _wrap_styleObj_size_set},
-{"mapscriptc::styleObj_size_get", _wrap_styleObj_size_get},
-{"mapscriptc::styleObj_minsize_set", _wrap_styleObj_minsize_set},
-{"mapscriptc::styleObj_minsize_get", _wrap_styleObj_minsize_get},
-{"mapscriptc::styleObj_maxsize_set", _wrap_styleObj_maxsize_set},
-{"mapscriptc::styleObj_maxsize_get", _wrap_styleObj_maxsize_get},
-{"mapscriptc::styleObj_patternlength_set", _wrap_styleObj_patternlength_set},
-{"mapscriptc::styleObj_patternlength_get", _wrap_styleObj_patternlength_get},
-{"mapscriptc::styleObj_pattern_set", _wrap_styleObj_pattern_set},
-{"mapscriptc::styleObj_pattern_get", _wrap_styleObj_pattern_get},
-{"mapscriptc::styleObj_gap_set", _wrap_styleObj_gap_set},
-{"mapscriptc::styleObj_gap_get", _wrap_styleObj_gap_get},
-{"mapscriptc::styleObj_initialgap_set", _wrap_styleObj_initialgap_set},
-{"mapscriptc::styleObj_initialgap_get", _wrap_styleObj_initialgap_get},
-{"mapscriptc::styleObj_position_set", _wrap_styleObj_position_set},
-{"mapscriptc::styleObj_position_get", _wrap_styleObj_position_get},
-{"mapscriptc::styleObj_linecap_set", _wrap_styleObj_linecap_set},
-{"mapscriptc::styleObj_linecap_get", _wrap_styleObj_linecap_get},
-{"mapscriptc::styleObj_linejoin_set", _wrap_styleObj_linejoin_set},
-{"mapscriptc::styleObj_linejoin_get", _wrap_styleObj_linejoin_get},
-{"mapscriptc::styleObj_linejoinmaxsize_set", _wrap_styleObj_linejoinmaxsize_set},
-{"mapscriptc::styleObj_linejoinmaxsize_get", _wrap_styleObj_linejoinmaxsize_get},
-{"mapscriptc::styleObj_width_set", _wrap_styleObj_width_set},
-{"mapscriptc::styleObj_width_get", _wrap_styleObj_width_get},
-{"mapscriptc::styleObj_outlinewidth_set", _wrap_styleObj_outlinewidth_set},
-{"mapscriptc::styleObj_outlinewidth_get", _wrap_styleObj_outlinewidth_get},
-{"mapscriptc::styleObj_minwidth_set", _wrap_styleObj_minwidth_set},
-{"mapscriptc::styleObj_minwidth_get", _wrap_styleObj_minwidth_get},
-{"mapscriptc::styleObj_maxwidth_set", _wrap_styleObj_maxwidth_set},
-{"mapscriptc::styleObj_maxwidth_get", _wrap_styleObj_maxwidth_get},
-{"mapscriptc::styleObj_offsetx_set", _wrap_styleObj_offsetx_set},
-{"mapscriptc::styleObj_offsetx_get", _wrap_styleObj_offsetx_get},
-{"mapscriptc::styleObj_offsety_set", _wrap_styleObj_offsety_set},
-{"mapscriptc::styleObj_offsety_get", _wrap_styleObj_offsety_get},
-{"mapscriptc::styleObj_polaroffsetpixel_set", _wrap_styleObj_polaroffsetpixel_set},
-{"mapscriptc::styleObj_polaroffsetpixel_get", _wrap_styleObj_polaroffsetpixel_get},
-{"mapscriptc::styleObj_polaroffsetangle_set", _wrap_styleObj_polaroffsetangle_set},
-{"mapscriptc::styleObj_polaroffsetangle_get", _wrap_styleObj_polaroffsetangle_get},
-{"mapscriptc::styleObj_angle_set", _wrap_styleObj_angle_set},
-{"mapscriptc::styleObj_angle_get", _wrap_styleObj_angle_get},
-{"mapscriptc::styleObj_antialias_set", _wrap_styleObj_antialias_set},
-{"mapscriptc::styleObj_antialias_get", _wrap_styleObj_antialias_get},
-{"mapscriptc::styleObj_minscaledenom_set", _wrap_styleObj_minscaledenom_set},
-{"mapscriptc::styleObj_minscaledenom_get", _wrap_styleObj_minscaledenom_get},
-{"mapscriptc::styleObj_maxscaledenom_set", _wrap_styleObj_maxscaledenom_set},
-{"mapscriptc::styleObj_maxscaledenom_get", _wrap_styleObj_maxscaledenom_get},
-{"mapscriptc::new_styleObj", _wrap_new_styleObj},
-{"mapscriptc::delete_styleObj", _wrap_delete_styleObj},
-{"mapscriptc::styleObj_updateFromString", _wrap_styleObj_updateFromString},
-{"mapscriptc::styleObj_convertToString", _wrap_styleObj_convertToString},
-{"mapscriptc::styleObj_clone", _wrap_styleObj_clone},
-{"mapscriptc::styleObj_setSymbolByName", _wrap_styleObj_setSymbolByName},
-{"mapscriptc::styleObj_removeBinding", _wrap_styleObj_removeBinding},
-{"mapscriptc::styleObj_setBinding", _wrap_styleObj_setBinding},
-{"mapscriptc::styleObj_getBinding", _wrap_styleObj_getBinding},
-{"mapscriptc::styleObj_getGeomTransform", _wrap_styleObj_getGeomTransform},
-{"mapscriptc::styleObj_setGeomTransform", _wrap_styleObj_setGeomTransform},
-{"mapscriptc::labelLeaderObj_maxdistance_set", _wrap_labelLeaderObj_maxdistance_set},
-{"mapscriptc::labelLeaderObj_maxdistance_get", _wrap_labelLeaderObj_maxdistance_get},
-{"mapscriptc::labelLeaderObj_gridstep_set", _wrap_labelLeaderObj_gridstep_set},
-{"mapscriptc::labelLeaderObj_gridstep_get", _wrap_labelLeaderObj_gridstep_get},
-{"mapscriptc::labelLeaderObj_numstyles_get", _wrap_labelLeaderObj_numstyles_get},
-{"mapscriptc::new_labelLeaderObj", _wrap_new_labelLeaderObj},
-{"mapscriptc::delete_labelLeaderObj", _wrap_delete_labelLeaderObj},
-{"mapscriptc::labelObj_refcount_get", _wrap_labelObj_refcount_get},
-{"mapscriptc::labelObj_font_set", _wrap_labelObj_font_set},
-{"mapscriptc::labelObj_font_get", _wrap_labelObj_font_get},
-{"mapscriptc::labelObj_type_set", _wrap_labelObj_type_set},
-{"mapscriptc::labelObj_type_get", _wrap_labelObj_type_get},
-{"mapscriptc::labelObj_color_set", _wrap_labelObj_color_set},
-{"mapscriptc::labelObj_color_get", _wrap_labelObj_color_get},
-{"mapscriptc::labelObj_outlinecolor_set", _wrap_labelObj_outlinecolor_set},
-{"mapscriptc::labelObj_outlinecolor_get", _wrap_labelObj_outlinecolor_get},
-{"mapscriptc::labelObj_outlinewidth_set", _wrap_labelObj_outlinewidth_set},
-{"mapscriptc::labelObj_outlinewidth_get", _wrap_labelObj_outlinewidth_get},
-{"mapscriptc::labelObj_shadowcolor_set", _wrap_labelObj_shadowcolor_set},
-{"mapscriptc::labelObj_shadowcolor_get", _wrap_labelObj_shadowcolor_get},
-{"mapscriptc::labelObj_shadowsizex_set", _wrap_labelObj_shadowsizex_set},
-{"mapscriptc::labelObj_shadowsizex_get", _wrap_labelObj_shadowsizex_get},
-{"mapscriptc::labelObj_shadowsizey_set", _wrap_labelObj_shadowsizey_set},
-{"mapscriptc::labelObj_shadowsizey_get", _wrap_labelObj_shadowsizey_get},
-{"mapscriptc::labelObj_size_set", _wrap_labelObj_size_set},
-{"mapscriptc::labelObj_size_get", _wrap_labelObj_size_get},
-{"mapscriptc::labelObj_minsize_set", _wrap_labelObj_minsize_set},
-{"mapscriptc::labelObj_minsize_get", _wrap_labelObj_minsize_get},
-{"mapscriptc::labelObj_maxsize_set", _wrap_labelObj_maxsize_set},
-{"mapscriptc::labelObj_maxsize_get", _wrap_labelObj_maxsize_get},
-{"mapscriptc::labelObj_position_set", _wrap_labelObj_position_set},
-{"mapscriptc::labelObj_position_get", _wrap_labelObj_position_get},
-{"mapscriptc::labelObj_offsetx_set", _wrap_labelObj_offsetx_set},
-{"mapscriptc::labelObj_offsetx_get", _wrap_labelObj_offsetx_get},
-{"mapscriptc::labelObj_offsety_set", _wrap_labelObj_offsety_set},
-{"mapscriptc::labelObj_offsety_get", _wrap_labelObj_offsety_get},
-{"mapscriptc::labelObj_angle_set", _wrap_labelObj_angle_set},
-{"mapscriptc::labelObj_angle_get", _wrap_labelObj_angle_get},
-{"mapscriptc::labelObj_anglemode_set", _wrap_labelObj_anglemode_set},
-{"mapscriptc::labelObj_anglemode_get", _wrap_labelObj_anglemode_get},
-{"mapscriptc::labelObj_buffer_set", _wrap_labelObj_buffer_set},
-{"mapscriptc::labelObj_buffer_get", _wrap_labelObj_buffer_get},
-{"mapscriptc::labelObj_antialias_set", _wrap_labelObj_antialias_set},
-{"mapscriptc::labelObj_antialias_get", _wrap_labelObj_antialias_get},
-{"mapscriptc::labelObj_align_set", _wrap_labelObj_align_set},
-{"mapscriptc::labelObj_align_get", _wrap_labelObj_align_get},
-{"mapscriptc::labelObj_wrap_set", _wrap_labelObj_wrap_set},
-{"mapscriptc::labelObj_wrap_get", _wrap_labelObj_wrap_get},
-{"mapscriptc::labelObj_maxlength_set", _wrap_labelObj_maxlength_set},
-{"mapscriptc::labelObj_maxlength_get", _wrap_labelObj_maxlength_get},
-{"mapscriptc::labelObj_minlength_set", _wrap_labelObj_minlength_set},
-{"mapscriptc::labelObj_minlength_get", _wrap_labelObj_minlength_get},
-{"mapscriptc::labelObj_space_size_10_set", _wrap_labelObj_space_size_10_set},
-{"mapscriptc::labelObj_space_size_10_get", _wrap_labelObj_space_size_10_get},
-{"mapscriptc::labelObj_minfeaturesize_set", _wrap_labelObj_minfeaturesize_set},
-{"mapscriptc::labelObj_minfeaturesize_get", _wrap_labelObj_minfeaturesize_get},
-{"mapscriptc::labelObj_autominfeaturesize_set", _wrap_labelObj_autominfeaturesize_set},
-{"mapscriptc::labelObj_autominfeaturesize_get", _wrap_labelObj_autominfeaturesize_get},
-{"mapscriptc::labelObj_minscaledenom_set", _wrap_labelObj_minscaledenom_set},
-{"mapscriptc::labelObj_minscaledenom_get", _wrap_labelObj_minscaledenom_get},
-{"mapscriptc::labelObj_maxscaledenom_set", _wrap_labelObj_maxscaledenom_set},
-{"mapscriptc::labelObj_maxscaledenom_get", _wrap_labelObj_maxscaledenom_get},
-{"mapscriptc::labelObj_mindistance_set", _wrap_labelObj_mindistance_set},
-{"mapscriptc::labelObj_mindistance_get", _wrap_labelObj_mindistance_get},
-{"mapscriptc::labelObj_repeatdistance_set", _wrap_labelObj_repeatdistance_set},
-{"mapscriptc::labelObj_repeatdistance_get", _wrap_labelObj_repeatdistance_get},
-{"mapscriptc::labelObj_maxoverlapangle_set", _wrap_labelObj_maxoverlapangle_set},
-{"mapscriptc::labelObj_maxoverlapangle_get", _wrap_labelObj_maxoverlapangle_get},
-{"mapscriptc::labelObj_partials_set", _wrap_labelObj_partials_set},
-{"mapscriptc::labelObj_partials_get", _wrap_labelObj_partials_get},
-{"mapscriptc::labelObj_force_set", _wrap_labelObj_force_set},
-{"mapscriptc::labelObj_force_get", _wrap_labelObj_force_get},
-{"mapscriptc::labelObj_encoding_set", _wrap_labelObj_encoding_set},
-{"mapscriptc::labelObj_encoding_get", _wrap_labelObj_encoding_get},
-{"mapscriptc::labelObj_priority_set", _wrap_labelObj_priority_set},
-{"mapscriptc::labelObj_priority_get", _wrap_labelObj_priority_get},
-{"mapscriptc::labelObj_status_set", _wrap_labelObj_status_set},
-{"mapscriptc::labelObj_status_get", _wrap_labelObj_status_get},
-{"mapscriptc::labelObj_numstyles_set", _wrap_labelObj_numstyles_set},
-{"mapscriptc::labelObj_numstyles_get", _wrap_labelObj_numstyles_get},
-{"mapscriptc::labelObj_annotext_set", _wrap_labelObj_annotext_set},
-{"mapscriptc::labelObj_annotext_get", _wrap_labelObj_annotext_get},
-{"mapscriptc::labelObj_annopoint_set", _wrap_labelObj_annopoint_set},
-{"mapscriptc::labelObj_annopoint_get", _wrap_labelObj_annopoint_get},
-{"mapscriptc::labelObj_annopoly_set", _wrap_labelObj_annopoly_set},
-{"mapscriptc::labelObj_annopoly_get", _wrap_labelObj_annopoly_get},
-{"mapscriptc::labelObj_leader_set", _wrap_labelObj_leader_set},
-{"mapscriptc::labelObj_leader_get", _wrap_labelObj_leader_get},
-{"mapscriptc::new_labelObj", _wrap_new_labelObj},
-{"mapscriptc::delete_labelObj", _wrap_delete_labelObj},
-{"mapscriptc::labelObj_updateFromString", _wrap_labelObj_updateFromString},
-{"mapscriptc::labelObj_convertToString", _wrap_labelObj_convertToString},
-{"mapscriptc::labelObj_removeBinding", _wrap_labelObj_removeBinding},
-{"mapscriptc::labelObj_getBinding", _wrap_labelObj_getBinding},
-{"mapscriptc::labelObj_setBinding", _wrap_labelObj_setBinding},
-{"mapscriptc::labelObj_setExpression", _wrap_labelObj_setExpression},
-{"mapscriptc::labelObj_getExpressionString", _wrap_labelObj_getExpressionString},
-{"mapscriptc::labelObj_setText", _wrap_labelObj_setText},
-{"mapscriptc::labelObj_getTextString", _wrap_labelObj_getTextString},
-{"mapscriptc::labelObj_getStyle", _wrap_labelObj_getStyle},
-{"mapscriptc::labelObj_insertStyle", _wrap_labelObj_insertStyle},
-{"mapscriptc::labelObj_removeStyle", _wrap_labelObj_removeStyle},
-{"mapscriptc::labelObj_moveStyleUp", _wrap_labelObj_moveStyleUp},
-{"mapscriptc::labelObj_moveStyleDown", _wrap_labelObj_moveStyleDown},
-{"mapscriptc::classObj_status_set", _wrap_classObj_status_set},
-{"mapscriptc::classObj_status_get", _wrap_classObj_status_get},
-{"mapscriptc::classObj_numstyles_get", _wrap_classObj_numstyles_get},
-{"mapscriptc::classObj_numlabels_set", _wrap_classObj_numlabels_set},
-{"mapscriptc::classObj_numlabels_get", _wrap_classObj_numlabels_get},
-{"mapscriptc::classObj_name_set", _wrap_classObj_name_set},
-{"mapscriptc::classObj_name_get", _wrap_classObj_name_get},
-{"mapscriptc::classObj_title_set", _wrap_classObj_title_set},
-{"mapscriptc::classObj_title_get", _wrap_classObj_title_get},
-{"mapscriptc::classObj_template_set", _wrap_classObj_template_set},
-{"mapscriptc::classObj_template_get", _wrap_classObj_template_get},
-{"mapscriptc::classObj_type_set", _wrap_classObj_type_set},
-{"mapscriptc::classObj_type_get", _wrap_classObj_type_get},
-{"mapscriptc::classObj_metadata_get", _wrap_classObj_metadata_get},
-{"mapscriptc::classObj_validation_get", _wrap_classObj_validation_get},
-{"mapscriptc::classObj_minscaledenom_set", _wrap_classObj_minscaledenom_set},
-{"mapscriptc::classObj_minscaledenom_get", _wrap_classObj_minscaledenom_get},
-{"mapscriptc::classObj_maxscaledenom_set", _wrap_classObj_maxscaledenom_set},
-{"mapscriptc::classObj_maxscaledenom_get", _wrap_classObj_maxscaledenom_get},
-{"mapscriptc::classObj_minfeaturesize_set", _wrap_classObj_minfeaturesize_set},
-{"mapscriptc::classObj_minfeaturesize_get", _wrap_classObj_minfeaturesize_get},
-{"mapscriptc::classObj_refcount_get", _wrap_classObj_refcount_get},
-{"mapscriptc::classObj_layer_get", _wrap_classObj_layer_get},
-{"mapscriptc::classObj_debug_set", _wrap_classObj_debug_set},
-{"mapscriptc::classObj_debug_get", _wrap_classObj_debug_get},
-{"mapscriptc::classObj_keyimage_set", _wrap_classObj_keyimage_set},
-{"mapscriptc::classObj_keyimage_get", _wrap_classObj_keyimage_get},
-{"mapscriptc::classObj_group_set", _wrap_classObj_group_set},
-{"mapscriptc::classObj_group_get", _wrap_classObj_group_get},
-{"mapscriptc::classObj_leader_set", _wrap_classObj_leader_set},
-{"mapscriptc::classObj_leader_get", _wrap_classObj_leader_get},
-{"mapscriptc::new_classObj", _wrap_new_classObj},
-{"mapscriptc::delete_classObj", _wrap_delete_classObj},
-{"mapscriptc::classObj_updateFromString", _wrap_classObj_updateFromString},
-{"mapscriptc::classObj_convertToString", _wrap_classObj_convertToString},
-{"mapscriptc::classObj_clone", _wrap_classObj_clone},
-{"mapscriptc::classObj_setExpression", _wrap_classObj_setExpression},
-{"mapscriptc::classObj_getExpressionString", _wrap_classObj_getExpressionString},
-{"mapscriptc::classObj_setText", _wrap_classObj_setText},
-{"mapscriptc::classObj_getTextString", _wrap_classObj_getTextString},
-{"mapscriptc::classObj_getMetaData", _wrap_classObj_getMetaData},
-{"mapscriptc::classObj_setMetaData", _wrap_classObj_setMetaData},
-{"mapscriptc::classObj_getFirstMetaDataKey", _wrap_classObj_getFirstMetaDataKey},
-{"mapscriptc::classObj_getNextMetaDataKey", _wrap_classObj_getNextMetaDataKey},
-{"mapscriptc::classObj_drawLegendIcon", _wrap_classObj_drawLegendIcon},
-{"mapscriptc::classObj_createLegendIcon", _wrap_classObj_createLegendIcon},
-{"mapscriptc::classObj_getLabel", _wrap_classObj_getLabel},
-{"mapscriptc::classObj_addLabel", _wrap_classObj_addLabel},
-{"mapscriptc::classObj_removeLabel", _wrap_classObj_removeLabel},
-{"mapscriptc::classObj_getStyle", _wrap_classObj_getStyle},
-{"mapscriptc::classObj_insertStyle", _wrap_classObj_insertStyle},
-{"mapscriptc::classObj_removeStyle", _wrap_classObj_removeStyle},
-{"mapscriptc::classObj_moveStyleUp", _wrap_classObj_moveStyleUp},
-{"mapscriptc::classObj_moveStyleDown", _wrap_classObj_moveStyleDown},
-{"mapscriptc::labelCacheMemberObj_featuresize_get", _wrap_labelCacheMemberObj_featuresize_get},
-{"mapscriptc::labelCacheMemberObj_styles_get", _wrap_labelCacheMemberObj_styles_get},
-{"mapscriptc::labelCacheMemberObj_numstyles_get", _wrap_labelCacheMemberObj_numstyles_get},
-{"mapscriptc::labelCacheMemberObj_labels_get", _wrap_labelCacheMemberObj_labels_get},
-{"mapscriptc::labelCacheMemberObj_numlabels_get", _wrap_labelCacheMemberObj_numlabels_get},
-{"mapscriptc::labelCacheMemberObj_layerindex_get", _wrap_labelCacheMemberObj_layerindex_get},
-{"mapscriptc::labelCacheMemberObj_classindex_get", _wrap_labelCacheMemberObj_classindex_get},
-{"mapscriptc::labelCacheMemberObj_shapetype_get", _wrap_labelCacheMemberObj_shapetype_get},
-{"mapscriptc::labelCacheMemberObj_point_get", _wrap_labelCacheMemberObj_point_get},
-{"mapscriptc::labelCacheMemberObj_poly_get", _wrap_labelCacheMemberObj_poly_get},
-{"mapscriptc::labelCacheMemberObj_status_get", _wrap_labelCacheMemberObj_status_get},
-{"mapscriptc::labelCacheMemberObj_markerid_get", _wrap_labelCacheMemberObj_markerid_get},
-{"mapscriptc::labelCacheMemberObj_leaderline_get", _wrap_labelCacheMemberObj_leaderline_get},
-{"mapscriptc::labelCacheMemberObj_leaderbbox_get", _wrap_labelCacheMemberObj_leaderbbox_get},
-{"mapscriptc::new_labelCacheMemberObj", _wrap_new_labelCacheMemberObj},
-{"mapscriptc::delete_labelCacheMemberObj", _wrap_delete_labelCacheMemberObj},
-{"mapscriptc::markerCacheMemberObj_id_get", _wrap_markerCacheMemberObj_id_get},
-{"mapscriptc::markerCacheMemberObj_poly_get", _wrap_markerCacheMemberObj_poly_get},
-{"mapscriptc::new_markerCacheMemberObj", _wrap_new_markerCacheMemberObj},
-{"mapscriptc::delete_markerCacheMemberObj", _wrap_delete_markerCacheMemberObj},
-{"mapscriptc::labelCacheSlotObj_labels_get", _wrap_labelCacheSlotObj_labels_get},
-{"mapscriptc::labelCacheSlotObj_numlabels_get", _wrap_labelCacheSlotObj_numlabels_get},
-{"mapscriptc::labelCacheSlotObj_cachesize_get", _wrap_labelCacheSlotObj_cachesize_get},
-{"mapscriptc::labelCacheSlotObj_markers_get", _wrap_labelCacheSlotObj_markers_get},
-{"mapscriptc::labelCacheSlotObj_nummarkers_get", _wrap_labelCacheSlotObj_nummarkers_get},
-{"mapscriptc::labelCacheSlotObj_markercachesize_get", _wrap_labelCacheSlotObj_markercachesize_get},
-{"mapscriptc::new_labelCacheSlotObj", _wrap_new_labelCacheSlotObj},
-{"mapscriptc::delete_labelCacheSlotObj", _wrap_delete_labelCacheSlotObj},
-{"mapscriptc::labelCacheObj_slots_get", _wrap_labelCacheObj_slots_get},
-{"mapscriptc::labelCacheObj_numlabels_get", _wrap_labelCacheObj_numlabels_get},
-{"mapscriptc::labelCacheObj_gutter_get", _wrap_labelCacheObj_gutter_get},
-{"mapscriptc::labelCacheObj_freeCache", _wrap_labelCacheObj_freeCache},
-{"mapscriptc::new_labelCacheObj", _wrap_new_labelCacheObj},
-{"mapscriptc::delete_labelCacheObj", _wrap_delete_labelCacheObj},
-{"mapscriptc::resultObj_shapeindex_get", _wrap_resultObj_shapeindex_get},
-{"mapscriptc::resultObj_tileindex_get", _wrap_resultObj_tileindex_get},
-{"mapscriptc::resultObj_resultindex_get", _wrap_resultObj_resultindex_get},
-{"mapscriptc::resultObj_classindex_get", _wrap_resultObj_classindex_get},
-{"mapscriptc::new_resultObj", _wrap_new_resultObj},
-{"mapscriptc::delete_resultObj", _wrap_delete_resultObj},
-{"mapscriptc::resultCacheObj_numresults_get", _wrap_resultCacheObj_numresults_get},
-{"mapscriptc::resultCacheObj_bounds_get", _wrap_resultCacheObj_bounds_get},
-{"mapscriptc::resultCacheObj_usegetshape_set", _wrap_resultCacheObj_usegetshape_set},
-{"mapscriptc::resultCacheObj_usegetshape_get", _wrap_resultCacheObj_usegetshape_get},
-{"mapscriptc::resultCacheObj_getResult", _wrap_resultCacheObj_getResult},
-{"mapscriptc::new_resultCacheObj", _wrap_new_resultCacheObj},
-{"mapscriptc::delete_resultCacheObj", _wrap_delete_resultCacheObj},
-{"mapscriptc::symbolSetObj_filename_set", _wrap_symbolSetObj_filename_set},
-{"mapscriptc::symbolSetObj_filename_get", _wrap_symbolSetObj_filename_get},
-{"mapscriptc::symbolSetObj_imagecachesize_set", _wrap_symbolSetObj_imagecachesize_set},
-{"mapscriptc::symbolSetObj_imagecachesize_get", _wrap_symbolSetObj_imagecachesize_get},
-{"mapscriptc::symbolSetObj_numsymbols_get", _wrap_symbolSetObj_numsymbols_get},
-{"mapscriptc::symbolSetObj_maxsymbols_get", _wrap_symbolSetObj_maxsymbols_get},
-{"mapscriptc::new_symbolSetObj", _wrap_new_symbolSetObj},
-{"mapscriptc::delete_symbolSetObj", _wrap_delete_symbolSetObj},
-{"mapscriptc::symbolSetObj_getSymbol", _wrap_symbolSetObj_getSymbol},
-{"mapscriptc::symbolSetObj_getSymbolByName", _wrap_symbolSetObj_getSymbolByName},
-{"mapscriptc::symbolSetObj_index", _wrap_symbolSetObj_index},
-{"mapscriptc::symbolSetObj_appendSymbol", _wrap_symbolSetObj_appendSymbol},
-{"mapscriptc::symbolSetObj_removeSymbol", _wrap_symbolSetObj_removeSymbol},
-{"mapscriptc::symbolSetObj_save", _wrap_symbolSetObj_save},
-{"mapscriptc::referenceMapObj_extent_set", _wrap_referenceMapObj_extent_set},
-{"mapscriptc::referenceMapObj_extent_get", _wrap_referenceMapObj_extent_get},
-{"mapscriptc::referenceMapObj_height_set", _wrap_referenceMapObj_height_set},
-{"mapscriptc::referenceMapObj_height_get", _wrap_referenceMapObj_height_get},
-{"mapscriptc::referenceMapObj_width_set", _wrap_referenceMapObj_width_set},
-{"mapscriptc::referenceMapObj_width_get", _wrap_referenceMapObj_width_get},
-{"mapscriptc::referenceMapObj_color_set", _wrap_referenceMapObj_color_set},
-{"mapscriptc::referenceMapObj_color_get", _wrap_referenceMapObj_color_get},
-{"mapscriptc::referenceMapObj_outlinecolor_set", _wrap_referenceMapObj_outlinecolor_set},
-{"mapscriptc::referenceMapObj_outlinecolor_get", _wrap_referenceMapObj_outlinecolor_get},
-{"mapscriptc::referenceMapObj_image_set", _wrap_referenceMapObj_image_set},
-{"mapscriptc::referenceMapObj_image_get", _wrap_referenceMapObj_image_get},
-{"mapscriptc::referenceMapObj_status_set", _wrap_referenceMapObj_status_set},
-{"mapscriptc::referenceMapObj_status_get", _wrap_referenceMapObj_status_get},
-{"mapscriptc::referenceMapObj_marker_set", _wrap_referenceMapObj_marker_set},
-{"mapscriptc::referenceMapObj_marker_get", _wrap_referenceMapObj_marker_get},
-{"mapscriptc::referenceMapObj_markername_set", _wrap_referenceMapObj_markername_set},
-{"mapscriptc::referenceMapObj_markername_get", _wrap_referenceMapObj_markername_get},
-{"mapscriptc::referenceMapObj_markersize_set", _wrap_referenceMapObj_markersize_set},
-{"mapscriptc::referenceMapObj_markersize_get", _wrap_referenceMapObj_markersize_get},
-{"mapscriptc::referenceMapObj_minboxsize_set", _wrap_referenceMapObj_minboxsize_set},
-{"mapscriptc::referenceMapObj_minboxsize_get", _wrap_referenceMapObj_minboxsize_get},
-{"mapscriptc::referenceMapObj_maxboxsize_set", _wrap_referenceMapObj_maxboxsize_set},
-{"mapscriptc::referenceMapObj_maxboxsize_get", _wrap_referenceMapObj_maxboxsize_get},
-{"mapscriptc::referenceMapObj_map_get", _wrap_referenceMapObj_map_get},
-{"mapscriptc::referenceMapObj_updateFromString", _wrap_referenceMapObj_updateFromString},
-{"mapscriptc::referenceMapObj_convertToString", _wrap_referenceMapObj_convertToString},
-{"mapscriptc::new_referenceMapObj", _wrap_new_referenceMapObj},
-{"mapscriptc::delete_referenceMapObj", _wrap_delete_referenceMapObj},
-{"mapscriptc::scalebarObj_imagecolor_set", _wrap_scalebarObj_imagecolor_set},
-{"mapscriptc::scalebarObj_imagecolor_get", _wrap_scalebarObj_imagecolor_get},
-{"mapscriptc::scalebarObj_height_set", _wrap_scalebarObj_height_set},
-{"mapscriptc::scalebarObj_height_get", _wrap_scalebarObj_height_get},
-{"mapscriptc::scalebarObj_width_set", _wrap_scalebarObj_width_set},
-{"mapscriptc::scalebarObj_width_get", _wrap_scalebarObj_width_get},
-{"mapscriptc::scalebarObj_style_set", _wrap_scalebarObj_style_set},
-{"mapscriptc::scalebarObj_style_get", _wrap_scalebarObj_style_get},
-{"mapscriptc::scalebarObj_intervals_set", _wrap_scalebarObj_intervals_set},
-{"mapscriptc::scalebarObj_intervals_get", _wrap_scalebarObj_intervals_get},
-{"mapscriptc::scalebarObj_label_set", _wrap_scalebarObj_label_set},
-{"mapscriptc::scalebarObj_label_get", _wrap_scalebarObj_label_get},
-{"mapscriptc::scalebarObj_color_set", _wrap_scalebarObj_color_set},
-{"mapscriptc::scalebarObj_color_get", _wrap_scalebarObj_color_get},
-{"mapscriptc::scalebarObj_backgroundcolor_set", _wrap_scalebarObj_backgroundcolor_set},
-{"mapscriptc::scalebarObj_backgroundcolor_get", _wrap_scalebarObj_backgroundcolor_get},
-{"mapscriptc::scalebarObj_outlinecolor_set", _wrap_scalebarObj_outlinecolor_set},
-{"mapscriptc::scalebarObj_outlinecolor_get", _wrap_scalebarObj_outlinecolor_get},
-{"mapscriptc::scalebarObj_units_set", _wrap_scalebarObj_units_set},
-{"mapscriptc::scalebarObj_units_get", _wrap_scalebarObj_units_get},
-{"mapscriptc::scalebarObj_status_set", _wrap_scalebarObj_status_set},
-{"mapscriptc::scalebarObj_status_get", _wrap_scalebarObj_status_get},
-{"mapscriptc::scalebarObj_position_set", _wrap_scalebarObj_position_set},
-{"mapscriptc::scalebarObj_position_get", _wrap_scalebarObj_position_get},
-{"mapscriptc::scalebarObj_postlabelcache_set", _wrap_scalebarObj_postlabelcache_set},
-{"mapscriptc::scalebarObj_postlabelcache_get", _wrap_scalebarObj_postlabelcache_get},
-{"mapscriptc::scalebarObj_align_set", _wrap_scalebarObj_align_set},
-{"mapscriptc::scalebarObj_align_get", _wrap_scalebarObj_align_get},
-{"mapscriptc::scalebarObj_updateFromString", _wrap_scalebarObj_updateFromString},
-{"mapscriptc::scalebarObj_convertToString", _wrap_scalebarObj_convertToString},
-{"mapscriptc::new_scalebarObj", _wrap_new_scalebarObj},
-{"mapscriptc::delete_scalebarObj", _wrap_delete_scalebarObj},
-{"mapscriptc::legendObj_imagecolor_set", _wrap_legendObj_imagecolor_set},
-{"mapscriptc::legendObj_imagecolor_get", _wrap_legendObj_imagecolor_get},
-{"mapscriptc::legendObj_label_get", _wrap_legendObj_label_get},
-{"mapscriptc::legendObj_keysizex_set", _wrap_legendObj_keysizex_set},
-{"mapscriptc::legendObj_keysizex_get", _wrap_legendObj_keysizex_get},
-{"mapscriptc::legendObj_keysizey_set", _wrap_legendObj_keysizey_set},
-{"mapscriptc::legendObj_keysizey_get", _wrap_legendObj_keysizey_get},
-{"mapscriptc::legendObj_keyspacingx_set", _wrap_legendObj_keyspacingx_set},
-{"mapscriptc::legendObj_keyspacingx_get", _wrap_legendObj_keyspacingx_get},
-{"mapscriptc::legendObj_keyspacingy_set", _wrap_legendObj_keyspacingy_set},
-{"mapscriptc::legendObj_keyspacingy_get", _wrap_legendObj_keyspacingy_get},
-{"mapscriptc::legendObj_outlinecolor_set", _wrap_legendObj_outlinecolor_set},
-{"mapscriptc::legendObj_outlinecolor_get", _wrap_legendObj_outlinecolor_get},
-{"mapscriptc::legendObj_status_set", _wrap_legendObj_status_set},
-{"mapscriptc::legendObj_status_get", _wrap_legendObj_status_get},
-{"mapscriptc::legendObj_height_set", _wrap_legendObj_height_set},
-{"mapscriptc::legendObj_height_get", _wrap_legendObj_height_get},
-{"mapscriptc::legendObj_width_set", _wrap_legendObj_width_set},
-{"mapscriptc::legendObj_width_get", _wrap_legendObj_width_get},
-{"mapscriptc::legendObj_position_set", _wrap_legendObj_position_set},
-{"mapscriptc::legendObj_position_get", _wrap_legendObj_position_get},
-{"mapscriptc::legendObj_postlabelcache_set", _wrap_legendObj_postlabelcache_set},
-{"mapscriptc::legendObj_postlabelcache_get", _wrap_legendObj_postlabelcache_get},
-{"mapscriptc::legendObj_template_set", _wrap_legendObj_template_set},
-{"mapscriptc::legendObj_template_get", _wrap_legendObj_template_get},
-{"mapscriptc::legendObj_map_get", _wrap_legendObj_map_get},
-{"mapscriptc::legendObj_updateFromString", _wrap_legendObj_updateFromString},
-{"mapscriptc::legendObj_convertToString", _wrap_legendObj_convertToString},
-{"mapscriptc::new_legendObj", _wrap_new_legendObj},
-{"mapscriptc::delete_legendObj", _wrap_delete_legendObj},
-{"mapscriptc::imageObj_width_get", _wrap_imageObj_width_get},
-{"mapscriptc::imageObj_height_get", _wrap_imageObj_height_get},
-{"mapscriptc::imageObj_resolution_get", _wrap_imageObj_resolution_get},
-{"mapscriptc::imageObj_resolutionfactor_get", _wrap_imageObj_resolutionfactor_get},
-{"mapscriptc::imageObj_imagepath_get", _wrap_imageObj_imagepath_get},
-{"mapscriptc::imageObj_imageurl_get", _wrap_imageObj_imageurl_get},
-{"mapscriptc::imageObj_format_get", _wrap_imageObj_format_get},
-{"mapscriptc::new_imageObj", _wrap_new_imageObj},
-{"mapscriptc::delete_imageObj", _wrap_delete_imageObj},
-{"mapscriptc::imageObj_save", _wrap_imageObj_save},
-{"mapscriptc::imageObj_write", _wrap_imageObj_write},
-{"mapscriptc::imageObj_getBytes", _wrap_imageObj_getBytes},
-{"mapscriptc::imageObj_getSize", _wrap_imageObj_getSize},
-{"mapscriptc::scaleTokenEntryObj_minscale_set", _wrap_scaleTokenEntryObj_minscale_set},
-{"mapscriptc::scaleTokenEntryObj_minscale_get", _wrap_scaleTokenEntryObj_minscale_get},
-{"mapscriptc::scaleTokenEntryObj_maxscale_set", _wrap_scaleTokenEntryObj_maxscale_set},
-{"mapscriptc::scaleTokenEntryObj_maxscale_get", _wrap_scaleTokenEntryObj_maxscale_get},
-{"mapscriptc::scaleTokenEntryObj_value_set", _wrap_scaleTokenEntryObj_value_set},
-{"mapscriptc::scaleTokenEntryObj_value_get", _wrap_scaleTokenEntryObj_value_get},
-{"mapscriptc::new_scaleTokenEntryObj", _wrap_new_scaleTokenEntryObj},
-{"mapscriptc::delete_scaleTokenEntryObj", _wrap_delete_scaleTokenEntryObj},
-{"mapscriptc::scaleTokenObj_name_set", _wrap_scaleTokenObj_name_set},
-{"mapscriptc::scaleTokenObj_name_get", _wrap_scaleTokenObj_name_get},
-{"mapscriptc::scaleTokenObj_n_entries_set", _wrap_scaleTokenObj_n_entries_set},
-{"mapscriptc::scaleTokenObj_n_entries_get", _wrap_scaleTokenObj_n_entries_get},
-{"mapscriptc::scaleTokenObj_tokens_set", _wrap_scaleTokenObj_tokens_set},
-{"mapscriptc::scaleTokenObj_tokens_get", _wrap_scaleTokenObj_tokens_get},
-{"mapscriptc::new_scaleTokenObj", _wrap_new_scaleTokenObj},
-{"mapscriptc::delete_scaleTokenObj", _wrap_delete_scaleTokenObj},
-{"mapscriptc::layerObj_classitem_set", _wrap_layerObj_classitem_set},
-{"mapscriptc::layerObj_classitem_get", _wrap_layerObj_classitem_get},
-{"mapscriptc::layerObj_refcount_get", _wrap_layerObj_refcount_get},
-{"mapscriptc::layerObj_numclasses_get", _wrap_layerObj_numclasses_get},
-{"mapscriptc::layerObj_maxclasses_get", _wrap_layerObj_maxclasses_get},
-{"mapscriptc::layerObj_index_get", _wrap_layerObj_index_get},
-{"mapscriptc::layerObj_map_get", _wrap_layerObj_map_get},
-{"mapscriptc::layerObj_header_set", _wrap_layerObj_header_set},
-{"mapscriptc::layerObj_header_get", _wrap_layerObj_header_get},
-{"mapscriptc::layerObj_footer_set", _wrap_layerObj_footer_set},
-{"mapscriptc::layerObj_footer_get", _wrap_layerObj_footer_get},
-{"mapscriptc::layerObj_template_set", _wrap_layerObj_template_set},
-{"mapscriptc::layerObj_template_get", _wrap_layerObj_template_get},
-{"mapscriptc::layerObj_name_set", _wrap_layerObj_name_set},
-{"mapscriptc::layerObj_name_get", _wrap_layerObj_name_get},
-{"mapscriptc::layerObj_group_set", _wrap_layerObj_group_set},
-{"mapscriptc::layerObj_group_get", _wrap_layerObj_group_get},
-{"mapscriptc::layerObj_status_set", _wrap_layerObj_status_set},
-{"mapscriptc::layerObj_status_get", _wrap_layerObj_status_get},
-{"mapscriptc::layerObj_data_set", _wrap_layerObj_data_set},
-{"mapscriptc::layerObj_data_get", _wrap_layerObj_data_get},
-{"mapscriptc::layerObj_type_set", _wrap_layerObj_type_set},
-{"mapscriptc::layerObj_type_get", _wrap_layerObj_type_get},
-{"mapscriptc::layerObj_tolerance_set", _wrap_layerObj_tolerance_set},
-{"mapscriptc::layerObj_tolerance_get", _wrap_layerObj_tolerance_get},
-{"mapscriptc::layerObj_toleranceunits_set", _wrap_layerObj_toleranceunits_set},
-{"mapscriptc::layerObj_toleranceunits_get", _wrap_layerObj_toleranceunits_get},
-{"mapscriptc::layerObj_symbolscaledenom_set", _wrap_layerObj_symbolscaledenom_set},
-{"mapscriptc::layerObj_symbolscaledenom_get", _wrap_layerObj_symbolscaledenom_get},
-{"mapscriptc::layerObj_minscaledenom_set", _wrap_layerObj_minscaledenom_set},
-{"mapscriptc::layerObj_minscaledenom_get", _wrap_layerObj_minscaledenom_get},
-{"mapscriptc::layerObj_maxscaledenom_set", _wrap_layerObj_maxscaledenom_set},
-{"mapscriptc::layerObj_maxscaledenom_get", _wrap_layerObj_maxscaledenom_get},
-{"mapscriptc::layerObj_minfeaturesize_set", _wrap_layerObj_minfeaturesize_set},
-{"mapscriptc::layerObj_minfeaturesize_get", _wrap_layerObj_minfeaturesize_get},
-{"mapscriptc::layerObj_labelminscaledenom_set", _wrap_layerObj_labelminscaledenom_set},
-{"mapscriptc::layerObj_labelminscaledenom_get", _wrap_layerObj_labelminscaledenom_get},
-{"mapscriptc::layerObj_labelmaxscaledenom_set", _wrap_layerObj_labelmaxscaledenom_set},
-{"mapscriptc::layerObj_labelmaxscaledenom_get", _wrap_layerObj_labelmaxscaledenom_get},
-{"mapscriptc::layerObj_mingeowidth_set", _wrap_layerObj_mingeowidth_set},
-{"mapscriptc::layerObj_mingeowidth_get", _wrap_layerObj_mingeowidth_get},
-{"mapscriptc::layerObj_maxgeowidth_set", _wrap_layerObj_maxgeowidth_set},
-{"mapscriptc::layerObj_maxgeowidth_get", _wrap_layerObj_maxgeowidth_get},
-{"mapscriptc::layerObj_sizeunits_set", _wrap_layerObj_sizeunits_set},
-{"mapscriptc::layerObj_sizeunits_get", _wrap_layerObj_sizeunits_get},
-{"mapscriptc::layerObj_maxfeatures_set", _wrap_layerObj_maxfeatures_set},
-{"mapscriptc::layerObj_maxfeatures_get", _wrap_layerObj_maxfeatures_get},
-{"mapscriptc::layerObj_startindex_set", _wrap_layerObj_startindex_set},
-{"mapscriptc::layerObj_startindex_get", _wrap_layerObj_startindex_get},
-{"mapscriptc::layerObj_offsite_set", _wrap_layerObj_offsite_set},
-{"mapscriptc::layerObj_offsite_get", _wrap_layerObj_offsite_get},
-{"mapscriptc::layerObj_transform_set", _wrap_layerObj_transform_set},
-{"mapscriptc::layerObj_transform_get", _wrap_layerObj_transform_get},
-{"mapscriptc::layerObj_labelcache_set", _wrap_layerObj_labelcache_set},
-{"mapscriptc::layerObj_labelcache_get", _wrap_layerObj_labelcache_get},
-{"mapscriptc::layerObj_postlabelcache_set", _wrap_layerObj_postlabelcache_set},
-{"mapscriptc::layerObj_postlabelcache_get", _wrap_layerObj_postlabelcache_get},
-{"mapscriptc::layerObj_labelitem_set", _wrap_layerObj_labelitem_set},
-{"mapscriptc::layerObj_labelitem_get", _wrap_layerObj_labelitem_get},
-{"mapscriptc::layerObj_tileitem_set", _wrap_layerObj_tileitem_set},
-{"mapscriptc::layerObj_tileitem_get", _wrap_layerObj_tileitem_get},
-{"mapscriptc::layerObj_tileindex_set", _wrap_layerObj_tileindex_set},
-{"mapscriptc::layerObj_tileindex_get", _wrap_layerObj_tileindex_get},
-{"mapscriptc::layerObj_tilesrs_set", _wrap_layerObj_tilesrs_set},
-{"mapscriptc::layerObj_tilesrs_get", _wrap_layerObj_tilesrs_get},
-{"mapscriptc::layerObj_units_set", _wrap_layerObj_units_set},
-{"mapscriptc::layerObj_units_get", _wrap_layerObj_units_get},
-{"mapscriptc::layerObj_connection_set", _wrap_layerObj_connection_set},
-{"mapscriptc::layerObj_connection_get", _wrap_layerObj_connection_get},
-{"mapscriptc::layerObj_plugin_library_set", _wrap_layerObj_plugin_library_set},
-{"mapscriptc::layerObj_plugin_library_get", _wrap_layerObj_plugin_library_get},
-{"mapscriptc::layerObj_plugin_library_original_set", _wrap_layerObj_plugin_library_original_set},
-{"mapscriptc::layerObj_plugin_library_original_get", _wrap_layerObj_plugin_library_original_get},
-{"mapscriptc::layerObj_connectiontype_set", _wrap_layerObj_connectiontype_set},
-{"mapscriptc::layerObj_connectiontype_get", _wrap_layerObj_connectiontype_get},
-{"mapscriptc::layerObj_numitems_get", _wrap_layerObj_numitems_get},
-{"mapscriptc::layerObj_bandsitem_set", _wrap_layerObj_bandsitem_set},
-{"mapscriptc::layerObj_bandsitem_get", _wrap_layerObj_bandsitem_get},
-{"mapscriptc::layerObj_filteritem_set", _wrap_layerObj_filteritem_set},
-{"mapscriptc::layerObj_filteritem_get", _wrap_layerObj_filteritem_get},
-{"mapscriptc::layerObj_styleitem_set", _wrap_layerObj_styleitem_set},
-{"mapscriptc::layerObj_styleitem_get", _wrap_layerObj_styleitem_get},
-{"mapscriptc::layerObj_requires_set", _wrap_layerObj_requires_set},
-{"mapscriptc::layerObj_requires_get", _wrap_layerObj_requires_get},
-{"mapscriptc::layerObj_labelrequires_set", _wrap_layerObj_labelrequires_set},
-{"mapscriptc::layerObj_labelrequires_get", _wrap_layerObj_labelrequires_get},
-{"mapscriptc::layerObj_metadata_get", _wrap_layerObj_metadata_get},
-{"mapscriptc::layerObj_validation_get", _wrap_layerObj_validation_get},
-{"mapscriptc::layerObj_bindvals_get", _wrap_layerObj_bindvals_get},
-{"mapscriptc::layerObj_cluster_get", _wrap_layerObj_cluster_get},
-{"mapscriptc::layerObj_opacity_set", _wrap_layerObj_opacity_set},
-{"mapscriptc::layerObj_opacity_get", _wrap_layerObj_opacity_get},
-{"mapscriptc::layerObj_dump_set", _wrap_layerObj_dump_set},
-{"mapscriptc::layerObj_dump_get", _wrap_layerObj_dump_get},
-{"mapscriptc::layerObj_debug_set", _wrap_layerObj_debug_set},
-{"mapscriptc::layerObj_debug_get", _wrap_layerObj_debug_get},
-{"mapscriptc::layerObj_extent_get", _wrap_layerObj_extent_get},
-{"mapscriptc::layerObj_numprocessing_get", _wrap_layerObj_numprocessing_get},
-{"mapscriptc::layerObj_numjoins_get", _wrap_layerObj_numjoins_get},
-{"mapscriptc::layerObj_classgroup_set", _wrap_layerObj_classgroup_set},
-{"mapscriptc::layerObj_classgroup_get", _wrap_layerObj_classgroup_get},
-{"mapscriptc::layerObj_mask_set", _wrap_layerObj_mask_set},
-{"mapscriptc::layerObj_mask_get", _wrap_layerObj_mask_get},
-{"mapscriptc::new_layerObj", _wrap_new_layerObj},
-{"mapscriptc::delete_layerObj", _wrap_delete_layerObj},
-{"mapscriptc::layerObj_clone", _wrap_layerObj_clone},
-{"mapscriptc::layerObj_updateFromString", _wrap_layerObj_updateFromString},
-{"mapscriptc::layerObj_convertToString", _wrap_layerObj_convertToString},
-{"mapscriptc::layerObj_insertClass", _wrap_layerObj_insertClass},
-{"mapscriptc::layerObj_removeClass", _wrap_layerObj_removeClass},
-{"mapscriptc::layerObj_open", _wrap_layerObj_open},
-{"mapscriptc::layerObj_whichShapes", _wrap_layerObj_whichShapes},
-{"mapscriptc::layerObj_nextShape", _wrap_layerObj_nextShape},
-{"mapscriptc::layerObj_close", _wrap_layerObj_close},
-{"mapscriptc::layerObj_getShape", _wrap_layerObj_getShape},
-{"mapscriptc::layerObj_getNumResults", _wrap_layerObj_getNumResults},
-{"mapscriptc::layerObj_getResultsBounds", _wrap_layerObj_getResultsBounds},
-{"mapscriptc::layerObj_getResult", _wrap_layerObj_getResult},
-{"mapscriptc::layerObj_getClass", _wrap_layerObj_getClass},
-{"mapscriptc::layerObj_getItem", _wrap_layerObj_getItem},
-{"mapscriptc::layerObj_setItems", _wrap_layerObj_setItems},
-{"mapscriptc::layerObj_draw", _wrap_layerObj_draw},
-{"mapscriptc::layerObj_drawQuery", _wrap_layerObj_drawQuery},
-{"mapscriptc::layerObj_queryByFilter", _wrap_layerObj_queryByFilter},
-{"mapscriptc::layerObj_queryByAttributes", _wrap_layerObj_queryByAttributes},
-{"mapscriptc::layerObj_queryByPoint", _wrap_layerObj_queryByPoint},
-{"mapscriptc::layerObj_queryByRect", _wrap_layerObj_queryByRect},
-{"mapscriptc::layerObj_queryByFeatures", _wrap_layerObj_queryByFeatures},
-{"mapscriptc::layerObj_queryByShape", _wrap_layerObj_queryByShape},
-{"mapscriptc::layerObj_queryByIndex", _wrap_layerObj_queryByIndex},
-{"mapscriptc::layerObj_getResults", _wrap_layerObj_getResults},
-{"mapscriptc::layerObj_setFilter", _wrap_layerObj_setFilter},
-{"mapscriptc::layerObj_getFilterString", _wrap_layerObj_getFilterString},
-{"mapscriptc::layerObj_setWKTProjection", _wrap_layerObj_setWKTProjection},
-{"mapscriptc::layerObj_getProjection", _wrap_layerObj_getProjection},
-{"mapscriptc::layerObj_setProjection", _wrap_layerObj_setProjection},
-{"mapscriptc::layerObj_addFeature", _wrap_layerObj_addFeature},
-{"mapscriptc::layerObj_getNumFeatures", _wrap_layerObj_getNumFeatures},
-{"mapscriptc::layerObj_getExtent", _wrap_layerObj_getExtent},
-{"mapscriptc::layerObj_setExtent", _wrap_layerObj_setExtent},
-{"mapscriptc::layerObj_getMetaData", _wrap_layerObj_getMetaData},
-{"mapscriptc::layerObj_setMetaData", _wrap_layerObj_setMetaData},
-{"mapscriptc::layerObj_removeMetaData", _wrap_layerObj_removeMetaData},
-{"mapscriptc::layerObj_getFirstMetaDataKey", _wrap_layerObj_getFirstMetaDataKey},
-{"mapscriptc::layerObj_getNextMetaDataKey", _wrap_layerObj_getNextMetaDataKey},
-{"mapscriptc::layerObj_getWMSFeatureInfoURL", _wrap_layerObj_getWMSFeatureInfoURL},
-{"mapscriptc::layerObj_executeWFSGetFeature", _wrap_layerObj_executeWFSGetFeature},
-{"mapscriptc::layerObj_applySLD", _wrap_layerObj_applySLD},
-{"mapscriptc::layerObj_applySLDURL", _wrap_layerObj_applySLDURL},
-{"mapscriptc::layerObj_generateSLD", _wrap_layerObj_generateSLD},
-{"mapscriptc::layerObj_isVisible", _wrap_layerObj_isVisible},
-{"mapscriptc::layerObj_moveClassUp", _wrap_layerObj_moveClassUp},
-{"mapscriptc::layerObj_moveClassDown", _wrap_layerObj_moveClassDown},
-{"mapscriptc::layerObj_setProcessingKey", _wrap_layerObj_setProcessingKey},
-{"mapscriptc::layerObj_setProcessing", _wrap_layerObj_setProcessing},
-{"mapscriptc::layerObj_addProcessing", _wrap_layerObj_addProcessing},
-{"mapscriptc::layerObj_getProcessing", _wrap_layerObj_getProcessing},
-{"mapscriptc::layerObj_getProcessingKey", _wrap_layerObj_getProcessingKey},
-{"mapscriptc::layerObj_clearProcessing", _wrap_layerObj_clearProcessing},
-{"mapscriptc::layerObj_setConnectionType", _wrap_layerObj_setConnectionType},
-{"mapscriptc::layerObj_getClassIndex", _wrap_layerObj_getClassIndex},
-{"mapscriptc::layerObj_getGeomTransform", _wrap_layerObj_getGeomTransform},
-{"mapscriptc::layerObj_setGeomTransform", _wrap_layerObj_setGeomTransform},
-{"mapscriptc::mapObj_name_set", _wrap_mapObj_name_set},
-{"mapscriptc::mapObj_name_get", _wrap_mapObj_name_get},
-{"mapscriptc::mapObj_status_set", _wrap_mapObj_status_set},
-{"mapscriptc::mapObj_status_get", _wrap_mapObj_status_get},
-{"mapscriptc::mapObj_height_set", _wrap_mapObj_height_set},
-{"mapscriptc::mapObj_height_get", _wrap_mapObj_height_get},
-{"mapscriptc::mapObj_width_set", _wrap_mapObj_width_set},
-{"mapscriptc::mapObj_width_get", _wrap_mapObj_width_get},
-{"mapscriptc::mapObj_maxsize_set", _wrap_mapObj_maxsize_set},
-{"mapscriptc::mapObj_maxsize_get", _wrap_mapObj_maxsize_get},
-{"mapscriptc::mapObj_refcount_get", _wrap_mapObj_refcount_get},
-{"mapscriptc::mapObj_numlayers_get", _wrap_mapObj_numlayers_get},
-{"mapscriptc::mapObj_maxlayers_get", _wrap_mapObj_maxlayers_get},
-{"mapscriptc::mapObj_symbolset_get", _wrap_mapObj_symbolset_get},
-{"mapscriptc::mapObj_fontset_get", _wrap_mapObj_fontset_get},
-{"mapscriptc::mapObj_labelcache_get", _wrap_mapObj_labelcache_get},
-{"mapscriptc::mapObj_transparent_set", _wrap_mapObj_transparent_set},
-{"mapscriptc::mapObj_transparent_get", _wrap_mapObj_transparent_get},
-{"mapscriptc::mapObj_interlace_set", _wrap_mapObj_interlace_set},
-{"mapscriptc::mapObj_interlace_get", _wrap_mapObj_interlace_get},
-{"mapscriptc::mapObj_imagequality_set", _wrap_mapObj_imagequality_set},
-{"mapscriptc::mapObj_imagequality_get", _wrap_mapObj_imagequality_get},
-{"mapscriptc::mapObj_extent_set", _wrap_mapObj_extent_set},
-{"mapscriptc::mapObj_extent_get", _wrap_mapObj_extent_get},
-{"mapscriptc::mapObj_cellsize_set", _wrap_mapObj_cellsize_set},
-{"mapscriptc::mapObj_cellsize_get", _wrap_mapObj_cellsize_get},
-{"mapscriptc::mapObj_units_set", _wrap_mapObj_units_set},
-{"mapscriptc::mapObj_units_get", _wrap_mapObj_units_get},
-{"mapscriptc::mapObj_scaledenom_set", _wrap_mapObj_scaledenom_set},
-{"mapscriptc::mapObj_scaledenom_get", _wrap_mapObj_scaledenom_get},
-{"mapscriptc::mapObj_resolution_set", _wrap_mapObj_resolution_set},
-{"mapscriptc::mapObj_resolution_get", _wrap_mapObj_resolution_get},
-{"mapscriptc::mapObj_defresolution_set", _wrap_mapObj_defresolution_set},
-{"mapscriptc::mapObj_defresolution_get", _wrap_mapObj_defresolution_get},
-{"mapscriptc::mapObj_shapepath_set", _wrap_mapObj_shapepath_set},
-{"mapscriptc::mapObj_shapepath_get", _wrap_mapObj_shapepath_get},
-{"mapscriptc::mapObj_mappath_set", _wrap_mapObj_mappath_set},
-{"mapscriptc::mapObj_mappath_get", _wrap_mapObj_mappath_get},
-{"mapscriptc::mapObj_imagecolor_set", _wrap_mapObj_imagecolor_set},
-{"mapscriptc::mapObj_imagecolor_get", _wrap_mapObj_imagecolor_get},
-{"mapscriptc::mapObj_numoutputformats_get", _wrap_mapObj_numoutputformats_get},
-{"mapscriptc::mapObj_outputformat_get", _wrap_mapObj_outputformat_get},
-{"mapscriptc::mapObj_imagetype_get", _wrap_mapObj_imagetype_get},
-{"mapscriptc::mapObj_reference_get", _wrap_mapObj_reference_get},
-{"mapscriptc::mapObj_scalebar_get", _wrap_mapObj_scalebar_get},
-{"mapscriptc::mapObj_legend_get", _wrap_mapObj_legend_get},
-{"mapscriptc::mapObj_querymap_get", _wrap_mapObj_querymap_get},
-{"mapscriptc::mapObj_web_get", _wrap_mapObj_web_get},
-{"mapscriptc::mapObj_layerorder_set", _wrap_mapObj_layerorder_set},
-{"mapscriptc::mapObj_layerorder_get", _wrap_mapObj_layerorder_get},
-{"mapscriptc::mapObj_debug_set", _wrap_mapObj_debug_set},
-{"mapscriptc::mapObj_debug_get", _wrap_mapObj_debug_get},
-{"mapscriptc::mapObj_datapattern_set", _wrap_mapObj_datapattern_set},
-{"mapscriptc::mapObj_datapattern_get", _wrap_mapObj_datapattern_get},
-{"mapscriptc::mapObj_templatepattern_set", _wrap_mapObj_templatepattern_set},
-{"mapscriptc::mapObj_templatepattern_get", _wrap_mapObj_templatepattern_get},
-{"mapscriptc::mapObj_configoptions_get", _wrap_mapObj_configoptions_get},
-{"mapscriptc::new_mapObj", _wrap_new_mapObj},
-{"mapscriptc::delete_mapObj", _wrap_delete_mapObj},
-{"mapscriptc::mapObj_clone", _wrap_mapObj_clone},
-{"mapscriptc::mapObj_insertLayer", _wrap_mapObj_insertLayer},
-{"mapscriptc::mapObj_removeLayer", _wrap_mapObj_removeLayer},
-{"mapscriptc::mapObj_setExtent", _wrap_mapObj_setExtent},
-{"mapscriptc::mapObj_offsetExtent", _wrap_mapObj_offsetExtent},
-{"mapscriptc::mapObj_scaleExtent", _wrap_mapObj_scaleExtent},
-{"mapscriptc::mapObj_setCenter", _wrap_mapObj_setCenter},
-{"mapscriptc::mapObj_setSize", _wrap_mapObj_setSize},
-{"mapscriptc::mapObj_setRotation", _wrap_mapObj_setRotation},
-{"mapscriptc::mapObj_getLayer", _wrap_mapObj_getLayer},
-{"mapscriptc::mapObj_getLayerByName", _wrap_mapObj_getLayerByName},
-{"mapscriptc::mapObj_getSymbolByName", _wrap_mapObj_getSymbolByName},
-{"mapscriptc::mapObj_prepareQuery", _wrap_mapObj_prepareQuery},
-{"mapscriptc::mapObj_prepareImage", _wrap_mapObj_prepareImage},
-{"mapscriptc::mapObj_setImageType", _wrap_mapObj_setImageType},
-{"mapscriptc::mapObj_selectOutputFormat", _wrap_mapObj_selectOutputFormat},
-{"mapscriptc::mapObj_getOutputFormat", _wrap_mapObj_getOutputFormat},
-{"mapscriptc::mapObj_setOutputFormat", _wrap_mapObj_setOutputFormat},
-{"mapscriptc::mapObj_draw", _wrap_mapObj_draw},
-{"mapscriptc::mapObj_drawQuery", _wrap_mapObj_drawQuery},
-{"mapscriptc::mapObj_drawLegend", _wrap_mapObj_drawLegend},
-{"mapscriptc::mapObj_drawScalebar", _wrap_mapObj_drawScalebar},
-{"mapscriptc::mapObj_drawReferenceMap", _wrap_mapObj_drawReferenceMap},
-{"mapscriptc::mapObj_embedScalebar", _wrap_mapObj_embedScalebar},
-{"mapscriptc::mapObj_embedLegend", _wrap_mapObj_embedLegend},
-{"mapscriptc::mapObj_drawLabelCache", _wrap_mapObj_drawLabelCache},
-{"mapscriptc::mapObj_getLabel", _wrap_mapObj_getLabel},
-{"mapscriptc::mapObj_nextLabel", _wrap_mapObj_nextLabel},
-{"mapscriptc::mapObj_queryByFilter", _wrap_mapObj_queryByFilter},
-{"mapscriptc::mapObj_queryByPoint", _wrap_mapObj_queryByPoint},
-{"mapscriptc::mapObj_queryByRect", _wrap_mapObj_queryByRect},
-{"mapscriptc::mapObj_queryByFeatures", _wrap_mapObj_queryByFeatures},
-{"mapscriptc::mapObj_queryByShape", _wrap_mapObj_queryByShape},
-{"mapscriptc::mapObj_setWKTProjection", _wrap_mapObj_setWKTProjection},
-{"mapscriptc::mapObj_getProjection", _wrap_mapObj_getProjection},
-{"mapscriptc::mapObj_setProjection", _wrap_mapObj_setProjection},
-{"mapscriptc::mapObj_save", _wrap_mapObj_save},
-{"mapscriptc::mapObj_saveQuery", _wrap_mapObj_saveQuery},
-{"mapscriptc::mapObj_loadQuery", _wrap_mapObj_loadQuery},
-{"mapscriptc::mapObj_freeQuery", _wrap_mapObj_freeQuery},
-{"mapscriptc::mapObj_saveQueryAsGML", _wrap_mapObj_saveQueryAsGML},
-{"mapscriptc::mapObj_getMetaData", _wrap_mapObj_getMetaData},
-{"mapscriptc::mapObj_setMetaData", _wrap_mapObj_setMetaData},
-{"mapscriptc::mapObj_removeMetaData", _wrap_mapObj_removeMetaData},
-{"mapscriptc::mapObj_getFirstMetaDataKey", _wrap_mapObj_getFirstMetaDataKey},
-{"mapscriptc::mapObj_getNextMetaDataKey", _wrap_mapObj_getNextMetaDataKey},
-{"mapscriptc::mapObj_setSymbolSet", _wrap_mapObj_setSymbolSet},
-{"mapscriptc::mapObj_getNumSymbols", _wrap_mapObj_getNumSymbols},
-{"mapscriptc::mapObj_setFontSet", _wrap_mapObj_setFontSet},
-{"mapscriptc::mapObj_saveMapContext", _wrap_mapObj_saveMapContext},
-{"mapscriptc::mapObj_loadMapContext", _wrap_mapObj_loadMapContext},
-{"mapscriptc::mapObj_moveLayerUp", _wrap_mapObj_moveLayerUp},
-{"mapscriptc::mapObj_moveLayerDown", _wrap_mapObj_moveLayerDown},
-{"mapscriptc::mapObj_getLayersDrawingOrder", _wrap_mapObj_getLayersDrawingOrder},
-{"mapscriptc::mapObj_setLayersDrawingOrder", _wrap_mapObj_setLayersDrawingOrder},
-{"mapscriptc::mapObj_setConfigOption", _wrap_mapObj_setConfigOption},
-{"mapscriptc::mapObj_getConfigOption", _wrap_mapObj_getConfigOption},
-{"mapscriptc::mapObj_applyConfigOptions", _wrap_mapObj_applyConfigOptions},
-{"mapscriptc::mapObj_applySLD", _wrap_mapObj_applySLD},
-{"mapscriptc::mapObj_applySLDURL", _wrap_mapObj_applySLDURL},
-{"mapscriptc::mapObj_generateSLD", _wrap_mapObj_generateSLD},
-{"mapscriptc::mapObj_processTemplate", _wrap_mapObj_processTemplate},
-{"mapscriptc::mapObj_processLegendTemplate", _wrap_mapObj_processLegendTemplate},
-{"mapscriptc::mapObj_processQueryTemplate", _wrap_mapObj_processQueryTemplate},
-{"mapscriptc::mapObj_getOutputFormatByName", _wrap_mapObj_getOutputFormatByName},
-{"mapscriptc::mapObj_appendOutputFormat", _wrap_mapObj_appendOutputFormat},
-{"mapscriptc::mapObj_removeOutputFormat", _wrap_mapObj_removeOutputFormat},
-{"mapscriptc::mapObj_loadOWSParameters", _wrap_mapObj_loadOWSParameters},
-{"mapscriptc::mapObj_OWSDispatch", _wrap_mapObj_OWSDispatch},
-{"mapscriptc::mapObj_convertToString", _wrap_mapObj_convertToString},
-{"mapscriptc::mapObj_zoomPoint", _wrap_mapObj_zoomPoint},
-{"mapscriptc::mapObj_zoomRectangle", _wrap_mapObj_zoomRectangle},
-{"mapscriptc::mapObj_zoomScale", _wrap_mapObj_zoomScale},
-{"mapscriptc::msSaveImage", _wrap_msSaveImage},
-{"mapscriptc::msFreeImage", _wrap_msFreeImage},
-{"mapscriptc::msSetup", _wrap_msSetup},
-{"mapscriptc::msCleanup", _wrap_msCleanup},
-{"mapscriptc::msLoadMapFromString", _wrap_msLoadMapFromString},
-{"mapscriptc::strokeStyleObj_width_set", _wrap_strokeStyleObj_width_set},
-{"mapscriptc::strokeStyleObj_width_get", _wrap_strokeStyleObj_width_get},
-{"mapscriptc::strokeStyleObj_patternlength_set", _wrap_strokeStyleObj_patternlength_set},
-{"mapscriptc::strokeStyleObj_patternlength_get", _wrap_strokeStyleObj_patternlength_get},
-{"mapscriptc::strokeStyleObj_pattern_set", _wrap_strokeStyleObj_pattern_set},
-{"mapscriptc::strokeStyleObj_pattern_get", _wrap_strokeStyleObj_pattern_get},
-{"mapscriptc::strokeStyleObj_patternoffset_set", _wrap_strokeStyleObj_patternoffset_set},
-{"mapscriptc::strokeStyleObj_patternoffset_get", _wrap_strokeStyleObj_patternoffset_get},
-{"mapscriptc::strokeStyleObj_color_set", _wrap_strokeStyleObj_color_set},
-{"mapscriptc::strokeStyleObj_color_get", _wrap_strokeStyleObj_color_get},
-{"mapscriptc::strokeStyleObj_linecap_set", _wrap_strokeStyleObj_linecap_set},
-{"mapscriptc::strokeStyleObj_linecap_get", _wrap_strokeStyleObj_linecap_get},
-{"mapscriptc::strokeStyleObj_linejoin_set", _wrap_strokeStyleObj_linejoin_set},
-{"mapscriptc::strokeStyleObj_linejoin_get", _wrap_strokeStyleObj_linejoin_get},
-{"mapscriptc::strokeStyleObj_linejoinmaxsize_set", _wrap_strokeStyleObj_linejoinmaxsize_set},
-{"mapscriptc::strokeStyleObj_linejoinmaxsize_get", _wrap_strokeStyleObj_linejoinmaxsize_get},
-{"mapscriptc::new_strokeStyleObj", _wrap_new_strokeStyleObj},
-{"mapscriptc::delete_strokeStyleObj", _wrap_delete_strokeStyleObj},
-{"mapscriptc::symbolStyleObj_color_set", _wrap_symbolStyleObj_color_set},
-{"mapscriptc::symbolStyleObj_color_get", _wrap_symbolStyleObj_color_get},
-{"mapscriptc::symbolStyleObj_backgroundcolor_set", _wrap_symbolStyleObj_backgroundcolor_set},
-{"mapscriptc::symbolStyleObj_backgroundcolor_get", _wrap_symbolStyleObj_backgroundcolor_get},
-{"mapscriptc::symbolStyleObj_outlinewidth_set", _wrap_symbolStyleObj_outlinewidth_set},
-{"mapscriptc::symbolStyleObj_outlinewidth_get", _wrap_symbolStyleObj_outlinewidth_get},
-{"mapscriptc::symbolStyleObj_outlinecolor_set", _wrap_symbolStyleObj_outlinecolor_set},
-{"mapscriptc::symbolStyleObj_outlinecolor_get", _wrap_symbolStyleObj_outlinecolor_get},
-{"mapscriptc::symbolStyleObj_scale_set", _wrap_symbolStyleObj_scale_set},
-{"mapscriptc::symbolStyleObj_scale_get", _wrap_symbolStyleObj_scale_get},
-{"mapscriptc::symbolStyleObj_rotation_set", _wrap_symbolStyleObj_rotation_set},
-{"mapscriptc::symbolStyleObj_rotation_get", _wrap_symbolStyleObj_rotation_get},
-{"mapscriptc::symbolStyleObj_gap_set", _wrap_symbolStyleObj_gap_set},
-{"mapscriptc::symbolStyleObj_gap_get", _wrap_symbolStyleObj_gap_get},
-{"mapscriptc::symbolStyleObj_style_set", _wrap_symbolStyleObj_style_set},
-{"mapscriptc::symbolStyleObj_style_get", _wrap_symbolStyleObj_style_get},
-{"mapscriptc::new_symbolStyleObj", _wrap_new_symbolStyleObj},
-{"mapscriptc::delete_symbolStyleObj", _wrap_delete_symbolStyleObj},
-{"mapscriptc::tileCacheObj_symbol_set", _wrap_tileCacheObj_symbol_set},
-{"mapscriptc::tileCacheObj_symbol_get", _wrap_tileCacheObj_symbol_get},
-{"mapscriptc::tileCacheObj_width_set", _wrap_tileCacheObj_width_set},
-{"mapscriptc::tileCacheObj_width_get", _wrap_tileCacheObj_width_get},
-{"mapscriptc::tileCacheObj_height_set", _wrap_tileCacheObj_height_set},
-{"mapscriptc::tileCacheObj_height_get", _wrap_tileCacheObj_height_get},
-{"mapscriptc::tileCacheObj_color_set", _wrap_tileCacheObj_color_set},
-{"mapscriptc::tileCacheObj_color_get", _wrap_tileCacheObj_color_get},
-{"mapscriptc::tileCacheObj_outlinecolor_set", _wrap_tileCacheObj_outlinecolor_set},
-{"mapscriptc::tileCacheObj_outlinecolor_get", _wrap_tileCacheObj_outlinecolor_get},
-{"mapscriptc::tileCacheObj_backgroundcolor_set", _wrap_tileCacheObj_backgroundcolor_set},
-{"mapscriptc::tileCacheObj_backgroundcolor_get", _wrap_tileCacheObj_backgroundcolor_get},
-{"mapscriptc::tileCacheObj_outlinewidth_set", _wrap_tileCacheObj_outlinewidth_set},
-{"mapscriptc::tileCacheObj_outlinewidth_get", _wrap_tileCacheObj_outlinewidth_get},
-{"mapscriptc::tileCacheObj_rotation_set", _wrap_tileCacheObj_rotation_set},
-{"mapscriptc::tileCacheObj_rotation_get", _wrap_tileCacheObj_rotation_get},
-{"mapscriptc::tileCacheObj_scale_set", _wrap_tileCacheObj_scale_set},
-{"mapscriptc::tileCacheObj_scale_get", _wrap_tileCacheObj_scale_get},
-{"mapscriptc::tileCacheObj_image_set", _wrap_tileCacheObj_image_set},
-{"mapscriptc::tileCacheObj_image_get", _wrap_tileCacheObj_image_get},
-{"mapscriptc::tileCacheObj_next_set", _wrap_tileCacheObj_next_set},
-{"mapscriptc::tileCacheObj_next_get", _wrap_tileCacheObj_next_get},
-{"mapscriptc::new_tileCacheObj", _wrap_new_tileCacheObj},
-{"mapscriptc::delete_tileCacheObj", _wrap_delete_tileCacheObj},
-{"mapscriptc::labelStyleObj_fonts_set", _wrap_labelStyleObj_fonts_set},
-{"mapscriptc::labelStyleObj_fonts_get", _wrap_labelStyleObj_fonts_get},
-{"mapscriptc::labelStyleObj_numfonts_set", _wrap_labelStyleObj_numfonts_set},
-{"mapscriptc::labelStyleObj_numfonts_get", _wrap_labelStyleObj_numfonts_get},
-{"mapscriptc::labelStyleObj_size_set", _wrap_labelStyleObj_size_set},
-{"mapscriptc::labelStyleObj_size_get", _wrap_labelStyleObj_size_get},
-{"mapscriptc::labelStyleObj_rotation_set", _wrap_labelStyleObj_rotation_set},
-{"mapscriptc::labelStyleObj_rotation_get", _wrap_labelStyleObj_rotation_get},
-{"mapscriptc::labelStyleObj_color_set", _wrap_labelStyleObj_color_set},
-{"mapscriptc::labelStyleObj_color_get", _wrap_labelStyleObj_color_get},
-{"mapscriptc::labelStyleObj_outlinewidth_set", _wrap_labelStyleObj_outlinewidth_set},
-{"mapscriptc::labelStyleObj_outlinewidth_get", _wrap_labelStyleObj_outlinewidth_get},
-{"mapscriptc::labelStyleObj_outlinecolor_set", _wrap_labelStyleObj_outlinecolor_set},
-{"mapscriptc::labelStyleObj_outlinecolor_get", _wrap_labelStyleObj_outlinecolor_get},
-{"mapscriptc::labelStyleObj_antialias_set", _wrap_labelStyleObj_antialias_set},
-{"mapscriptc::labelStyleObj_antialias_get", _wrap_labelStyleObj_antialias_get},
-{"mapscriptc::new_labelStyleObj", _wrap_new_labelStyleObj},
-{"mapscriptc::delete_labelStyleObj", _wrap_delete_labelStyleObj},
-{"mapscriptc::rectObj_minx_set", _wrap_rectObj_minx_set},
-{"mapscriptc::rectObj_minx_get", _wrap_rectObj_minx_get},
-{"mapscriptc::rectObj_miny_set", _wrap_rectObj_miny_set},
-{"mapscriptc::rectObj_miny_get", _wrap_rectObj_miny_get},
-{"mapscriptc::rectObj_maxx_set", _wrap_rectObj_maxx_set},
-{"mapscriptc::rectObj_maxx_get", _wrap_rectObj_maxx_get},
-{"mapscriptc::rectObj_maxy_set", _wrap_rectObj_maxy_set},
-{"mapscriptc::rectObj_maxy_get", _wrap_rectObj_maxy_get},
-{"mapscriptc::new_rectObj", _wrap_new_rectObj},
-{"mapscriptc::delete_rectObj", _wrap_delete_rectObj},
-{"mapscriptc::rectObj_project", _wrap_rectObj_project},
-{"mapscriptc::rectObj_fit", _wrap_rectObj_fit},
-{"mapscriptc::rectObj_draw", _wrap_rectObj_draw},
-{"mapscriptc::rectObj_getCenter", _wrap_rectObj_getCenter},
-{"mapscriptc::rectObj_toPolygon", _wrap_rectObj_toPolygon},
-{"mapscriptc::rectObj_toString", _wrap_rectObj_toString},
-{"mapscriptc::pointObj_x_set", _wrap_pointObj_x_set},
-{"mapscriptc::pointObj_x_get", _wrap_pointObj_x_get},
-{"mapscriptc::pointObj_y_set", _wrap_pointObj_y_set},
-{"mapscriptc::pointObj_y_get", _wrap_pointObj_y_get},
-{"mapscriptc::new_pointObj", _wrap_new_pointObj},
-{"mapscriptc::delete_pointObj", _wrap_delete_pointObj},
-{"mapscriptc::pointObj_project", _wrap_pointObj_project},
-{"mapscriptc::pointObj_draw", _wrap_pointObj_draw},
-{"mapscriptc::pointObj_distanceToPoint", _wrap_pointObj_distanceToPoint},
-{"mapscriptc::pointObj_distanceToSegment", _wrap_pointObj_distanceToSegment},
-{"mapscriptc::pointObj_distanceToShape", _wrap_pointObj_distanceToShape},
-{"mapscriptc::pointObj_setXY", _wrap_pointObj_setXY},
-{"mapscriptc::pointObj_setXYZ", _wrap_pointObj_setXYZ},
-{"mapscriptc::pointObj_setXYZM", _wrap_pointObj_setXYZM},
-{"mapscriptc::pointObj_toString", _wrap_pointObj_toString},
-{"mapscriptc::pointObj_toShape", _wrap_pointObj_toShape},
-{"mapscriptc::lineObj_numpoints_get", _wrap_lineObj_numpoints_get},
-{"mapscriptc::new_lineObj", _wrap_new_lineObj},
-{"mapscriptc::delete_lineObj", _wrap_delete_lineObj},
-{"mapscriptc::lineObj_project", _wrap_lineObj_project},
-{"mapscriptc::lineObj_get", _wrap_lineObj_get},
-{"mapscriptc::lineObj_add", _wrap_lineObj_add},
-{"mapscriptc::lineObj_set", _wrap_lineObj_set},
-{"mapscriptc::shapeObj_numlines_get", _wrap_shapeObj_numlines_get},
-{"mapscriptc::shapeObj_numvalues_get", _wrap_shapeObj_numvalues_get},
-{"mapscriptc::shapeObj_bounds_set", _wrap_shapeObj_bounds_set},
-{"mapscriptc::shapeObj_bounds_get", _wrap_shapeObj_bounds_get},
-{"mapscriptc::shapeObj_type_set", _wrap_shapeObj_type_set},
-{"mapscriptc::shapeObj_type_get", _wrap_shapeObj_type_get},
-{"mapscriptc::shapeObj_index_set", _wrap_shapeObj_index_set},
-{"mapscriptc::shapeObj_index_get", _wrap_shapeObj_index_get},
-{"mapscriptc::shapeObj_tileindex_set", _wrap_shapeObj_tileindex_set},
-{"mapscriptc::shapeObj_tileindex_get", _wrap_shapeObj_tileindex_get},
-{"mapscriptc::shapeObj_classindex_set", _wrap_shapeObj_classindex_set},
-{"mapscriptc::shapeObj_classindex_get", _wrap_shapeObj_classindex_get},
-{"mapscriptc::shapeObj_text_set", _wrap_shapeObj_text_set},
-{"mapscriptc::shapeObj_text_get", _wrap_shapeObj_text_get},
-{"mapscriptc::shapeObj_scratch_set", _wrap_shapeObj_scratch_set},
-{"mapscriptc::shapeObj_scratch_get", _wrap_shapeObj_scratch_get},
-{"mapscriptc::shapeObj_resultindex_set", _wrap_shapeObj_resultindex_set},
-{"mapscriptc::shapeObj_resultindex_get", _wrap_shapeObj_resultindex_get},
-{"mapscriptc::new_shapeObj", _wrap_new_shapeObj},
-{"mapscriptc::delete_shapeObj", _wrap_delete_shapeObj},
-{"mapscriptc::shapeObj_fromWKT", _wrap_shapeObj_fromWKT},
-{"mapscriptc::shapeObj_project", _wrap_shapeObj_project},
-{"mapscriptc::shapeObj_get", _wrap_shapeObj_get},
-{"mapscriptc::shapeObj_add", _wrap_shapeObj_add},
-{"mapscriptc::shapeObj_draw", _wrap_shapeObj_draw},
-{"mapscriptc::shapeObj_setBounds", _wrap_shapeObj_setBounds},
-{"mapscriptc::shapeObj_clone", _wrap_shapeObj_clone},
-{"mapscriptc::shapeObj_copy", _wrap_shapeObj_copy},
-{"mapscriptc::shapeObj_toWKT", _wrap_shapeObj_toWKT},
-{"mapscriptc::shapeObj_buffer", _wrap_shapeObj_buffer},
-{"mapscriptc::shapeObj_simplify", _wrap_shapeObj_simplify},
-{"mapscriptc::shapeObj_topologyPreservingSimplify", _wrap_shapeObj_topologyPreservingSimplify},
-{"mapscriptc::shapeObj_convexHull", _wrap_shapeObj_convexHull},
-{"mapscriptc::shapeObj_boundary", _wrap_shapeObj_boundary},
-{"mapscriptc::shapeObj_getCentroid", _wrap_shapeObj_getCentroid},
-{"mapscriptc::shapeObj_Union", _wrap_shapeObj_Union},
-{"mapscriptc::shapeObj_intersection", _wrap_shapeObj_intersection},
-{"mapscriptc::shapeObj_difference", _wrap_shapeObj_difference},
-{"mapscriptc::shapeObj_symDifference", _wrap_shapeObj_symDifference},
-{"mapscriptc::shapeObj_overlaps", _wrap_shapeObj_overlaps},
-{"mapscriptc::shapeObj_within", _wrap_shapeObj_within},
-{"mapscriptc::shapeObj_crosses", _wrap_shapeObj_crosses},
-{"mapscriptc::shapeObj_intersects", _wrap_shapeObj_intersects},
-{"mapscriptc::shapeObj_touches", _wrap_shapeObj_touches},
-{"mapscriptc::shapeObj_equals", _wrap_shapeObj_equals},
-{"mapscriptc::shapeObj_disjoint", _wrap_shapeObj_disjoint},
-{"mapscriptc::shapeObj_getArea", _wrap_shapeObj_getArea},
-{"mapscriptc::shapeObj_getLength", _wrap_shapeObj_getLength},
-{"mapscriptc::shapeObj_getValue", _wrap_shapeObj_getValue},
-{"mapscriptc::shapeObj_contains", _wrap_shapeObj_contains},
-{"mapscriptc::shapeObj_distanceToPoint", _wrap_shapeObj_distanceToPoint},
-{"mapscriptc::shapeObj_distanceToShape", _wrap_shapeObj_distanceToShape},
-{"mapscriptc::shapeObj_getLabelPoint", _wrap_shapeObj_getLabelPoint},
-{"mapscriptc::shapeObj_setValue", _wrap_shapeObj_setValue},
-{"mapscriptc::shapeObj_initValues", _wrap_shapeObj_initValues},
-{"mapscriptc::DBFInfo_fp_get", _wrap_DBFInfo_fp_get},
-{"mapscriptc::DBFInfo_nRecords_get", _wrap_DBFInfo_nRecords_get},
-{"mapscriptc::DBFInfo_nRecordLength_get", _wrap_DBFInfo_nRecordLength_get},
-{"mapscriptc::DBFInfo_nHeaderLength_get", _wrap_DBFInfo_nHeaderLength_get},
-{"mapscriptc::DBFInfo_nFields_get", _wrap_DBFInfo_nFields_get},
-{"mapscriptc::DBFInfo_panFieldOffset_get", _wrap_DBFInfo_panFieldOffset_get},
-{"mapscriptc::DBFInfo_panFieldSize_get", _wrap_DBFInfo_panFieldSize_get},
-{"mapscriptc::DBFInfo_panFieldDecimals_get", _wrap_DBFInfo_panFieldDecimals_get},
-{"mapscriptc::DBFInfo_pachFieldType_get", _wrap_DBFInfo_pachFieldType_get},
-{"mapscriptc::DBFInfo_pszHeader_get", _wrap_DBFInfo_pszHeader_get},
-{"mapscriptc::DBFInfo_nCurrentRecord_get", _wrap_DBFInfo_nCurrentRecord_get},
-{"mapscriptc::DBFInfo_bCurrentRecordModified_get", _wrap_DBFInfo_bCurrentRecordModified_get},
-{"mapscriptc::DBFInfo_pszCurrentRecord_get", _wrap_DBFInfo_pszCurrentRecord_get},
-{"mapscriptc::DBFInfo_bNoHeader_get", _wrap_DBFInfo_bNoHeader_get},
-{"mapscriptc::DBFInfo_bUpdated_get", _wrap_DBFInfo_bUpdated_get},
-{"mapscriptc::DBFInfo_pszStringField_get", _wrap_DBFInfo_pszStringField_get},
-{"mapscriptc::DBFInfo_nStringFieldLen_get", _wrap_DBFInfo_nStringFieldLen_get},
-{"mapscriptc::DBFInfo_getFieldName", _wrap_DBFInfo_getFieldName},
-{"mapscriptc::DBFInfo_getFieldWidth", _wrap_DBFInfo_getFieldWidth},
-{"mapscriptc::DBFInfo_getFieldDecimals", _wrap_DBFInfo_getFieldDecimals},
-{"mapscriptc::DBFInfo_getFieldType", _wrap_DBFInfo_getFieldType},
-{"mapscriptc::new_DBFInfo", _wrap_new_DBFInfo},
-{"mapscriptc::delete_DBFInfo", _wrap_delete_DBFInfo},
-{"mapscriptc::shapefileObj_source_get", _wrap_shapefileObj_source_get},
-{"mapscriptc::shapefileObj_type_get", _wrap_shapefileObj_type_get},
-{"mapscriptc::shapefileObj_numshapes_get", _wrap_shapefileObj_numshapes_get},
-{"mapscriptc::shapefileObj_bounds_get", _wrap_shapefileObj_bounds_get},
-{"mapscriptc::shapefileObj_lastshape_get", _wrap_shapefileObj_lastshape_get},
-{"mapscriptc::shapefileObj_status_get", _wrap_shapefileObj_status_get},
-{"mapscriptc::shapefileObj_statusbounds_get", _wrap_shapefileObj_statusbounds_get},
-{"mapscriptc::shapefileObj_isopen_get", _wrap_shapefileObj_isopen_get},
-{"mapscriptc::new_shapefileObj", _wrap_new_shapefileObj},
-{"mapscriptc::delete_shapefileObj", _wrap_delete_shapefileObj},
-{"mapscriptc::shapefileObj_get", _wrap_shapefileObj_get},
-{"mapscriptc::shapefileObj_getShape", _wrap_shapefileObj_getShape},
-{"mapscriptc::shapefileObj_getPoint", _wrap_shapefileObj_getPoint},
-{"mapscriptc::shapefileObj_getTransformed", _wrap_shapefileObj_getTransformed},
-{"mapscriptc::shapefileObj_getExtent", _wrap_shapefileObj_getExtent},
-{"mapscriptc::shapefileObj_add", _wrap_shapefileObj_add},
-{"mapscriptc::shapefileObj_addPoint", _wrap_shapefileObj_addPoint},
-{"mapscriptc::shapefileObj_getDBF", _wrap_shapefileObj_getDBF},
-{"mapscriptc::projectionObj_numargs_get", _wrap_projectionObj_numargs_get},
-{"mapscriptc::projectionObj_automatic_get", _wrap_projectionObj_automatic_get},
-{"mapscriptc::projectionObj_wellknownprojection_set", _wrap_projectionObj_wellknownprojection_set},
-{"mapscriptc::projectionObj_wellknownprojection_get", _wrap_projectionObj_wellknownprojection_get},
-{"mapscriptc::new_projectionObj", _wrap_new_projectionObj},
-{"mapscriptc::delete_projectionObj", _wrap_delete_projectionObj},
-{"mapscriptc::projectionObj_setWKTProjection", _wrap_projectionObj_setWKTProjection},
-{"mapscriptc::projectionObj_getUnits", _wrap_projectionObj_getUnits},
-{"mapscriptc::colorObj_red_set", _wrap_colorObj_red_set},
-{"mapscriptc::colorObj_red_get", _wrap_colorObj_red_get},
-{"mapscriptc::colorObj_green_set", _wrap_colorObj_green_set},
-{"mapscriptc::colorObj_green_get", _wrap_colorObj_green_get},
-{"mapscriptc::colorObj_blue_set", _wrap_colorObj_blue_set},
-{"mapscriptc::colorObj_blue_get", _wrap_colorObj_blue_get},
-{"mapscriptc::colorObj_alpha_set", _wrap_colorObj_alpha_set},
-{"mapscriptc::colorObj_alpha_get", _wrap_colorObj_alpha_get},
-{"mapscriptc::new_colorObj", _wrap_new_colorObj},
-{"mapscriptc::delete_colorObj", _wrap_delete_colorObj},
-{"mapscriptc::colorObj_setRGB", _wrap_colorObj_setRGB},
-{"mapscriptc::colorObj_setHex", _wrap_colorObj_setHex},
-{"mapscriptc::colorObj_toHex", _wrap_colorObj_toHex},
-{"mapscriptc::symbolObj_name_set", _wrap_symbolObj_name_set},
-{"mapscriptc::symbolObj_name_get", _wrap_symbolObj_name_get},
-{"mapscriptc::symbolObj_type_set", _wrap_symbolObj_type_set},
-{"mapscriptc::symbolObj_type_get", _wrap_symbolObj_type_get},
-{"mapscriptc::symbolObj_inmapfile_set", _wrap_symbolObj_inmapfile_set},
-{"mapscriptc::symbolObj_inmapfile_get", _wrap_symbolObj_inmapfile_get},
-{"mapscriptc::symbolObj_sizex_set", _wrap_symbolObj_sizex_set},
-{"mapscriptc::symbolObj_sizex_get", _wrap_symbolObj_sizex_get},
-{"mapscriptc::symbolObj_sizey_set", _wrap_symbolObj_sizey_set},
-{"mapscriptc::symbolObj_sizey_get", _wrap_symbolObj_sizey_get},
-{"mapscriptc::symbolObj_minx_set", _wrap_symbolObj_minx_set},
-{"mapscriptc::symbolObj_minx_get", _wrap_symbolObj_minx_get},
-{"mapscriptc::symbolObj_miny_set", _wrap_symbolObj_miny_set},
-{"mapscriptc::symbolObj_miny_get", _wrap_symbolObj_miny_get},
-{"mapscriptc::symbolObj_maxx_set", _wrap_symbolObj_maxx_set},
-{"mapscriptc::symbolObj_maxx_get", _wrap_symbolObj_maxx_get},
-{"mapscriptc::symbolObj_maxy_set", _wrap_symbolObj_maxy_set},
-{"mapscriptc::symbolObj_maxy_get", _wrap_symbolObj_maxy_get},
-{"mapscriptc::symbolObj_refcount_get", _wrap_symbolObj_refcount_get},
-{"mapscriptc::symbolObj_numpoints_get", _wrap_symbolObj_numpoints_get},
-{"mapscriptc::symbolObj_filled_set", _wrap_symbolObj_filled_set},
-{"mapscriptc::symbolObj_filled_get", _wrap_symbolObj_filled_get},
-{"mapscriptc::symbolObj_anchorpoint_x_set", _wrap_symbolObj_anchorpoint_x_set},
-{"mapscriptc::symbolObj_anchorpoint_x_get", _wrap_symbolObj_anchorpoint_x_get},
-{"mapscriptc::symbolObj_anchorpoint_y_set", _wrap_symbolObj_anchorpoint_y_set},
-{"mapscriptc::symbolObj_anchorpoint_y_get", _wrap_symbolObj_anchorpoint_y_get},
-{"mapscriptc::symbolObj_imagepath_get", _wrap_symbolObj_imagepath_get},
-{"mapscriptc::symbolObj_transparent_set", _wrap_symbolObj_transparent_set},
-{"mapscriptc::symbolObj_transparent_get", _wrap_symbolObj_transparent_get},
-{"mapscriptc::symbolObj_transparentcolor_set", _wrap_symbolObj_transparentcolor_set},
-{"mapscriptc::symbolObj_transparentcolor_get", _wrap_symbolObj_transparentcolor_get},
-{"mapscriptc::symbolObj_character_set", _wrap_symbolObj_character_set},
-{"mapscriptc::symbolObj_character_get", _wrap_symbolObj_character_get},
-{"mapscriptc::symbolObj_antialias_set", _wrap_symbolObj_antialias_set},
-{"mapscriptc::symbolObj_antialias_get", _wrap_symbolObj_antialias_get},
-{"mapscriptc::symbolObj_font_set", _wrap_symbolObj_font_set},
-{"mapscriptc::symbolObj_font_get", _wrap_symbolObj_font_get},
-{"mapscriptc::new_symbolObj", _wrap_new_symbolObj},
-{"mapscriptc::delete_symbolObj", _wrap_delete_symbolObj},
-{"mapscriptc::symbolObj_setImagepath", _wrap_symbolObj_setImagepath},
-{"mapscriptc::symbolObj_setPoints", _wrap_symbolObj_setPoints},
-{"mapscriptc::symbolObj_getPoints", _wrap_symbolObj_getPoints},
-{"mapscriptc::symbolObj_getImage", _wrap_symbolObj_getImage},
-{"mapscriptc::symbolObj_setImage", _wrap_symbolObj_setImage},
-{"mapscriptc::errorObj_code_set", _wrap_errorObj_code_set},
-{"mapscriptc::errorObj_code_get", _wrap_errorObj_code_get},
-{"mapscriptc::errorObj_routine_set", _wrap_errorObj_routine_set},
-{"mapscriptc::errorObj_routine_get", _wrap_errorObj_routine_get},
-{"mapscriptc::errorObj_message_set", _wrap_errorObj_message_set},
-{"mapscriptc::errorObj_message_get", _wrap_errorObj_message_get},
-{"mapscriptc::errorObj_isreported_set", _wrap_errorObj_isreported_set},
-{"mapscriptc::errorObj_isreported_get", _wrap_errorObj_isreported_get},
-{"mapscriptc::new_errorObj", _wrap_new_errorObj},
-{"mapscriptc::delete_errorObj", _wrap_delete_errorObj},
-{"mapscriptc::errorObj_next", _wrap_errorObj_next},
-{"mapscriptc::msGetErrorObj", _wrap_msGetErrorObj},
-{"mapscriptc::msResetErrorList", _wrap_msResetErrorList},
-{"mapscriptc::msGetVersion", _wrap_msGetVersion},
-{"mapscriptc::msGetVersionInt", _wrap_msGetVersionInt},
-{"mapscriptc::msGetErrorString", _wrap_msGetErrorString},
-{"mapscriptc::hashTableObj_numitems_get", _wrap_hashTableObj_numitems_get},
-{"mapscriptc::new_hashTableObj", _wrap_new_hashTableObj},
-{"mapscriptc::delete_hashTableObj", _wrap_delete_hashTableObj},
-{"mapscriptc::hashTableObj_set", _wrap_hashTableObj_set},
-{"mapscriptc::hashTableObj_get", _wrap_hashTableObj_get},
-{"mapscriptc::hashTableObj_remove", _wrap_hashTableObj_remove},
-{"mapscriptc::hashTableObj_clear", _wrap_hashTableObj_clear},
-{"mapscriptc::hashTableObj_nextKey", _wrap_hashTableObj_nextKey},
-{"mapscriptc::OWSRequest_NumParams_get", _wrap_OWSRequest_NumParams_get},
-{"mapscriptc::OWSRequest_type_set", _wrap_OWSRequest_type_set},
-{"mapscriptc::OWSRequest_type_get", _wrap_OWSRequest_type_get},
-{"mapscriptc::OWSRequest_contenttype_set", _wrap_OWSRequest_contenttype_set},
-{"mapscriptc::OWSRequest_contenttype_get", _wrap_OWSRequest_contenttype_get},
-{"mapscriptc::OWSRequest_postrequest_set", _wrap_OWSRequest_postrequest_set},
-{"mapscriptc::OWSRequest_postrequest_get", _wrap_OWSRequest_postrequest_get},
-{"mapscriptc::OWSRequest_httpcookiedata_set", _wrap_OWSRequest_httpcookiedata_set},
-{"mapscriptc::OWSRequest_httpcookiedata_get", _wrap_OWSRequest_httpcookiedata_get},
-{"mapscriptc::new_OWSRequest", _wrap_new_OWSRequest},
-{"mapscriptc::delete_OWSRequest", _wrap_delete_OWSRequest},
-{"mapscriptc::OWSRequest_loadParams", _wrap_OWSRequest_loadParams},
-{"mapscriptc::OWSRequest_loadParamsFromURL", _wrap_OWSRequest_loadParamsFromURL},
-{"mapscriptc::OWSRequest_setParameter", _wrap_OWSRequest_setParameter},
-{"mapscriptc::OWSRequest_addParameter", _wrap_OWSRequest_addParameter},
-{"mapscriptc::OWSRequest_getName", _wrap_OWSRequest_getName},
-{"mapscriptc::OWSRequest_getValue", _wrap_OWSRequest_getValue},
-{"mapscriptc::OWSRequest_getValueByName", _wrap_OWSRequest_getValueByName},
-{"mapscriptc::msConnPoolCloseUnreferenced", _wrap_msConnPoolCloseUnreferenced},
-{"mapscriptc::msIO_resetHandlers", _wrap_msIO_resetHandlers},
-{"mapscriptc::msIO_installStdoutToBuffer", _wrap_msIO_installStdoutToBuffer},
-{"mapscriptc::msIO_installStdinFromBuffer", _wrap_msIO_installStdinFromBuffer},
-{"mapscriptc::msIO_stripStdoutBufferContentType", _wrap_msIO_stripStdoutBufferContentType},
-{"mapscriptc::msIO_stripStdoutBufferContentHeaders", _wrap_msIO_stripStdoutBufferContentHeaders},
-{"mapscriptc::msIO_getStdoutBufferString", _wrap_msIO_getStdoutBufferString},
-{"mapscriptc::msIO_getStdoutBufferBytes", _wrap_msIO_getStdoutBufferBytes},
-{0,0}
-};
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic 
- * memory is used. Also, since swig_type_info structures store pointers to 
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization. 
- * The idea is that swig generates all the structures that are needed. 
- * The runtime then collects these partially filled structures. 
- * The SWIG_InitializeModule function takes these initial arrays out of 
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial 
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it 
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded. 
- * There are three cases to handle:
- *  1) If the cast->type has already been loaded AND the type we are adding
- *     casting info to has not been loaded (it is in this module), THEN we
- *     replace the cast->type pointer with the type pointer that has already
- *     been loaded.
- *  2) If BOTH types (the one we are adding casting info to, and the 
- *     cast->type) are loaded, THEN the cast info has already been loaded by
- *     the previous module so we just ignore it.
- *  3) Finally, if cast->type has not already been loaded, then we add that
- *     swig_cast_info to the linked list (because the cast->type) pointer will
- *     be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
-  size_t i;
-  swig_module_info *module_head, *iter;
-  int found, init;
-  
-  clientdata = clientdata;
-  
-  /* check to see if the circular list has been setup, if not, set it up */
-  if (swig_module.next==0) {
-    /* Initialize the swig_module */
-    swig_module.type_initial = swig_type_initial;
-    swig_module.cast_initial = swig_cast_initial;
-    swig_module.next = &swig_module;
-    init = 1;
-  } else {
-    init = 0;
-  }
-  
-  /* Try and load any already created modules */
-  module_head = SWIG_GetModule(clientdata);
-  if (!module_head) {
-    /* This is the first module loaded for this interpreter */
-    /* so set the swig module into the interpreter */
-    SWIG_SetModule(clientdata, &swig_module);
-    module_head = &swig_module;
-  } else {
-    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
-    found=0;
-    iter=module_head;
-    do {
-      if (iter==&swig_module) {
-        found=1;
-        break;
-      }
-      iter=iter->next;
-    } while (iter!= module_head);
-    
-    /* if the is found in the list, then all is done and we may leave */
-    if (found) return;
-    /* otherwise we must add out module into the list */
-    swig_module.next = module_head->next;
-    module_head->next = &swig_module;
-  }
-  
-  /* When multiple interpeters are used, a module could have already been initialized in
-       a different interpreter, but not yet have a pointer in this interpreter.
-       In this case, we do not want to continue adding types... everything should be
-       set up already */
-  if (init == 0) return;
-  
-  /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
-  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
-  for (i = 0; i < swig_module.size; ++i) {
-    swig_type_info *type = 0;
-    swig_type_info *ret;
-    swig_cast_info *cast;
-    
-#ifdef SWIGRUNTIME_DEBUG
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-    
-    /* if there is another module already loaded */
-    if (swig_module.next != &swig_module) {
-      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
-    }
-    if (type) {
-      /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
-      if (swig_module.type_initial[i]->clientdata) {
-        type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
-      }
-    } else {
-      type = swig_module.type_initial[i];
-    }
-    
-    /* Insert casting types */
-    cast = swig_module.cast_initial[i];
-    while (cast->type) {
-      /* Don't need to add information already in the list */
-      ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
-      if (swig_module.next != &swig_module) {
-        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
-        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
-      }
-      if (ret) {
-        if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
-          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
-          cast->type = ret;
-          ret = 0;
-        } else {
-          /* Check for casting already in the list */
-          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
-          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
-          if (!ocast) ret = 0;
-        }
-      }
-      
-      if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
-        if (type->cast) {
-          type->cast->prev = cast;
-          cast->next = type->cast;
-        }
-        type->cast = cast;
-      }
-      cast++;
-    }
-    /* Set entry in modules->types array equal to the type */
-    swig_module.types[i] = type;
-  }
-  swig_module.types[i] = 0;
-  
-#ifdef SWIGRUNTIME_DEBUG
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-  for (i = 0; i < swig_module.size; ++i) {
-    int j = 0;
-    swig_cast_info *cast = swig_module.cast_initial[i];
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-    while (cast->type) {
-      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
-      cast++;
-      ++j;
-    }
-    printf("---- Total casts: %d\n",j);
-  }
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types.  It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
-  size_t i;
-  swig_cast_info *equiv;
-  static int init_run = 0;
-  
-  if (init_run) return;
-  init_run = 1;
-  
-  for (i = 0; i < swig_module.size; i++) {
-    if (swig_module.types[i]->clientdata) {
-      equiv = swig_module.types[i]->cast;
-      while (equiv) {
-        if (!equiv->converter) {
-          if (equiv->type && !equiv->type->clientdata)
-          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
-        }
-        equiv = equiv->next;
-      }
-    }
-  }
-}
-
-#ifdef __cplusplus
-#if 0
-{
-  /* c-mode */
-#endif
-}
-#endif
-
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-XS(SWIG_init) {
-  dXSARGS;
-  int i;
-  
-  SWIG_InitializeModule(0);
-  
-  /* Install commands */
-  for (i = 0; swig_commands[i].name; i++) {
-    // Casts only needed for Perl < 5.10.
-#ifdef __cplusplus
-    newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
-#else
-    newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
-#endif
-  }
-  
-  /* Install variables */
-  for (i = 0; swig_variables[i].name; i++) {
-    SV *sv;
-    sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
-    if (swig_variables[i].type) {
-      SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
-    } else {
-      sv_setiv(sv,(IV) 0);
-    }
-    swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); 
-  }
-  
-  /* Install constant */
-  for (i = 0; swig_constants[i].type; i++) {
-    SV *sv;
-    sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
-    switch(swig_constants[i].type) {
-    case SWIG_INT:
-      sv_setiv(sv, (IV) swig_constants[i].lvalue);
-      break;
-    case SWIG_FLOAT:
-      sv_setnv(sv, (double) swig_constants[i].dvalue);
-      break;
-    case SWIG_STRING:
-      sv_setpv(sv, (const char *) swig_constants[i].pvalue);
-      break;
-    case SWIG_POINTER:
-      SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
-      break;
-    case SWIG_BINARY:
-      SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
-      break;
-    default:
-      break;
-    }
-    SvREADONLY_on(sv);
-  }
-  
-  SWIG_TypeClientData(SWIGTYPE_p_intarray, (void*) "mapscript::intarray");
-  
-  if(msSetup() != MS_SUCCESS) {
-    msSetError(MS_MISCERR, "Error initializing MapServer/Mapscript.", "msSetup()");
-  }
-  
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRUE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FALSE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UNKNOWN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(-1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ON", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_OFF", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEFAULT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_EMBED", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DELETE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(4)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_YES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NO", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GD_ALPHA", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1000)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_ALLOCSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(64)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CLASS_ALLOCSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(8)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_ALLOCSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(4)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_ALLOCSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MAX_LABEL_PRIORITY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(10)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MAX_LABEL_FONTS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(5)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEFAULT_LABEL_PRIORITY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_FORCE_GROUP", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_SWF", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_RAWDATA", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_IMAGEMAP", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(5)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_TEMPLATE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(8)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_OGR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(16)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_PLUGIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(100)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_CAIRO_RASTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(101)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_CAIRO_PDF", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(102)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_CAIRO_SVG", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(103)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_OGL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(104)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_AGG", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(105)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_GD", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(106)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDER_WITH_KML", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(107)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FILE_MAP", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_FILE_MAP)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FILE_SYMBOL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_FILE_SYMBOL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_INCHES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_INCHES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FEET", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_FEET)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MILES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_MILES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_METERS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_METERS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_KILOMETERS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_KILOMETERS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DD", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DD)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PIXELS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PIXELS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PERCENTAGES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PERCENTAGES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NAUTICALMILES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_NAUTICALMILES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPE_POINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SHAPE_POINT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPE_LINE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SHAPE_LINE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPE_POLYGON", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SHAPE_POLYGON)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPE_NULL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SHAPE_NULL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_POINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_POINT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_LINE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_LINE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_POLYGON", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_POLYGON)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_RASTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_RASTER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_ANNOTATION", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_ANNOTATION)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_QUERY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_QUERY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_CIRCLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_CIRCLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_TILEINDEX", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_TILEINDEX)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LAYER_CHART", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LAYER_CHART)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRUETYPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRUETYPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_BITMAP", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_BITMAP)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_POSITIONS_LENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(14)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UC", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UC)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LC", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LC)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CC", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CC)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_AUTO", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_AUTO)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_XY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_XY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FOLLOW", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_FOLLOW)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NONE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_NONE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_AUTO2", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_AUTO2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TINY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TINY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SMALL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SMALL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MEDIUM", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_MEDIUM)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LARGE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LARGE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GIANT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GIANT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NORMAL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_NORMAL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_HILITE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_HILITE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SELECTED", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SELECTED)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_INLINE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_INLINE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPEFILE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SHAPEFILE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TILED_SHAPEFILE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TILED_SHAPEFILE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SDE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SDE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_OGR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_OGR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UNUSED_1", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UNUSED_1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_POSTGIS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_POSTGIS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WMS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_WMS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ORACLESPATIAL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_ORACLESPATIAL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WFS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_WFS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GRATICULE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GRATICULE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MYSQL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_MYSQL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RASTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_RASTER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PLUGIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PLUGIN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UNION", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UNION)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_UVRASTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_UVRASTER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CONTOUR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CONTOUR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DB_XBASE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DB_XBASE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DB_CSV", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DB_CSV)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DB_MYSQL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DB_MYSQL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DB_ORACLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DB_ORACLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DB_POSTGRES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DB_POSTGRES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_JOIN_ONE_TO_ONE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_JOIN_ONE_TO_ONE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_JOIN_ONE_TO_MANY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_JOIN_ONE_TO_MANY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SINGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MULTIPLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_SINGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_SINGLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_MULTIPLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_MULTIPLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_IS_NULL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_IS_NULL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_POINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_POINT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_RECT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_RECT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_SHAPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_SHAPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_ATTRIBUTE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_ATTRIBUTE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_INDEX", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_INDEX)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERY_BY_FILTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_QUERY_BY_FILTER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ALIGN_LEFT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_ALIGN_LEFT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ALIGN_CENTER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_ALIGN_CENTER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ALIGN_RIGHT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_ALIGN_RIGHT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_NONE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_NONE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_BEVEL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_BEVEL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_BUTT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_BUTT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_MITER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_MITER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_ROUND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_ROUND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_SQUARE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_SQUARE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_TRIANGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_CJC_TRIANGLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CJC_DEFAULT_JOIN_MAXSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SUCCESS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SUCCESS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_FAILURE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_FAILURE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DONE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DONE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_PC256", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_PC256)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_RGB", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_RGB)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_RGBA", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_RGBA)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_INT16", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_INT16)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_FLOAT32", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_FLOAT32)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_BYTE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_BYTE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_FEATURE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_FEATURE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGEMODE_NULL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_IMAGEMODE_NULL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_EQUALS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_EQUALS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_DISJOINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_DISJOINT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_TOUCHES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_TOUCHES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_OVERLAPS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_OVERLAPS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_CROSSES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_CROSSES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_INTERSECTS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_INTERSECTS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_WITHIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_WITHIN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_CONTAINS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_CONTAINS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_BEYOND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_BEYOND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOS_DWITHIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GEOS_DWITHIN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRANSFORM_NONE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRANSFORM_NONE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRANSFORM_ROUND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRANSFORM_ROUND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRANSFORM_SNAPTOGRID", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRANSFORM_SNAPTOGRID)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRANSFORM_FULLRESOLUTION", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRANSFORM_FULLRESOLUTION)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TRANSFORM_SIMPLIFY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TRANSFORM_SIMPLIFY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_LENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(12)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_SIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_SIZE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_WIDTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_WIDTH)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_ANGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_ANGLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_COLOR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_COLOR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_OUTLINECOLOR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_OUTLINECOLOR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_SYMBOL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_SYMBOL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_OUTLINEWIDTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_OUTLINEWIDTH)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_OPACITY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_OPACITY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_OFFSET_X", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_OFFSET_X)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_OFFSET_Y", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_OFFSET_Y)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_POLAROFFSET_PIXEL", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_POLAROFFSET_PIXEL)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_STYLE_BINDING_POLAROFFSET_ANGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_STYLE_BINDING_POLAROFFSET_ANGLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_LENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(9)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_SIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_SIZE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_ANGLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_ANGLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_COLOR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_COLOR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_OUTLINECOLOR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_OUTLINECOLOR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_FONT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_FONT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_PRIORITY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_PRIORITY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_POSITION", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_POSITION)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_SHADOWSIZEX", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_SHADOWSIZEX)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_LABEL_BINDING_SHADOWSIZEY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_LABEL_BINDING_SHADOWSIZEY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_fontSetObj, (void*) "mapscript::fontSetObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LOGICAL_AND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LOGICAL_AND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LOGICAL_OR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LOGICAL_OR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LOGICAL_NOT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LOGICAL_NOT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LITERAL_NUMBER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LITERAL_NUMBER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LITERAL_STRING", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LITERAL_STRING)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LITERAL_TIME", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LITERAL_TIME)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_LITERAL_SHAPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_LITERAL_SHAPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_EQ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_EQ)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_NE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_NE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_GT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_GT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_LT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_LT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_LE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_LE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_GE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_GE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_IEQ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_IEQ)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_RE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_RE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_IRE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_IRE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_IN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_IN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_LIKE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_LIKE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_INTERSECTS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_INTERSECTS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_DISJOINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_DISJOINT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_TOUCHES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_TOUCHES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_OVERLAPS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_OVERLAPS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_CROSSES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_CROSSES)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_WITHIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_WITHIN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_CONTAINS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_CONTAINS)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_BEYOND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_BEYOND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_COMPARISON_DWITHIN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_COMPARISON_DWITHIN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_LENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_LENGTH)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_TOSTRING", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_TOSTRING)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_COMMIFY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_COMMIFY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_AREA", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_AREA)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_ROUND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_ROUND)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_FROMTEXT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_FROMTEXT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_BUFFER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_BUFFER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_DIFFERENCE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_DIFFERENCE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_SIMPLIFY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_SIMPLIFY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_SIMPLIFYPT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_SIMPLIFYPT)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_GENERALIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_GENERALIZE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_FUNCTION_SMOOTHSIA", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_FUNCTION_SMOOTHSIA)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_DOUBLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_DOUBLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_INTEGER", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_INTEGER)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_STRING", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_STRING)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_TIME", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_TIME)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_SHAPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_SHAPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_MAP_CELLSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_MAP_CELLSIZE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TOKEN_BINDING_DATA_CELLSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_TOKEN_BINDING_DATA_CELLSIZE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PARSE_TYPE_BOOLEAN", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PARSE_TYPE_BOOLEAN)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PARSE_TYPE_STRING", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PARSE_TYPE_STRING)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PARSE_TYPE_SHAPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_PARSE_TYPE_SHAPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_clusterObj, (void*) "mapscript::clusterObj");
-  SWIG_TypeClientData(SWIGTYPE_p_outputFormatObj, (void*) "mapscript::outputFormatObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NOOVERRIDE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(-1111)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_queryMapObj, (void*) "mapscript::queryMapObj");
-  SWIG_TypeClientData(SWIGTYPE_p_webObj, (void*) "mapscript::webObj");
-  SWIG_TypeClientData(SWIGTYPE_p_styleObj, (void*) "mapscript::styleObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelLeaderObj, (void*) "mapscript::labelLeaderObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelObj, (void*) "mapscript::labelObj");
-  SWIG_TypeClientData(SWIGTYPE_p_classObj, (void*) "mapscript::classObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelCacheMemberObj, (void*) "mapscript::labelCacheMemberObj");
-  SWIG_TypeClientData(SWIGTYPE_p_markerCacheMemberObj, (void*) "mapscript::markerCacheMemberObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelCacheSlotObj, (void*) "mapscript::labelCacheSlotObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelCacheObj, (void*) "mapscript::labelCacheObj");
-  SWIG_TypeClientData(SWIGTYPE_p_resultObj, (void*) "mapscript::resultObj");
-  SWIG_TypeClientData(SWIGTYPE_p_resultCacheObj, (void*) "mapscript::resultCacheObj");
-  SWIG_TypeClientData(SWIGTYPE_p_symbolSetObj, (void*) "mapscript::symbolSetObj");
-  SWIG_TypeClientData(SWIGTYPE_p_referenceMapObj, (void*) "mapscript::referenceMapObj");
-  SWIG_TypeClientData(SWIGTYPE_p_scalebarObj, (void*) "mapscript::scalebarObj");
-  SWIG_TypeClientData(SWIGTYPE_p_legendObj, (void*) "mapscript::legendObj");
-  SWIG_TypeClientData(SWIGTYPE_p_imageObj, (void*) "mapscript::imageObj");
-  SWIG_TypeClientData(SWIGTYPE_p_scaleTokenEntryObj, (void*) "mapscript::scaleTokenEntryObj");
-  SWIG_TypeClientData(SWIGTYPE_p_scaleTokenObj, (void*) "mapscript::scaleTokenObj");
-  SWIG_TypeClientData(SWIGTYPE_p_layerObj, (void*) "mapscript::layerObj");
-  SWIG_TypeClientData(SWIGTYPE_p_mapObj, (void*) "mapscript::mapObj");
-  SWIG_TypeClientData(SWIGTYPE_p_strokeStyleObj, (void*) "mapscript::strokeStyleObj");
-  SWIG_TypeClientData(SWIGTYPE_p_symbolStyleObj, (void*) "mapscript::symbolStyleObj");
-  SWIG_TypeClientData(SWIGTYPE_p_tileCacheObj, (void*) "mapscript::tileCacheObj");
-  SWIG_TypeClientData(SWIGTYPE_p_labelStyleObj, (void*) "mapscript::labelStyleObj");
-  SWIG_TypeClientData(SWIGTYPE_p_rectObj, (void*) "mapscript::rectObj");
-  SWIG_TypeClientData(SWIGTYPE_p_pointObj, (void*) "mapscript::pointObj");
-  SWIG_TypeClientData(SWIGTYPE_p_lineObj, (void*) "mapscript::lineObj");
-  SWIG_TypeClientData(SWIGTYPE_p_shapeObj, (void*) "mapscript::shapeObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "SHX_BUFFER_PAGE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1024)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPEFILE_POINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPEFILE_ARC", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPEFILE_POLYGON", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(5)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHAPEFILE_MULTIPOINT", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(8)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_POINTZ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(11)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_ARCZ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(13)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_POLYGONZ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(15)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_MULTIPOINTZ", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(18)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_POINTM", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(21)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_ARCM", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(23)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_POLYGONM", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(25)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHP_MULTIPOINTM", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(28)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_DBFInfo, (void*) "mapscript::DBFInfo");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "FTString", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FTString)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "FTInteger", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FTInteger)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "FTDouble", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FTDouble)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "FTInvalid", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FTInvalid)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_shapefileObj, (void*) "mapscript::shapefileObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "wkp_none", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "wkp_lonlat", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "wkp_gmerc", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_projectionObj, (void*) "mapscript::projectionObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_SIMPLE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_SIMPLE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_VECTOR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_VECTOR)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_ELLIPSE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_ELLIPSE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_PIXMAP", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_PIXMAP)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_TRUETYPE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_TRUETYPE)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_HATCH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_HATCH)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_SVG", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_SYMBOL_SVG)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMBOL_ALLOCSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(64)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MAXVECTORPOINTS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(100)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MAXPATTERNLENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(10)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMAGECACHESIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(6)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_colorObj, (void*) "mapscript::colorObj");
-  SWIG_TypeClientData(SWIGTYPE_p_symbolObj, (void*) "mapscript::symbolObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NOERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(0)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IOERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MEMERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TYPEERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SYMERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(4)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_REGEXERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(5)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TTFERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(6)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DBFERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(7)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GDERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(8)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IDENTERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(9)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_EOFERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(10)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PROJERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(11)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MISCERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(12)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CGIERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(13)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WEBERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(14)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_IMGERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(15)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_HASHERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(16)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_JOINERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(17)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NOTFOUND", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(18)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SHPERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(19)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_PARSEERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(20)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SDEERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(21)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_OGRERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(22)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_QUERYERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(23)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WMSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(24)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WMSCONNERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(25)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ORACLESPATIALERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(26)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WFSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(27)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WFSCONNERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(28)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_MAPCONTEXTERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(29)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_HTTPERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(30)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_CHILDERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(31)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_WCSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(32)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GEOSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(33)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RECTERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(34)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_TIMEERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(35)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GMLERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(36)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_SOSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(37)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NULLPARENTERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(38)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_AGGERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(39)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_OWSERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(40)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_OGLERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(42)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_RENDERERERR", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(43)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_NUMERRORCODES", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(44)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MESSAGELENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(2048)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "ROUTINELENGTH", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(64)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_ERROR_LANGUAGE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_FromCharPtr("en-US"));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_errorObj, (void*) "mapscript::errorObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_ERRORSONLY", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_ERRORSONLY)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_DEBUG", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_DEBUG)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_TUNING", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_TUNING)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_V", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_V)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_VV", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_VV)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEBUGLEVEL_VVV", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_DEBUGLEVEL_VVV)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_HASHSIZE", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(41)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_hashTableObj, (void*) "mapscript::hashTableObj");
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_DEFAULT_CGI_PARAMS", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(100)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_GET_REQUEST", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_GET_REQUEST)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  /*@SWIG:/usr/share/swig2.0/perl5/perltypemaps.swg,65,%set_constant@*/ do {
-    SV *sv = get_sv((char*) SWIG_prefix "MS_POST_REQUEST", TRUE | 0x2 | GV_ADDMULTI);
-    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MS_POST_REQUEST)));
-    SvREADONLY_on(sv);
-  } while(0) /*@SWIG@*/;
-  SWIG_TypeClientData(SWIGTYPE_p_cgiRequestObj, (void*) "mapscript::OWSRequest");
-  ST(0) = &PL_sv_yes;
-  XSRETURN(1);
-}
-
diff --git a/mapscript/python/mapscript.py b/mapscript/python/mapscript.py
deleted file mode 100644
index 93ce560..0000000
--- a/mapscript/python/mapscript.py
+++ /dev/null
@@ -1,2711 +0,0 @@
-# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 2.0.7
-#
-# Do not make changes to this file unless you know what you are doing--modify
-# the SWIG interface file instead.
-
-
-
-from sys import version_info
-if version_info >= (2,6,0):
-    def swig_import_helper():
-        from os.path import dirname
-        import imp
-        fp = None
-        try:
-            fp, pathname, description = imp.find_module('_mapscript', [dirname(__file__)])
-        except ImportError:
-            import _mapscript
-            return _mapscript
-        if fp is not None:
-            try:
-                _mod = imp.load_module('_mapscript', fp, pathname, description)
-            finally:
-                fp.close()
-            return _mod
-    _mapscript = swig_import_helper()
-    del swig_import_helper
-else:
-    import _mapscript
-del version_info
-try:
-    _swig_property = property
-except NameError:
-    pass # Python < 2.2 doesn't have 'property'.
-def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
-    if (name == "thisown"): return self.this.own(value)
-    if (name == "this"):
-        if type(value).__name__ == 'SwigPyObject':
-            self.__dict__[name] = value
-            return
-    method = class_type.__swig_setmethods__.get(name,None)
-    if method: return method(self,value)
-    if (not static):
-        self.__dict__[name] = value
-    else:
-        raise AttributeError("You cannot add attributes to %s" % self)
-
-def _swig_setattr(self,class_type,name,value):
-    return _swig_setattr_nondynamic(self,class_type,name,value,0)
-
-def _swig_getattr(self,class_type,name):
-    if (name == "thisown"): return self.this.own()
-    method = class_type.__swig_getmethods__.get(name,None)
-    if method: return method(self)
-    raise AttributeError(name)
-
-def _swig_repr(self):
-    try: strthis = "proxy of " + self.this.__repr__()
-    except: strthis = ""
-    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
-
-try:
-    _object = object
-    _newclass = 1
-except AttributeError:
-    class _object : pass
-    _newclass = 0
-
-
-class intarray(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, intarray, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, intarray, name)
-    __repr__ = _swig_repr
-    def __init__(self, *args): 
-        this = _mapscript.new_intarray(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_intarray
-    __del__ = lambda self : None;
-    def __getitem__(self, *args): return _mapscript.intarray___getitem__(self, *args)
-    def __setitem__(self, *args): return _mapscript.intarray___setitem__(self, *args)
-    def cast(self): return _mapscript.intarray_cast(self)
-    __swig_getmethods__["frompointer"] = lambda x: _mapscript.intarray_frompointer
-    if _newclass:frompointer = staticmethod(_mapscript.intarray_frompointer)
-intarray_swigregister = _mapscript.intarray_swigregister
-intarray_swigregister(intarray)
-
-def intarray_frompointer(*args):
-  return _mapscript.intarray_frompointer(*args)
-intarray_frompointer = _mapscript.intarray_frompointer
-
-MapServerError = _mapscript.MapServerError
-MapServerChildError = _mapscript.MapServerChildError
-
-MS_TRUE = _mapscript.MS_TRUE
-MS_FALSE = _mapscript.MS_FALSE
-MS_UNKNOWN = _mapscript.MS_UNKNOWN
-MS_ON = _mapscript.MS_ON
-MS_OFF = _mapscript.MS_OFF
-MS_DEFAULT = _mapscript.MS_DEFAULT
-MS_EMBED = _mapscript.MS_EMBED
-MS_DELETE = _mapscript.MS_DELETE
-MS_YES = _mapscript.MS_YES
-MS_NO = _mapscript.MS_NO
-MS_GD_ALPHA = _mapscript.MS_GD_ALPHA
-MS_LAYER_ALLOCSIZE = _mapscript.MS_LAYER_ALLOCSIZE
-MS_CLASS_ALLOCSIZE = _mapscript.MS_CLASS_ALLOCSIZE
-MS_STYLE_ALLOCSIZE = _mapscript.MS_STYLE_ALLOCSIZE
-MS_LABEL_ALLOCSIZE = _mapscript.MS_LABEL_ALLOCSIZE
-MS_MAX_LABEL_PRIORITY = _mapscript.MS_MAX_LABEL_PRIORITY
-MS_MAX_LABEL_FONTS = _mapscript.MS_MAX_LABEL_FONTS
-MS_DEFAULT_LABEL_PRIORITY = _mapscript.MS_DEFAULT_LABEL_PRIORITY
-MS_LABEL_FORCE_GROUP = _mapscript.MS_LABEL_FORCE_GROUP
-MS_RENDER_WITH_SWF = _mapscript.MS_RENDER_WITH_SWF
-MS_RENDER_WITH_RAWDATA = _mapscript.MS_RENDER_WITH_RAWDATA
-MS_RENDER_WITH_IMAGEMAP = _mapscript.MS_RENDER_WITH_IMAGEMAP
-MS_RENDER_WITH_TEMPLATE = _mapscript.MS_RENDER_WITH_TEMPLATE
-MS_RENDER_WITH_OGR = _mapscript.MS_RENDER_WITH_OGR
-MS_RENDER_WITH_PLUGIN = _mapscript.MS_RENDER_WITH_PLUGIN
-MS_RENDER_WITH_CAIRO_RASTER = _mapscript.MS_RENDER_WITH_CAIRO_RASTER
-MS_RENDER_WITH_CAIRO_PDF = _mapscript.MS_RENDER_WITH_CAIRO_PDF
-MS_RENDER_WITH_CAIRO_SVG = _mapscript.MS_RENDER_WITH_CAIRO_SVG
-MS_RENDER_WITH_OGL = _mapscript.MS_RENDER_WITH_OGL
-MS_RENDER_WITH_AGG = _mapscript.MS_RENDER_WITH_AGG
-MS_RENDER_WITH_GD = _mapscript.MS_RENDER_WITH_GD
-MS_RENDER_WITH_KML = _mapscript.MS_RENDER_WITH_KML
-MS_FILE_MAP = _mapscript.MS_FILE_MAP
-MS_FILE_SYMBOL = _mapscript.MS_FILE_SYMBOL
-MS_INCHES = _mapscript.MS_INCHES
-MS_FEET = _mapscript.MS_FEET
-MS_MILES = _mapscript.MS_MILES
-MS_METERS = _mapscript.MS_METERS
-MS_KILOMETERS = _mapscript.MS_KILOMETERS
-MS_DD = _mapscript.MS_DD
-MS_PIXELS = _mapscript.MS_PIXELS
-MS_PERCENTAGES = _mapscript.MS_PERCENTAGES
-MS_NAUTICALMILES = _mapscript.MS_NAUTICALMILES
-MS_SHAPE_POINT = _mapscript.MS_SHAPE_POINT
-MS_SHAPE_LINE = _mapscript.MS_SHAPE_LINE
-MS_SHAPE_POLYGON = _mapscript.MS_SHAPE_POLYGON
-MS_SHAPE_NULL = _mapscript.MS_SHAPE_NULL
-MS_LAYER_POINT = _mapscript.MS_LAYER_POINT
-MS_LAYER_LINE = _mapscript.MS_LAYER_LINE
-MS_LAYER_POLYGON = _mapscript.MS_LAYER_POLYGON
-MS_LAYER_RASTER = _mapscript.MS_LAYER_RASTER
-MS_LAYER_ANNOTATION = _mapscript.MS_LAYER_ANNOTATION
-MS_LAYER_QUERY = _mapscript.MS_LAYER_QUERY
-MS_LAYER_CIRCLE = _mapscript.MS_LAYER_CIRCLE
-MS_LAYER_TILEINDEX = _mapscript.MS_LAYER_TILEINDEX
-MS_LAYER_CHART = _mapscript.MS_LAYER_CHART
-MS_TRUETYPE = _mapscript.MS_TRUETYPE
-MS_BITMAP = _mapscript.MS_BITMAP
-MS_POSITIONS_LENGTH = _mapscript.MS_POSITIONS_LENGTH
-MS_UL = _mapscript.MS_UL
-MS_LR = _mapscript.MS_LR
-MS_UR = _mapscript.MS_UR
-MS_LL = _mapscript.MS_LL
-MS_CR = _mapscript.MS_CR
-MS_CL = _mapscript.MS_CL
-MS_UC = _mapscript.MS_UC
-MS_LC = _mapscript.MS_LC
-MS_CC = _mapscript.MS_CC
-MS_AUTO = _mapscript.MS_AUTO
-MS_XY = _mapscript.MS_XY
-MS_FOLLOW = _mapscript.MS_FOLLOW
-MS_NONE = _mapscript.MS_NONE
-MS_AUTO2 = _mapscript.MS_AUTO2
-MS_TINY = _mapscript.MS_TINY
-MS_SMALL = _mapscript.MS_SMALL
-MS_MEDIUM = _mapscript.MS_MEDIUM
-MS_LARGE = _mapscript.MS_LARGE
-MS_GIANT = _mapscript.MS_GIANT
-MS_NORMAL = _mapscript.MS_NORMAL
-MS_HILITE = _mapscript.MS_HILITE
-MS_SELECTED = _mapscript.MS_SELECTED
-MS_INLINE = _mapscript.MS_INLINE
-MS_SHAPEFILE = _mapscript.MS_SHAPEFILE
-MS_TILED_SHAPEFILE = _mapscript.MS_TILED_SHAPEFILE
-MS_SDE = _mapscript.MS_SDE
-MS_OGR = _mapscript.MS_OGR
-MS_UNUSED_1 = _mapscript.MS_UNUSED_1
-MS_POSTGIS = _mapscript.MS_POSTGIS
-MS_WMS = _mapscript.MS_WMS
-MS_ORACLESPATIAL = _mapscript.MS_ORACLESPATIAL
-MS_WFS = _mapscript.MS_WFS
-MS_GRATICULE = _mapscript.MS_GRATICULE
-MS_MYSQL = _mapscript.MS_MYSQL
-MS_RASTER = _mapscript.MS_RASTER
-MS_PLUGIN = _mapscript.MS_PLUGIN
-MS_UNION = _mapscript.MS_UNION
-MS_UVRASTER = _mapscript.MS_UVRASTER
-MS_CONTOUR = _mapscript.MS_CONTOUR
-MS_DB_XBASE = _mapscript.MS_DB_XBASE
-MS_DB_CSV = _mapscript.MS_DB_CSV
-MS_DB_MYSQL = _mapscript.MS_DB_MYSQL
-MS_DB_ORACLE = _mapscript.MS_DB_ORACLE
-MS_DB_POSTGRES = _mapscript.MS_DB_POSTGRES
-MS_JOIN_ONE_TO_ONE = _mapscript.MS_JOIN_ONE_TO_ONE
-MS_JOIN_ONE_TO_MANY = _mapscript.MS_JOIN_ONE_TO_MANY
-MS_SINGLE = _mapscript.MS_SINGLE
-MS_MULTIPLE = _mapscript.MS_MULTIPLE
-MS_QUERY_SINGLE = _mapscript.MS_QUERY_SINGLE
-MS_QUERY_MULTIPLE = _mapscript.MS_QUERY_MULTIPLE
-MS_QUERY_IS_NULL = _mapscript.MS_QUERY_IS_NULL
-MS_QUERY_BY_POINT = _mapscript.MS_QUERY_BY_POINT
-MS_QUERY_BY_RECT = _mapscript.MS_QUERY_BY_RECT
-MS_QUERY_BY_SHAPE = _mapscript.MS_QUERY_BY_SHAPE
-MS_QUERY_BY_ATTRIBUTE = _mapscript.MS_QUERY_BY_ATTRIBUTE
-MS_QUERY_BY_INDEX = _mapscript.MS_QUERY_BY_INDEX
-MS_QUERY_BY_FILTER = _mapscript.MS_QUERY_BY_FILTER
-MS_ALIGN_LEFT = _mapscript.MS_ALIGN_LEFT
-MS_ALIGN_CENTER = _mapscript.MS_ALIGN_CENTER
-MS_ALIGN_RIGHT = _mapscript.MS_ALIGN_RIGHT
-MS_CJC_NONE = _mapscript.MS_CJC_NONE
-MS_CJC_BEVEL = _mapscript.MS_CJC_BEVEL
-MS_CJC_BUTT = _mapscript.MS_CJC_BUTT
-MS_CJC_MITER = _mapscript.MS_CJC_MITER
-MS_CJC_ROUND = _mapscript.MS_CJC_ROUND
-MS_CJC_SQUARE = _mapscript.MS_CJC_SQUARE
-MS_CJC_TRIANGLE = _mapscript.MS_CJC_TRIANGLE
-MS_CJC_DEFAULT_JOIN_MAXSIZE = _mapscript.MS_CJC_DEFAULT_JOIN_MAXSIZE
-MS_SUCCESS = _mapscript.MS_SUCCESS
-MS_FAILURE = _mapscript.MS_FAILURE
-MS_DONE = _mapscript.MS_DONE
-MS_IMAGEMODE_PC256 = _mapscript.MS_IMAGEMODE_PC256
-MS_IMAGEMODE_RGB = _mapscript.MS_IMAGEMODE_RGB
-MS_IMAGEMODE_RGBA = _mapscript.MS_IMAGEMODE_RGBA
-MS_IMAGEMODE_INT16 = _mapscript.MS_IMAGEMODE_INT16
-MS_IMAGEMODE_FLOAT32 = _mapscript.MS_IMAGEMODE_FLOAT32
-MS_IMAGEMODE_BYTE = _mapscript.MS_IMAGEMODE_BYTE
-MS_IMAGEMODE_FEATURE = _mapscript.MS_IMAGEMODE_FEATURE
-MS_IMAGEMODE_NULL = _mapscript.MS_IMAGEMODE_NULL
-MS_GEOS_EQUALS = _mapscript.MS_GEOS_EQUALS
-MS_GEOS_DISJOINT = _mapscript.MS_GEOS_DISJOINT
-MS_GEOS_TOUCHES = _mapscript.MS_GEOS_TOUCHES
-MS_GEOS_OVERLAPS = _mapscript.MS_GEOS_OVERLAPS
-MS_GEOS_CROSSES = _mapscript.MS_GEOS_CROSSES
-MS_GEOS_INTERSECTS = _mapscript.MS_GEOS_INTERSECTS
-MS_GEOS_WITHIN = _mapscript.MS_GEOS_WITHIN
-MS_GEOS_CONTAINS = _mapscript.MS_GEOS_CONTAINS
-MS_GEOS_BEYOND = _mapscript.MS_GEOS_BEYOND
-MS_GEOS_DWITHIN = _mapscript.MS_GEOS_DWITHIN
-MS_TRANSFORM_NONE = _mapscript.MS_TRANSFORM_NONE
-MS_TRANSFORM_ROUND = _mapscript.MS_TRANSFORM_ROUND
-MS_TRANSFORM_SNAPTOGRID = _mapscript.MS_TRANSFORM_SNAPTOGRID
-MS_TRANSFORM_FULLRESOLUTION = _mapscript.MS_TRANSFORM_FULLRESOLUTION
-MS_TRANSFORM_SIMPLIFY = _mapscript.MS_TRANSFORM_SIMPLIFY
-MS_STYLE_BINDING_LENGTH = _mapscript.MS_STYLE_BINDING_LENGTH
-MS_STYLE_BINDING_SIZE = _mapscript.MS_STYLE_BINDING_SIZE
-MS_STYLE_BINDING_WIDTH = _mapscript.MS_STYLE_BINDING_WIDTH
-MS_STYLE_BINDING_ANGLE = _mapscript.MS_STYLE_BINDING_ANGLE
-MS_STYLE_BINDING_COLOR = _mapscript.MS_STYLE_BINDING_COLOR
-MS_STYLE_BINDING_OUTLINECOLOR = _mapscript.MS_STYLE_BINDING_OUTLINECOLOR
-MS_STYLE_BINDING_SYMBOL = _mapscript.MS_STYLE_BINDING_SYMBOL
-MS_STYLE_BINDING_OUTLINEWIDTH = _mapscript.MS_STYLE_BINDING_OUTLINEWIDTH
-MS_STYLE_BINDING_OPACITY = _mapscript.MS_STYLE_BINDING_OPACITY
-MS_STYLE_BINDING_OFFSET_X = _mapscript.MS_STYLE_BINDING_OFFSET_X
-MS_STYLE_BINDING_OFFSET_Y = _mapscript.MS_STYLE_BINDING_OFFSET_Y
-MS_STYLE_BINDING_POLAROFFSET_PIXEL = _mapscript.MS_STYLE_BINDING_POLAROFFSET_PIXEL
-MS_STYLE_BINDING_POLAROFFSET_ANGLE = _mapscript.MS_STYLE_BINDING_POLAROFFSET_ANGLE
-MS_LABEL_BINDING_LENGTH = _mapscript.MS_LABEL_BINDING_LENGTH
-MS_LABEL_BINDING_SIZE = _mapscript.MS_LABEL_BINDING_SIZE
-MS_LABEL_BINDING_ANGLE = _mapscript.MS_LABEL_BINDING_ANGLE
-MS_LABEL_BINDING_COLOR = _mapscript.MS_LABEL_BINDING_COLOR
-MS_LABEL_BINDING_OUTLINECOLOR = _mapscript.MS_LABEL_BINDING_OUTLINECOLOR
-MS_LABEL_BINDING_FONT = _mapscript.MS_LABEL_BINDING_FONT
-MS_LABEL_BINDING_PRIORITY = _mapscript.MS_LABEL_BINDING_PRIORITY
-MS_LABEL_BINDING_POSITION = _mapscript.MS_LABEL_BINDING_POSITION
-MS_LABEL_BINDING_SHADOWSIZEX = _mapscript.MS_LABEL_BINDING_SHADOWSIZEX
-MS_LABEL_BINDING_SHADOWSIZEY = _mapscript.MS_LABEL_BINDING_SHADOWSIZEY
-class fontSetObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, fontSetObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, fontSetObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["filename"] = _mapscript.fontSetObj_filename_get
-    if _newclass:filename = _swig_property(_mapscript.fontSetObj_filename_get)
-    __swig_getmethods__["numfonts"] = _mapscript.fontSetObj_numfonts_get
-    if _newclass:numfonts = _swig_property(_mapscript.fontSetObj_numfonts_get)
-    __swig_getmethods__["fonts"] = _mapscript.fontSetObj_fonts_get
-    if _newclass:fonts = _swig_property(_mapscript.fontSetObj_fonts_get)
-    def __init__(self): 
-        this = _mapscript.new_fontSetObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_fontSetObj
-    __del__ = lambda self : None;
-fontSetObj_swigregister = _mapscript.fontSetObj_swigregister
-fontSetObj_swigregister(fontSetObj)
-
-MS_TOKEN_LOGICAL_AND = _mapscript.MS_TOKEN_LOGICAL_AND
-MS_TOKEN_LOGICAL_OR = _mapscript.MS_TOKEN_LOGICAL_OR
-MS_TOKEN_LOGICAL_NOT = _mapscript.MS_TOKEN_LOGICAL_NOT
-MS_TOKEN_LITERAL_NUMBER = _mapscript.MS_TOKEN_LITERAL_NUMBER
-MS_TOKEN_LITERAL_STRING = _mapscript.MS_TOKEN_LITERAL_STRING
-MS_TOKEN_LITERAL_TIME = _mapscript.MS_TOKEN_LITERAL_TIME
-MS_TOKEN_LITERAL_SHAPE = _mapscript.MS_TOKEN_LITERAL_SHAPE
-MS_TOKEN_COMPARISON_EQ = _mapscript.MS_TOKEN_COMPARISON_EQ
-MS_TOKEN_COMPARISON_NE = _mapscript.MS_TOKEN_COMPARISON_NE
-MS_TOKEN_COMPARISON_GT = _mapscript.MS_TOKEN_COMPARISON_GT
-MS_TOKEN_COMPARISON_LT = _mapscript.MS_TOKEN_COMPARISON_LT
-MS_TOKEN_COMPARISON_LE = _mapscript.MS_TOKEN_COMPARISON_LE
-MS_TOKEN_COMPARISON_GE = _mapscript.MS_TOKEN_COMPARISON_GE
-MS_TOKEN_COMPARISON_IEQ = _mapscript.MS_TOKEN_COMPARISON_IEQ
-MS_TOKEN_COMPARISON_RE = _mapscript.MS_TOKEN_COMPARISON_RE
-MS_TOKEN_COMPARISON_IRE = _mapscript.MS_TOKEN_COMPARISON_IRE
-MS_TOKEN_COMPARISON_IN = _mapscript.MS_TOKEN_COMPARISON_IN
-MS_TOKEN_COMPARISON_LIKE = _mapscript.MS_TOKEN_COMPARISON_LIKE
-MS_TOKEN_COMPARISON_INTERSECTS = _mapscript.MS_TOKEN_COMPARISON_INTERSECTS
-MS_TOKEN_COMPARISON_DISJOINT = _mapscript.MS_TOKEN_COMPARISON_DISJOINT
-MS_TOKEN_COMPARISON_TOUCHES = _mapscript.MS_TOKEN_COMPARISON_TOUCHES
-MS_TOKEN_COMPARISON_OVERLAPS = _mapscript.MS_TOKEN_COMPARISON_OVERLAPS
-MS_TOKEN_COMPARISON_CROSSES = _mapscript.MS_TOKEN_COMPARISON_CROSSES
-MS_TOKEN_COMPARISON_WITHIN = _mapscript.MS_TOKEN_COMPARISON_WITHIN
-MS_TOKEN_COMPARISON_CONTAINS = _mapscript.MS_TOKEN_COMPARISON_CONTAINS
-MS_TOKEN_COMPARISON_BEYOND = _mapscript.MS_TOKEN_COMPARISON_BEYOND
-MS_TOKEN_COMPARISON_DWITHIN = _mapscript.MS_TOKEN_COMPARISON_DWITHIN
-MS_TOKEN_FUNCTION_LENGTH = _mapscript.MS_TOKEN_FUNCTION_LENGTH
-MS_TOKEN_FUNCTION_TOSTRING = _mapscript.MS_TOKEN_FUNCTION_TOSTRING
-MS_TOKEN_FUNCTION_COMMIFY = _mapscript.MS_TOKEN_FUNCTION_COMMIFY
-MS_TOKEN_FUNCTION_AREA = _mapscript.MS_TOKEN_FUNCTION_AREA
-MS_TOKEN_FUNCTION_ROUND = _mapscript.MS_TOKEN_FUNCTION_ROUND
-MS_TOKEN_FUNCTION_FROMTEXT = _mapscript.MS_TOKEN_FUNCTION_FROMTEXT
-MS_TOKEN_FUNCTION_BUFFER = _mapscript.MS_TOKEN_FUNCTION_BUFFER
-MS_TOKEN_FUNCTION_DIFFERENCE = _mapscript.MS_TOKEN_FUNCTION_DIFFERENCE
-MS_TOKEN_FUNCTION_SIMPLIFY = _mapscript.MS_TOKEN_FUNCTION_SIMPLIFY
-MS_TOKEN_FUNCTION_SIMPLIFYPT = _mapscript.MS_TOKEN_FUNCTION_SIMPLIFYPT
-MS_TOKEN_FUNCTION_GENERALIZE = _mapscript.MS_TOKEN_FUNCTION_GENERALIZE
-MS_TOKEN_FUNCTION_SMOOTHSIA = _mapscript.MS_TOKEN_FUNCTION_SMOOTHSIA
-MS_TOKEN_BINDING_DOUBLE = _mapscript.MS_TOKEN_BINDING_DOUBLE
-MS_TOKEN_BINDING_INTEGER = _mapscript.MS_TOKEN_BINDING_INTEGER
-MS_TOKEN_BINDING_STRING = _mapscript.MS_TOKEN_BINDING_STRING
-MS_TOKEN_BINDING_TIME = _mapscript.MS_TOKEN_BINDING_TIME
-MS_TOKEN_BINDING_SHAPE = _mapscript.MS_TOKEN_BINDING_SHAPE
-MS_TOKEN_BINDING_MAP_CELLSIZE = _mapscript.MS_TOKEN_BINDING_MAP_CELLSIZE
-MS_TOKEN_BINDING_DATA_CELLSIZE = _mapscript.MS_TOKEN_BINDING_DATA_CELLSIZE
-MS_PARSE_TYPE_BOOLEAN = _mapscript.MS_PARSE_TYPE_BOOLEAN
-MS_PARSE_TYPE_STRING = _mapscript.MS_PARSE_TYPE_STRING
-MS_PARSE_TYPE_SHAPE = _mapscript.MS_PARSE_TYPE_SHAPE
-class clusterObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, clusterObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, clusterObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["maxdistance"] = _mapscript.clusterObj_maxdistance_set
-    __swig_getmethods__["maxdistance"] = _mapscript.clusterObj_maxdistance_get
-    if _newclass:maxdistance = _swig_property(_mapscript.clusterObj_maxdistance_get, _mapscript.clusterObj_maxdistance_set)
-    __swig_setmethods__["buffer"] = _mapscript.clusterObj_buffer_set
-    __swig_getmethods__["buffer"] = _mapscript.clusterObj_buffer_get
-    if _newclass:buffer = _swig_property(_mapscript.clusterObj_buffer_get, _mapscript.clusterObj_buffer_set)
-    __swig_setmethods__["region"] = _mapscript.clusterObj_region_set
-    __swig_getmethods__["region"] = _mapscript.clusterObj_region_get
-    if _newclass:region = _swig_property(_mapscript.clusterObj_region_get, _mapscript.clusterObj_region_set)
-    def updateFromString(self, *args): return _mapscript.clusterObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.clusterObj_convertToString(self)
-    def setGroup(self, *args): return _mapscript.clusterObj_setGroup(self, *args)
-    def getGroupString(self): return _mapscript.clusterObj_getGroupString(self)
-    def setFilter(self, *args): return _mapscript.clusterObj_setFilter(self, *args)
-    def getFilterString(self): return _mapscript.clusterObj_getFilterString(self)
-    def __init__(self): 
-        this = _mapscript.new_clusterObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_clusterObj
-    __del__ = lambda self : None;
-clusterObj_swigregister = _mapscript.clusterObj_swigregister
-clusterObj_swigregister(clusterObj)
-
-class outputFormatObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, outputFormatObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, outputFormatObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numformatoptions"] = _mapscript.outputFormatObj_numformatoptions_get
-    if _newclass:numformatoptions = _swig_property(_mapscript.outputFormatObj_numformatoptions_get)
-    __swig_setmethods__["name"] = _mapscript.outputFormatObj_name_set
-    __swig_getmethods__["name"] = _mapscript.outputFormatObj_name_get
-    if _newclass:name = _swig_property(_mapscript.outputFormatObj_name_get, _mapscript.outputFormatObj_name_set)
-    __swig_setmethods__["mimetype"] = _mapscript.outputFormatObj_mimetype_set
-    __swig_getmethods__["mimetype"] = _mapscript.outputFormatObj_mimetype_get
-    if _newclass:mimetype = _swig_property(_mapscript.outputFormatObj_mimetype_get, _mapscript.outputFormatObj_mimetype_set)
-    __swig_setmethods__["driver"] = _mapscript.outputFormatObj_driver_set
-    __swig_getmethods__["driver"] = _mapscript.outputFormatObj_driver_get
-    if _newclass:driver = _swig_property(_mapscript.outputFormatObj_driver_get, _mapscript.outputFormatObj_driver_set)
-    __swig_setmethods__["extension"] = _mapscript.outputFormatObj_extension_set
-    __swig_getmethods__["extension"] = _mapscript.outputFormatObj_extension_get
-    if _newclass:extension = _swig_property(_mapscript.outputFormatObj_extension_get, _mapscript.outputFormatObj_extension_set)
-    __swig_setmethods__["renderer"] = _mapscript.outputFormatObj_renderer_set
-    __swig_getmethods__["renderer"] = _mapscript.outputFormatObj_renderer_get
-    if _newclass:renderer = _swig_property(_mapscript.outputFormatObj_renderer_get, _mapscript.outputFormatObj_renderer_set)
-    __swig_setmethods__["imagemode"] = _mapscript.outputFormatObj_imagemode_set
-    __swig_getmethods__["imagemode"] = _mapscript.outputFormatObj_imagemode_get
-    if _newclass:imagemode = _swig_property(_mapscript.outputFormatObj_imagemode_get, _mapscript.outputFormatObj_imagemode_set)
-    __swig_setmethods__["transparent"] = _mapscript.outputFormatObj_transparent_set
-    __swig_getmethods__["transparent"] = _mapscript.outputFormatObj_transparent_get
-    if _newclass:transparent = _swig_property(_mapscript.outputFormatObj_transparent_get, _mapscript.outputFormatObj_transparent_set)
-    __swig_setmethods__["bands"] = _mapscript.outputFormatObj_bands_set
-    __swig_getmethods__["bands"] = _mapscript.outputFormatObj_bands_get
-    if _newclass:bands = _swig_property(_mapscript.outputFormatObj_bands_get, _mapscript.outputFormatObj_bands_set)
-    __swig_setmethods__["inmapfile"] = _mapscript.outputFormatObj_inmapfile_set
-    __swig_getmethods__["inmapfile"] = _mapscript.outputFormatObj_inmapfile_get
-    if _newclass:inmapfile = _swig_property(_mapscript.outputFormatObj_inmapfile_get, _mapscript.outputFormatObj_inmapfile_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_outputFormatObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_outputFormatObj
-    __del__ = lambda self : None;
-    def setExtension(self, *args): return _mapscript.outputFormatObj_setExtension(self, *args)
-    def setMimetype(self, *args): return _mapscript.outputFormatObj_setMimetype(self, *args)
-    def setOption(self, *args): return _mapscript.outputFormatObj_setOption(self, *args)
-    def validate(self): return _mapscript.outputFormatObj_validate(self)
-    def getOption(self, *args): return _mapscript.outputFormatObj_getOption(self, *args)
-    def getOptionAt(self, *args): return _mapscript.outputFormatObj_getOptionAt(self, *args)
-    def attachDevice(self, *args): return _mapscript.outputFormatObj_attachDevice(self, *args)
-outputFormatObj_swigregister = _mapscript.outputFormatObj_swigregister
-outputFormatObj_swigregister(outputFormatObj)
-
-MS_NOOVERRIDE = _mapscript.MS_NOOVERRIDE
-class queryMapObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, queryMapObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, queryMapObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["height"] = _mapscript.queryMapObj_height_set
-    __swig_getmethods__["height"] = _mapscript.queryMapObj_height_get
-    if _newclass:height = _swig_property(_mapscript.queryMapObj_height_get, _mapscript.queryMapObj_height_set)
-    __swig_setmethods__["width"] = _mapscript.queryMapObj_width_set
-    __swig_getmethods__["width"] = _mapscript.queryMapObj_width_get
-    if _newclass:width = _swig_property(_mapscript.queryMapObj_width_get, _mapscript.queryMapObj_width_set)
-    __swig_setmethods__["status"] = _mapscript.queryMapObj_status_set
-    __swig_getmethods__["status"] = _mapscript.queryMapObj_status_get
-    if _newclass:status = _swig_property(_mapscript.queryMapObj_status_get, _mapscript.queryMapObj_status_set)
-    __swig_setmethods__["style"] = _mapscript.queryMapObj_style_set
-    __swig_getmethods__["style"] = _mapscript.queryMapObj_style_get
-    if _newclass:style = _swig_property(_mapscript.queryMapObj_style_get, _mapscript.queryMapObj_style_set)
-    __swig_setmethods__["color"] = _mapscript.queryMapObj_color_set
-    __swig_getmethods__["color"] = _mapscript.queryMapObj_color_get
-    if _newclass:color = _swig_property(_mapscript.queryMapObj_color_get, _mapscript.queryMapObj_color_set)
-    def updateFromString(self, *args): return _mapscript.queryMapObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.queryMapObj_convertToString(self)
-    def __init__(self): 
-        this = _mapscript.new_queryMapObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_queryMapObj
-    __del__ = lambda self : None;
-queryMapObj_swigregister = _mapscript.queryMapObj_swigregister
-queryMapObj_swigregister(queryMapObj)
-
-class webObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, webObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, webObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["log"] = _mapscript.webObj_log_set
-    __swig_getmethods__["log"] = _mapscript.webObj_log_get
-    if _newclass:log = _swig_property(_mapscript.webObj_log_get, _mapscript.webObj_log_set)
-    __swig_setmethods__["imagepath"] = _mapscript.webObj_imagepath_set
-    __swig_getmethods__["imagepath"] = _mapscript.webObj_imagepath_get
-    if _newclass:imagepath = _swig_property(_mapscript.webObj_imagepath_get, _mapscript.webObj_imagepath_set)
-    __swig_setmethods__["imageurl"] = _mapscript.webObj_imageurl_set
-    __swig_getmethods__["imageurl"] = _mapscript.webObj_imageurl_get
-    if _newclass:imageurl = _swig_property(_mapscript.webObj_imageurl_get, _mapscript.webObj_imageurl_set)
-    __swig_setmethods__["temppath"] = _mapscript.webObj_temppath_set
-    __swig_getmethods__["temppath"] = _mapscript.webObj_temppath_get
-    if _newclass:temppath = _swig_property(_mapscript.webObj_temppath_get, _mapscript.webObj_temppath_set)
-    __swig_getmethods__["map"] = _mapscript.webObj_map_get
-    if _newclass:map = _swig_property(_mapscript.webObj_map_get)
-    __swig_setmethods__["template"] = _mapscript.webObj_template_set
-    __swig_getmethods__["template"] = _mapscript.webObj_template_get
-    if _newclass:template = _swig_property(_mapscript.webObj_template_get, _mapscript.webObj_template_set)
-    __swig_setmethods__["header"] = _mapscript.webObj_header_set
-    __swig_getmethods__["header"] = _mapscript.webObj_header_get
-    if _newclass:header = _swig_property(_mapscript.webObj_header_get, _mapscript.webObj_header_set)
-    __swig_setmethods__["footer"] = _mapscript.webObj_footer_set
-    __swig_getmethods__["footer"] = _mapscript.webObj_footer_get
-    if _newclass:footer = _swig_property(_mapscript.webObj_footer_get, _mapscript.webObj_footer_set)
-    __swig_setmethods__["empty"] = _mapscript.webObj_empty_set
-    __swig_getmethods__["empty"] = _mapscript.webObj_empty_get
-    if _newclass:empty = _swig_property(_mapscript.webObj_empty_get, _mapscript.webObj_empty_set)
-    __swig_setmethods__["error"] = _mapscript.webObj_error_set
-    __swig_getmethods__["error"] = _mapscript.webObj_error_get
-    if _newclass:error = _swig_property(_mapscript.webObj_error_get, _mapscript.webObj_error_set)
-    __swig_setmethods__["extent"] = _mapscript.webObj_extent_set
-    __swig_getmethods__["extent"] = _mapscript.webObj_extent_get
-    if _newclass:extent = _swig_property(_mapscript.webObj_extent_get, _mapscript.webObj_extent_set)
-    __swig_setmethods__["minscaledenom"] = _mapscript.webObj_minscaledenom_set
-    __swig_getmethods__["minscaledenom"] = _mapscript.webObj_minscaledenom_get
-    if _newclass:minscaledenom = _swig_property(_mapscript.webObj_minscaledenom_get, _mapscript.webObj_minscaledenom_set)
-    __swig_setmethods__["maxscaledenom"] = _mapscript.webObj_maxscaledenom_set
-    __swig_getmethods__["maxscaledenom"] = _mapscript.webObj_maxscaledenom_get
-    if _newclass:maxscaledenom = _swig_property(_mapscript.webObj_maxscaledenom_get, _mapscript.webObj_maxscaledenom_set)
-    __swig_setmethods__["mintemplate"] = _mapscript.webObj_mintemplate_set
-    __swig_getmethods__["mintemplate"] = _mapscript.webObj_mintemplate_get
-    if _newclass:mintemplate = _swig_property(_mapscript.webObj_mintemplate_get, _mapscript.webObj_mintemplate_set)
-    __swig_setmethods__["maxtemplate"] = _mapscript.webObj_maxtemplate_set
-    __swig_getmethods__["maxtemplate"] = _mapscript.webObj_maxtemplate_get
-    if _newclass:maxtemplate = _swig_property(_mapscript.webObj_maxtemplate_get, _mapscript.webObj_maxtemplate_set)
-    __swig_setmethods__["queryformat"] = _mapscript.webObj_queryformat_set
-    __swig_getmethods__["queryformat"] = _mapscript.webObj_queryformat_get
-    if _newclass:queryformat = _swig_property(_mapscript.webObj_queryformat_get, _mapscript.webObj_queryformat_set)
-    __swig_setmethods__["legendformat"] = _mapscript.webObj_legendformat_set
-    __swig_getmethods__["legendformat"] = _mapscript.webObj_legendformat_get
-    if _newclass:legendformat = _swig_property(_mapscript.webObj_legendformat_get, _mapscript.webObj_legendformat_set)
-    __swig_setmethods__["browseformat"] = _mapscript.webObj_browseformat_set
-    __swig_getmethods__["browseformat"] = _mapscript.webObj_browseformat_get
-    if _newclass:browseformat = _swig_property(_mapscript.webObj_browseformat_get, _mapscript.webObj_browseformat_set)
-    __swig_getmethods__["metadata"] = _mapscript.webObj_metadata_get
-    if _newclass:metadata = _swig_property(_mapscript.webObj_metadata_get)
-    __swig_getmethods__["validation"] = _mapscript.webObj_validation_get
-    if _newclass:validation = _swig_property(_mapscript.webObj_validation_get)
-    def __init__(self): 
-        this = _mapscript.new_webObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_webObj
-    __del__ = lambda self : None;
-    def updateFromString(self, *args): return _mapscript.webObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.webObj_convertToString(self)
-webObj_swigregister = _mapscript.webObj_swigregister
-webObj_swigregister(webObj)
-
-class styleObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, styleObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["refcount"] = _mapscript.styleObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.styleObj_refcount_get)
-    __swig_setmethods__["autoangle"] = _mapscript.styleObj_autoangle_set
-    __swig_getmethods__["autoangle"] = _mapscript.styleObj_autoangle_get
-    if _newclass:autoangle = _swig_property(_mapscript.styleObj_autoangle_get, _mapscript.styleObj_autoangle_set)
-    __swig_setmethods__["color"] = _mapscript.styleObj_color_set
-    __swig_getmethods__["color"] = _mapscript.styleObj_color_get
-    if _newclass:color = _swig_property(_mapscript.styleObj_color_get, _mapscript.styleObj_color_set)
-    __swig_setmethods__["backgroundcolor"] = _mapscript.styleObj_backgroundcolor_set
-    __swig_getmethods__["backgroundcolor"] = _mapscript.styleObj_backgroundcolor_get
-    if _newclass:backgroundcolor = _swig_property(_mapscript.styleObj_backgroundcolor_get, _mapscript.styleObj_backgroundcolor_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.styleObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.styleObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.styleObj_outlinecolor_get, _mapscript.styleObj_outlinecolor_set)
-    __swig_setmethods__["opacity"] = _mapscript.styleObj_opacity_set
-    __swig_getmethods__["opacity"] = _mapscript.styleObj_opacity_get
-    if _newclass:opacity = _swig_property(_mapscript.styleObj_opacity_get, _mapscript.styleObj_opacity_set)
-    __swig_setmethods__["mincolor"] = _mapscript.styleObj_mincolor_set
-    __swig_getmethods__["mincolor"] = _mapscript.styleObj_mincolor_get
-    if _newclass:mincolor = _swig_property(_mapscript.styleObj_mincolor_get, _mapscript.styleObj_mincolor_set)
-    __swig_setmethods__["maxcolor"] = _mapscript.styleObj_maxcolor_set
-    __swig_getmethods__["maxcolor"] = _mapscript.styleObj_maxcolor_get
-    if _newclass:maxcolor = _swig_property(_mapscript.styleObj_maxcolor_get, _mapscript.styleObj_maxcolor_set)
-    __swig_setmethods__["minvalue"] = _mapscript.styleObj_minvalue_set
-    __swig_getmethods__["minvalue"] = _mapscript.styleObj_minvalue_get
-    if _newclass:minvalue = _swig_property(_mapscript.styleObj_minvalue_get, _mapscript.styleObj_minvalue_set)
-    __swig_setmethods__["maxvalue"] = _mapscript.styleObj_maxvalue_set
-    __swig_getmethods__["maxvalue"] = _mapscript.styleObj_maxvalue_get
-    if _newclass:maxvalue = _swig_property(_mapscript.styleObj_maxvalue_get, _mapscript.styleObj_maxvalue_set)
-    __swig_setmethods__["rangeitem"] = _mapscript.styleObj_rangeitem_set
-    __swig_getmethods__["rangeitem"] = _mapscript.styleObj_rangeitem_get
-    if _newclass:rangeitem = _swig_property(_mapscript.styleObj_rangeitem_get, _mapscript.styleObj_rangeitem_set)
-    __swig_setmethods__["rangeitemindex"] = _mapscript.styleObj_rangeitemindex_set
-    __swig_getmethods__["rangeitemindex"] = _mapscript.styleObj_rangeitemindex_get
-    if _newclass:rangeitemindex = _swig_property(_mapscript.styleObj_rangeitemindex_get, _mapscript.styleObj_rangeitemindex_set)
-    __swig_setmethods__["symbol"] = _mapscript.styleObj_symbol_set
-    __swig_getmethods__["symbol"] = _mapscript.styleObj_symbol_get
-    if _newclass:symbol = _swig_property(_mapscript.styleObj_symbol_get, _mapscript.styleObj_symbol_set)
-    __swig_setmethods__["symbolname"] = _mapscript.styleObj_symbolname_set
-    __swig_getmethods__["symbolname"] = _mapscript.styleObj_symbolname_get
-    if _newclass:symbolname = _swig_property(_mapscript.styleObj_symbolname_get, _mapscript.styleObj_symbolname_set)
-    __swig_setmethods__["size"] = _mapscript.styleObj_size_set
-    __swig_getmethods__["size"] = _mapscript.styleObj_size_get
-    if _newclass:size = _swig_property(_mapscript.styleObj_size_get, _mapscript.styleObj_size_set)
-    __swig_setmethods__["minsize"] = _mapscript.styleObj_minsize_set
-    __swig_getmethods__["minsize"] = _mapscript.styleObj_minsize_get
-    if _newclass:minsize = _swig_property(_mapscript.styleObj_minsize_get, _mapscript.styleObj_minsize_set)
-    __swig_setmethods__["maxsize"] = _mapscript.styleObj_maxsize_set
-    __swig_getmethods__["maxsize"] = _mapscript.styleObj_maxsize_get
-    if _newclass:maxsize = _swig_property(_mapscript.styleObj_maxsize_get, _mapscript.styleObj_maxsize_set)
-    __swig_setmethods__["patternlength"] = _mapscript.styleObj_patternlength_set
-    __swig_getmethods__["patternlength"] = _mapscript.styleObj_patternlength_get
-    if _newclass:patternlength = _swig_property(_mapscript.styleObj_patternlength_get, _mapscript.styleObj_patternlength_set)
-    __swig_setmethods__["pattern"] = _mapscript.styleObj_pattern_set
-    __swig_getmethods__["pattern"] = _mapscript.styleObj_pattern_get
-    if _newclass:pattern = _swig_property(_mapscript.styleObj_pattern_get, _mapscript.styleObj_pattern_set)
-    __swig_setmethods__["gap"] = _mapscript.styleObj_gap_set
-    __swig_getmethods__["gap"] = _mapscript.styleObj_gap_get
-    if _newclass:gap = _swig_property(_mapscript.styleObj_gap_get, _mapscript.styleObj_gap_set)
-    __swig_setmethods__["initialgap"] = _mapscript.styleObj_initialgap_set
-    __swig_getmethods__["initialgap"] = _mapscript.styleObj_initialgap_get
-    if _newclass:initialgap = _swig_property(_mapscript.styleObj_initialgap_get, _mapscript.styleObj_initialgap_set)
-    __swig_setmethods__["position"] = _mapscript.styleObj_position_set
-    __swig_getmethods__["position"] = _mapscript.styleObj_position_get
-    if _newclass:position = _swig_property(_mapscript.styleObj_position_get, _mapscript.styleObj_position_set)
-    __swig_setmethods__["linecap"] = _mapscript.styleObj_linecap_set
-    __swig_getmethods__["linecap"] = _mapscript.styleObj_linecap_get
-    if _newclass:linecap = _swig_property(_mapscript.styleObj_linecap_get, _mapscript.styleObj_linecap_set)
-    __swig_setmethods__["linejoin"] = _mapscript.styleObj_linejoin_set
-    __swig_getmethods__["linejoin"] = _mapscript.styleObj_linejoin_get
-    if _newclass:linejoin = _swig_property(_mapscript.styleObj_linejoin_get, _mapscript.styleObj_linejoin_set)
-    __swig_setmethods__["linejoinmaxsize"] = _mapscript.styleObj_linejoinmaxsize_set
-    __swig_getmethods__["linejoinmaxsize"] = _mapscript.styleObj_linejoinmaxsize_get
-    if _newclass:linejoinmaxsize = _swig_property(_mapscript.styleObj_linejoinmaxsize_get, _mapscript.styleObj_linejoinmaxsize_set)
-    __swig_setmethods__["width"] = _mapscript.styleObj_width_set
-    __swig_getmethods__["width"] = _mapscript.styleObj_width_get
-    if _newclass:width = _swig_property(_mapscript.styleObj_width_get, _mapscript.styleObj_width_set)
-    __swig_setmethods__["outlinewidth"] = _mapscript.styleObj_outlinewidth_set
-    __swig_getmethods__["outlinewidth"] = _mapscript.styleObj_outlinewidth_get
-    if _newclass:outlinewidth = _swig_property(_mapscript.styleObj_outlinewidth_get, _mapscript.styleObj_outlinewidth_set)
-    __swig_setmethods__["minwidth"] = _mapscript.styleObj_minwidth_set
-    __swig_getmethods__["minwidth"] = _mapscript.styleObj_minwidth_get
-    if _newclass:minwidth = _swig_property(_mapscript.styleObj_minwidth_get, _mapscript.styleObj_minwidth_set)
-    __swig_setmethods__["maxwidth"] = _mapscript.styleObj_maxwidth_set
-    __swig_getmethods__["maxwidth"] = _mapscript.styleObj_maxwidth_get
-    if _newclass:maxwidth = _swig_property(_mapscript.styleObj_maxwidth_get, _mapscript.styleObj_maxwidth_set)
-    __swig_setmethods__["offsetx"] = _mapscript.styleObj_offsetx_set
-    __swig_getmethods__["offsetx"] = _mapscript.styleObj_offsetx_get
-    if _newclass:offsetx = _swig_property(_mapscript.styleObj_offsetx_get, _mapscript.styleObj_offsetx_set)
-    __swig_setmethods__["offsety"] = _mapscript.styleObj_offsety_set
-    __swig_getmethods__["offsety"] = _mapscript.styleObj_offsety_get
-    if _newclass:offsety = _swig_property(_mapscript.styleObj_offsety_get, _mapscript.styleObj_offsety_set)
-    __swig_setmethods__["polaroffsetpixel"] = _mapscript.styleObj_polaroffsetpixel_set
-    __swig_getmethods__["polaroffsetpixel"] = _mapscript.styleObj_polaroffsetpixel_get
-    if _newclass:polaroffsetpixel = _swig_property(_mapscript.styleObj_polaroffsetpixel_get, _mapscript.styleObj_polaroffsetpixel_set)
-    __swig_setmethods__["polaroffsetangle"] = _mapscript.styleObj_polaroffsetangle_set
-    __swig_getmethods__["polaroffsetangle"] = _mapscript.styleObj_polaroffsetangle_get
-    if _newclass:polaroffsetangle = _swig_property(_mapscript.styleObj_polaroffsetangle_get, _mapscript.styleObj_polaroffsetangle_set)
-    __swig_setmethods__["angle"] = _mapscript.styleObj_angle_set
-    __swig_getmethods__["angle"] = _mapscript.styleObj_angle_get
-    if _newclass:angle = _swig_property(_mapscript.styleObj_angle_get, _mapscript.styleObj_angle_set)
-    __swig_setmethods__["antialias"] = _mapscript.styleObj_antialias_set
-    __swig_getmethods__["antialias"] = _mapscript.styleObj_antialias_get
-    if _newclass:antialias = _swig_property(_mapscript.styleObj_antialias_get, _mapscript.styleObj_antialias_set)
-    __swig_setmethods__["minscaledenom"] = _mapscript.styleObj_minscaledenom_set
-    __swig_getmethods__["minscaledenom"] = _mapscript.styleObj_minscaledenom_get
-    if _newclass:minscaledenom = _swig_property(_mapscript.styleObj_minscaledenom_get, _mapscript.styleObj_minscaledenom_set)
-    __swig_setmethods__["maxscaledenom"] = _mapscript.styleObj_maxscaledenom_set
-    __swig_getmethods__["maxscaledenom"] = _mapscript.styleObj_maxscaledenom_get
-    if _newclass:maxscaledenom = _swig_property(_mapscript.styleObj_maxscaledenom_get, _mapscript.styleObj_maxscaledenom_set)
-    def __init__(self, parent_class=None): 
-        this = _mapscript.new_styleObj(parent_class)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_styleObj
-    __del__ = lambda self : None;
-    def updateFromString(self, *args): return _mapscript.styleObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.styleObj_convertToString(self)
-    def clone(self): return _mapscript.styleObj_clone(self)
-    def setSymbolByName(self, *args): return _mapscript.styleObj_setSymbolByName(self, *args)
-    def removeBinding(self, *args): return _mapscript.styleObj_removeBinding(self, *args)
-    def setBinding(self, *args): return _mapscript.styleObj_setBinding(self, *args)
-    def getBinding(self, *args): return _mapscript.styleObj_getBinding(self, *args)
-    def getGeomTransform(self): return _mapscript.styleObj_getGeomTransform(self)
-    def setGeomTransform(self, *args): return _mapscript.styleObj_setGeomTransform(self, *args)
-styleObj_swigregister = _mapscript.styleObj_swigregister
-styleObj_swigregister(styleObj)
-
-class labelLeaderObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelLeaderObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelLeaderObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["maxdistance"] = _mapscript.labelLeaderObj_maxdistance_set
-    __swig_getmethods__["maxdistance"] = _mapscript.labelLeaderObj_maxdistance_get
-    if _newclass:maxdistance = _swig_property(_mapscript.labelLeaderObj_maxdistance_get, _mapscript.labelLeaderObj_maxdistance_set)
-    __swig_setmethods__["gridstep"] = _mapscript.labelLeaderObj_gridstep_set
-    __swig_getmethods__["gridstep"] = _mapscript.labelLeaderObj_gridstep_get
-    if _newclass:gridstep = _swig_property(_mapscript.labelLeaderObj_gridstep_get, _mapscript.labelLeaderObj_gridstep_set)
-    __swig_getmethods__["numstyles"] = _mapscript.labelLeaderObj_numstyles_get
-    if _newclass:numstyles = _swig_property(_mapscript.labelLeaderObj_numstyles_get)
-    def __init__(self): 
-        this = _mapscript.new_labelLeaderObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelLeaderObj
-    __del__ = lambda self : None;
-labelLeaderObj_swigregister = _mapscript.labelLeaderObj_swigregister
-labelLeaderObj_swigregister(labelLeaderObj)
-
-class labelObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["refcount"] = _mapscript.labelObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.labelObj_refcount_get)
-    __swig_setmethods__["font"] = _mapscript.labelObj_font_set
-    __swig_getmethods__["font"] = _mapscript.labelObj_font_get
-    if _newclass:font = _swig_property(_mapscript.labelObj_font_get, _mapscript.labelObj_font_set)
-    __swig_setmethods__["type"] = _mapscript.labelObj_type_set
-    __swig_getmethods__["type"] = _mapscript.labelObj_type_get
-    if _newclass:type = _swig_property(_mapscript.labelObj_type_get, _mapscript.labelObj_type_set)
-    __swig_setmethods__["color"] = _mapscript.labelObj_color_set
-    __swig_getmethods__["color"] = _mapscript.labelObj_color_get
-    if _newclass:color = _swig_property(_mapscript.labelObj_color_get, _mapscript.labelObj_color_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.labelObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.labelObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.labelObj_outlinecolor_get, _mapscript.labelObj_outlinecolor_set)
-    __swig_setmethods__["outlinewidth"] = _mapscript.labelObj_outlinewidth_set
-    __swig_getmethods__["outlinewidth"] = _mapscript.labelObj_outlinewidth_get
-    if _newclass:outlinewidth = _swig_property(_mapscript.labelObj_outlinewidth_get, _mapscript.labelObj_outlinewidth_set)
-    __swig_setmethods__["shadowcolor"] = _mapscript.labelObj_shadowcolor_set
-    __swig_getmethods__["shadowcolor"] = _mapscript.labelObj_shadowcolor_get
-    if _newclass:shadowcolor = _swig_property(_mapscript.labelObj_shadowcolor_get, _mapscript.labelObj_shadowcolor_set)
-    __swig_setmethods__["shadowsizex"] = _mapscript.labelObj_shadowsizex_set
-    __swig_getmethods__["shadowsizex"] = _mapscript.labelObj_shadowsizex_get
-    if _newclass:shadowsizex = _swig_property(_mapscript.labelObj_shadowsizex_get, _mapscript.labelObj_shadowsizex_set)
-    __swig_setmethods__["shadowsizey"] = _mapscript.labelObj_shadowsizey_set
-    __swig_getmethods__["shadowsizey"] = _mapscript.labelObj_shadowsizey_get
-    if _newclass:shadowsizey = _swig_property(_mapscript.labelObj_shadowsizey_get, _mapscript.labelObj_shadowsizey_set)
-    __swig_setmethods__["size"] = _mapscript.labelObj_size_set
-    __swig_getmethods__["size"] = _mapscript.labelObj_size_get
-    if _newclass:size = _swig_property(_mapscript.labelObj_size_get, _mapscript.labelObj_size_set)
-    __swig_setmethods__["minsize"] = _mapscript.labelObj_minsize_set
-    __swig_getmethods__["minsize"] = _mapscript.labelObj_minsize_get
-    if _newclass:minsize = _swig_property(_mapscript.labelObj_minsize_get, _mapscript.labelObj_minsize_set)
-    __swig_setmethods__["maxsize"] = _mapscript.labelObj_maxsize_set
-    __swig_getmethods__["maxsize"] = _mapscript.labelObj_maxsize_get
-    if _newclass:maxsize = _swig_property(_mapscript.labelObj_maxsize_get, _mapscript.labelObj_maxsize_set)
-    __swig_setmethods__["position"] = _mapscript.labelObj_position_set
-    __swig_getmethods__["position"] = _mapscript.labelObj_position_get
-    if _newclass:position = _swig_property(_mapscript.labelObj_position_get, _mapscript.labelObj_position_set)
-    __swig_setmethods__["offsetx"] = _mapscript.labelObj_offsetx_set
-    __swig_getmethods__["offsetx"] = _mapscript.labelObj_offsetx_get
-    if _newclass:offsetx = _swig_property(_mapscript.labelObj_offsetx_get, _mapscript.labelObj_offsetx_set)
-    __swig_setmethods__["offsety"] = _mapscript.labelObj_offsety_set
-    __swig_getmethods__["offsety"] = _mapscript.labelObj_offsety_get
-    if _newclass:offsety = _swig_property(_mapscript.labelObj_offsety_get, _mapscript.labelObj_offsety_set)
-    __swig_setmethods__["angle"] = _mapscript.labelObj_angle_set
-    __swig_getmethods__["angle"] = _mapscript.labelObj_angle_get
-    if _newclass:angle = _swig_property(_mapscript.labelObj_angle_get, _mapscript.labelObj_angle_set)
-    __swig_setmethods__["anglemode"] = _mapscript.labelObj_anglemode_set
-    __swig_getmethods__["anglemode"] = _mapscript.labelObj_anglemode_get
-    if _newclass:anglemode = _swig_property(_mapscript.labelObj_anglemode_get, _mapscript.labelObj_anglemode_set)
-    __swig_setmethods__["buffer"] = _mapscript.labelObj_buffer_set
-    __swig_getmethods__["buffer"] = _mapscript.labelObj_buffer_get
-    if _newclass:buffer = _swig_property(_mapscript.labelObj_buffer_get, _mapscript.labelObj_buffer_set)
-    __swig_setmethods__["antialias"] = _mapscript.labelObj_antialias_set
-    __swig_getmethods__["antialias"] = _mapscript.labelObj_antialias_get
-    if _newclass:antialias = _swig_property(_mapscript.labelObj_antialias_get, _mapscript.labelObj_antialias_set)
-    __swig_setmethods__["align"] = _mapscript.labelObj_align_set
-    __swig_getmethods__["align"] = _mapscript.labelObj_align_get
-    if _newclass:align = _swig_property(_mapscript.labelObj_align_get, _mapscript.labelObj_align_set)
-    __swig_setmethods__["wrap"] = _mapscript.labelObj_wrap_set
-    __swig_getmethods__["wrap"] = _mapscript.labelObj_wrap_get
-    if _newclass:wrap = _swig_property(_mapscript.labelObj_wrap_get, _mapscript.labelObj_wrap_set)
-    __swig_setmethods__["maxlength"] = _mapscript.labelObj_maxlength_set
-    __swig_getmethods__["maxlength"] = _mapscript.labelObj_maxlength_get
-    if _newclass:maxlength = _swig_property(_mapscript.labelObj_maxlength_get, _mapscript.labelObj_maxlength_set)
-    __swig_setmethods__["minlength"] = _mapscript.labelObj_minlength_set
-    __swig_getmethods__["minlength"] = _mapscript.labelObj_minlength_get
-    if _newclass:minlength = _swig_property(_mapscript.labelObj_minlength_get, _mapscript.labelObj_minlength_set)
-    __swig_setmethods__["space_size_10"] = _mapscript.labelObj_space_size_10_set
-    __swig_getmethods__["space_size_10"] = _mapscript.labelObj_space_size_10_get
-    if _newclass:space_size_10 = _swig_property(_mapscript.labelObj_space_size_10_get, _mapscript.labelObj_space_size_10_set)
-    __swig_setmethods__["minfeaturesize"] = _mapscript.labelObj_minfeaturesize_set
-    __swig_getmethods__["minfeaturesize"] = _mapscript.labelObj_minfeaturesize_get
-    if _newclass:minfeaturesize = _swig_property(_mapscript.labelObj_minfeaturesize_get, _mapscript.labelObj_minfeaturesize_set)
-    __swig_setmethods__["autominfeaturesize"] = _mapscript.labelObj_autominfeaturesize_set
-    __swig_getmethods__["autominfeaturesize"] = _mapscript.labelObj_autominfeaturesize_get
-    if _newclass:autominfeaturesize = _swig_property(_mapscript.labelObj_autominfeaturesize_get, _mapscript.labelObj_autominfeaturesize_set)
-    __swig_setmethods__["minscaledenom"] = _mapscript.labelObj_minscaledenom_set
-    __swig_getmethods__["minscaledenom"] = _mapscript.labelObj_minscaledenom_get
-    if _newclass:minscaledenom = _swig_property(_mapscript.labelObj_minscaledenom_get, _mapscript.labelObj_minscaledenom_set)
-    __swig_setmethods__["maxscaledenom"] = _mapscript.labelObj_maxscaledenom_set
-    __swig_getmethods__["maxscaledenom"] = _mapscript.labelObj_maxscaledenom_get
-    if _newclass:maxscaledenom = _swig_property(_mapscript.labelObj_maxscaledenom_get, _mapscript.labelObj_maxscaledenom_set)
-    __swig_setmethods__["mindistance"] = _mapscript.labelObj_mindistance_set
-    __swig_getmethods__["mindistance"] = _mapscript.labelObj_mindistance_get
-    if _newclass:mindistance = _swig_property(_mapscript.labelObj_mindistance_get, _mapscript.labelObj_mindistance_set)
-    __swig_setmethods__["repeatdistance"] = _mapscript.labelObj_repeatdistance_set
-    __swig_getmethods__["repeatdistance"] = _mapscript.labelObj_repeatdistance_get
-    if _newclass:repeatdistance = _swig_property(_mapscript.labelObj_repeatdistance_get, _mapscript.labelObj_repeatdistance_set)
-    __swig_setmethods__["maxoverlapangle"] = _mapscript.labelObj_maxoverlapangle_set
-    __swig_getmethods__["maxoverlapangle"] = _mapscript.labelObj_maxoverlapangle_get
-    if _newclass:maxoverlapangle = _swig_property(_mapscript.labelObj_maxoverlapangle_get, _mapscript.labelObj_maxoverlapangle_set)
-    __swig_setmethods__["partials"] = _mapscript.labelObj_partials_set
-    __swig_getmethods__["partials"] = _mapscript.labelObj_partials_get
-    if _newclass:partials = _swig_property(_mapscript.labelObj_partials_get, _mapscript.labelObj_partials_set)
-    __swig_setmethods__["force"] = _mapscript.labelObj_force_set
-    __swig_getmethods__["force"] = _mapscript.labelObj_force_get
-    if _newclass:force = _swig_property(_mapscript.labelObj_force_get, _mapscript.labelObj_force_set)
-    __swig_setmethods__["encoding"] = _mapscript.labelObj_encoding_set
-    __swig_getmethods__["encoding"] = _mapscript.labelObj_encoding_get
-    if _newclass:encoding = _swig_property(_mapscript.labelObj_encoding_get, _mapscript.labelObj_encoding_set)
-    __swig_setmethods__["priority"] = _mapscript.labelObj_priority_set
-    __swig_getmethods__["priority"] = _mapscript.labelObj_priority_get
-    if _newclass:priority = _swig_property(_mapscript.labelObj_priority_get, _mapscript.labelObj_priority_set)
-    __swig_setmethods__["status"] = _mapscript.labelObj_status_set
-    __swig_getmethods__["status"] = _mapscript.labelObj_status_get
-    if _newclass:status = _swig_property(_mapscript.labelObj_status_get, _mapscript.labelObj_status_set)
-    __swig_setmethods__["numstyles"] = _mapscript.labelObj_numstyles_set
-    __swig_getmethods__["numstyles"] = _mapscript.labelObj_numstyles_get
-    if _newclass:numstyles = _swig_property(_mapscript.labelObj_numstyles_get, _mapscript.labelObj_numstyles_set)
-    __swig_setmethods__["annotext"] = _mapscript.labelObj_annotext_set
-    __swig_getmethods__["annotext"] = _mapscript.labelObj_annotext_get
-    if _newclass:annotext = _swig_property(_mapscript.labelObj_annotext_get, _mapscript.labelObj_annotext_set)
-    __swig_setmethods__["annopoint"] = _mapscript.labelObj_annopoint_set
-    __swig_getmethods__["annopoint"] = _mapscript.labelObj_annopoint_get
-    if _newclass:annopoint = _swig_property(_mapscript.labelObj_annopoint_get, _mapscript.labelObj_annopoint_set)
-    __swig_setmethods__["annopoly"] = _mapscript.labelObj_annopoly_set
-    __swig_getmethods__["annopoly"] = _mapscript.labelObj_annopoly_get
-    if _newclass:annopoly = _swig_property(_mapscript.labelObj_annopoly_get, _mapscript.labelObj_annopoly_set)
-    __swig_setmethods__["leader"] = _mapscript.labelObj_leader_set
-    __swig_getmethods__["leader"] = _mapscript.labelObj_leader_get
-    if _newclass:leader = _swig_property(_mapscript.labelObj_leader_get, _mapscript.labelObj_leader_set)
-    def __init__(self): 
-        this = _mapscript.new_labelObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelObj
-    __del__ = lambda self : None;
-    def updateFromString(self, *args): return _mapscript.labelObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.labelObj_convertToString(self)
-    def removeBinding(self, *args): return _mapscript.labelObj_removeBinding(self, *args)
-    def getBinding(self, *args): return _mapscript.labelObj_getBinding(self, *args)
-    def setBinding(self, *args): return _mapscript.labelObj_setBinding(self, *args)
-    def setExpression(self, *args): return _mapscript.labelObj_setExpression(self, *args)
-    def getExpressionString(self): return _mapscript.labelObj_getExpressionString(self)
-    def setText(self, *args): return _mapscript.labelObj_setText(self, *args)
-    def getTextString(self): return _mapscript.labelObj_getTextString(self)
-    def getStyle(self, *args): return _mapscript.labelObj_getStyle(self, *args)
-    def insertStyle(self, *args): return _mapscript.labelObj_insertStyle(self, *args)
-    def removeStyle(self, *args): return _mapscript.labelObj_removeStyle(self, *args)
-    def moveStyleUp(self, *args): return _mapscript.labelObj_moveStyleUp(self, *args)
-    def moveStyleDown(self, *args): return _mapscript.labelObj_moveStyleDown(self, *args)
-labelObj_swigregister = _mapscript.labelObj_swigregister
-labelObj_swigregister(labelObj)
-
-class classObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, classObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, classObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["status"] = _mapscript.classObj_status_set
-    __swig_getmethods__["status"] = _mapscript.classObj_status_get
-    if _newclass:status = _swig_property(_mapscript.classObj_status_get, _mapscript.classObj_status_set)
-    __swig_getmethods__["numstyles"] = _mapscript.classObj_numstyles_get
-    if _newclass:numstyles = _swig_property(_mapscript.classObj_numstyles_get)
-    __swig_setmethods__["numlabels"] = _mapscript.classObj_numlabels_set
-    __swig_getmethods__["numlabels"] = _mapscript.classObj_numlabels_get
-    if _newclass:numlabels = _swig_property(_mapscript.classObj_numlabels_get, _mapscript.classObj_numlabels_set)
-    __swig_setmethods__["name"] = _mapscript.classObj_name_set
-    __swig_getmethods__["name"] = _mapscript.classObj_name_get
-    if _newclass:name = _swig_property(_mapscript.classObj_name_get, _mapscript.classObj_name_set)
-    __swig_setmethods__["title"] = _mapscript.classObj_title_set
-    __swig_getmethods__["title"] = _mapscript.classObj_title_get
-    if _newclass:title = _swig_property(_mapscript.classObj_title_get, _mapscript.classObj_title_set)
-    __swig_setmethods__["template"] = _mapscript.classObj_template_set
-    __swig_getmethods__["template"] = _mapscript.classObj_template_get
-    if _newclass:template = _swig_property(_mapscript.classObj_template_get, _mapscript.classObj_template_set)
-    __swig_setmethods__["type"] = _mapscript.classObj_type_set
-    __swig_getmethods__["type"] = _mapscript.classObj_type_get
-    if _newclass:type = _swig_property(_mapscript.classObj_type_get, _mapscript.classObj_type_set)
-    __swig_getmethods__["metadata"] = _mapscript.classObj_metadata_get
-    if _newclass:metadata = _swig_property(_mapscript.classObj_metadata_get)
-    __swig_getmethods__["validation"] = _mapscript.classObj_validation_get
-    if _newclass:validation = _swig_property(_mapscript.classObj_validation_get)
-    __swig_setmethods__["minscaledenom"] = _mapscript.classObj_minscaledenom_set
-    __swig_getmethods__["minscaledenom"] = _mapscript.classObj_minscaledenom_get
-    if _newclass:minscaledenom = _swig_property(_mapscript.classObj_minscaledenom_get, _mapscript.classObj_minscaledenom_set)
-    __swig_setmethods__["maxscaledenom"] = _mapscript.classObj_maxscaledenom_set
-    __swig_getmethods__["maxscaledenom"] = _mapscript.classObj_maxscaledenom_get
-    if _newclass:maxscaledenom = _swig_property(_mapscript.classObj_maxscaledenom_get, _mapscript.classObj_maxscaledenom_set)
-    __swig_setmethods__["minfeaturesize"] = _mapscript.classObj_minfeaturesize_set
-    __swig_getmethods__["minfeaturesize"] = _mapscript.classObj_minfeaturesize_get
-    if _newclass:minfeaturesize = _swig_property(_mapscript.classObj_minfeaturesize_get, _mapscript.classObj_minfeaturesize_set)
-    __swig_getmethods__["refcount"] = _mapscript.classObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.classObj_refcount_get)
-    __swig_getmethods__["layer"] = _mapscript.classObj_layer_get
-    if _newclass:layer = _swig_property(_mapscript.classObj_layer_get)
-    __swig_setmethods__["debug"] = _mapscript.classObj_debug_set
-    __swig_getmethods__["debug"] = _mapscript.classObj_debug_get
-    if _newclass:debug = _swig_property(_mapscript.classObj_debug_get, _mapscript.classObj_debug_set)
-    __swig_setmethods__["keyimage"] = _mapscript.classObj_keyimage_set
-    __swig_getmethods__["keyimage"] = _mapscript.classObj_keyimage_get
-    if _newclass:keyimage = _swig_property(_mapscript.classObj_keyimage_get, _mapscript.classObj_keyimage_set)
-    __swig_setmethods__["group"] = _mapscript.classObj_group_set
-    __swig_getmethods__["group"] = _mapscript.classObj_group_get
-    if _newclass:group = _swig_property(_mapscript.classObj_group_get, _mapscript.classObj_group_set)
-    __swig_setmethods__["leader"] = _mapscript.classObj_leader_set
-    __swig_getmethods__["leader"] = _mapscript.classObj_leader_get
-    if _newclass:leader = _swig_property(_mapscript.classObj_leader_get, _mapscript.classObj_leader_set)
-    def __init__(self, layer=None): 
-        this = _mapscript.new_classObj(layer)
-        try: self.this.append(this)
-        except: self.this = this
-        if 1:
-                    self.p_layer =None
-                    try:
-                        # python 2.5
-                        if args and len(args)!=0: 
-                            self.p_layer=args[0]
-                    except NameError:
-                        # python 2.6
-                        if layer: 
-                            self.p_layer=layer
-               
-
-
-    __swig_destroy__ = _mapscript.delete_classObj
-    __del__ = lambda self : None;
-    def updateFromString(self, *args): return _mapscript.classObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.classObj_convertToString(self)
-    def clone(self): return _mapscript.classObj_clone(self)
-    def setExpression(self, *args): return _mapscript.classObj_setExpression(self, *args)
-    def getExpressionString(self): return _mapscript.classObj_getExpressionString(self)
-    def setText(self, *args): return _mapscript.classObj_setText(self, *args)
-    def getTextString(self): return _mapscript.classObj_getTextString(self)
-    def getMetaData(self, *args): return _mapscript.classObj_getMetaData(self, *args)
-    def setMetaData(self, *args): return _mapscript.classObj_setMetaData(self, *args)
-    def getFirstMetaDataKey(self): return _mapscript.classObj_getFirstMetaDataKey(self)
-    def getNextMetaDataKey(self, *args): return _mapscript.classObj_getNextMetaDataKey(self, *args)
-    def drawLegendIcon(self, *args): return _mapscript.classObj_drawLegendIcon(self, *args)
-    def createLegendIcon(self, *args): return _mapscript.classObj_createLegendIcon(self, *args)
-    def getLabel(self, *args): return _mapscript.classObj_getLabel(self, *args)
-    def addLabel(self, *args): return _mapscript.classObj_addLabel(self, *args)
-    def removeLabel(self, *args): return _mapscript.classObj_removeLabel(self, *args)
-    def getStyle(self, *args): return _mapscript.classObj_getStyle(self, *args)
-    def insertStyle(self, *args): return _mapscript.classObj_insertStyle(self, *args)
-    def removeStyle(self, *args): return _mapscript.classObj_removeStyle(self, *args)
-    def moveStyleUp(self, *args): return _mapscript.classObj_moveStyleUp(self, *args)
-    def moveStyleDown(self, *args): return _mapscript.classObj_moveStyleDown(self, *args)
-classObj_swigregister = _mapscript.classObj_swigregister
-classObj_swigregister(classObj)
-
-class labelCacheMemberObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheMemberObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheMemberObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["featuresize"] = _mapscript.labelCacheMemberObj_featuresize_get
-    if _newclass:featuresize = _swig_property(_mapscript.labelCacheMemberObj_featuresize_get)
-    __swig_getmethods__["styles"] = _mapscript.labelCacheMemberObj_styles_get
-    if _newclass:styles = _swig_property(_mapscript.labelCacheMemberObj_styles_get)
-    __swig_getmethods__["numstyles"] = _mapscript.labelCacheMemberObj_numstyles_get
-    if _newclass:numstyles = _swig_property(_mapscript.labelCacheMemberObj_numstyles_get)
-    __swig_getmethods__["labels"] = _mapscript.labelCacheMemberObj_labels_get
-    if _newclass:labels = _swig_property(_mapscript.labelCacheMemberObj_labels_get)
-    __swig_getmethods__["numlabels"] = _mapscript.labelCacheMemberObj_numlabels_get
-    if _newclass:numlabels = _swig_property(_mapscript.labelCacheMemberObj_numlabels_get)
-    __swig_getmethods__["layerindex"] = _mapscript.labelCacheMemberObj_layerindex_get
-    if _newclass:layerindex = _swig_property(_mapscript.labelCacheMemberObj_layerindex_get)
-    __swig_getmethods__["classindex"] = _mapscript.labelCacheMemberObj_classindex_get
-    if _newclass:classindex = _swig_property(_mapscript.labelCacheMemberObj_classindex_get)
-    __swig_getmethods__["shapetype"] = _mapscript.labelCacheMemberObj_shapetype_get
-    if _newclass:shapetype = _swig_property(_mapscript.labelCacheMemberObj_shapetype_get)
-    __swig_getmethods__["point"] = _mapscript.labelCacheMemberObj_point_get
-    if _newclass:point = _swig_property(_mapscript.labelCacheMemberObj_point_get)
-    __swig_getmethods__["poly"] = _mapscript.labelCacheMemberObj_poly_get
-    if _newclass:poly = _swig_property(_mapscript.labelCacheMemberObj_poly_get)
-    __swig_getmethods__["status"] = _mapscript.labelCacheMemberObj_status_get
-    if _newclass:status = _swig_property(_mapscript.labelCacheMemberObj_status_get)
-    __swig_getmethods__["markerid"] = _mapscript.labelCacheMemberObj_markerid_get
-    if _newclass:markerid = _swig_property(_mapscript.labelCacheMemberObj_markerid_get)
-    __swig_getmethods__["leaderline"] = _mapscript.labelCacheMemberObj_leaderline_get
-    if _newclass:leaderline = _swig_property(_mapscript.labelCacheMemberObj_leaderline_get)
-    __swig_getmethods__["leaderbbox"] = _mapscript.labelCacheMemberObj_leaderbbox_get
-    if _newclass:leaderbbox = _swig_property(_mapscript.labelCacheMemberObj_leaderbbox_get)
-    def __init__(self): 
-        this = _mapscript.new_labelCacheMemberObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelCacheMemberObj
-    __del__ = lambda self : None;
-labelCacheMemberObj_swigregister = _mapscript.labelCacheMemberObj_swigregister
-labelCacheMemberObj_swigregister(labelCacheMemberObj)
-
-class markerCacheMemberObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, markerCacheMemberObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, markerCacheMemberObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["id"] = _mapscript.markerCacheMemberObj_id_get
-    if _newclass:id = _swig_property(_mapscript.markerCacheMemberObj_id_get)
-    __swig_getmethods__["poly"] = _mapscript.markerCacheMemberObj_poly_get
-    if _newclass:poly = _swig_property(_mapscript.markerCacheMemberObj_poly_get)
-    def __init__(self): 
-        this = _mapscript.new_markerCacheMemberObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_markerCacheMemberObj
-    __del__ = lambda self : None;
-markerCacheMemberObj_swigregister = _mapscript.markerCacheMemberObj_swigregister
-markerCacheMemberObj_swigregister(markerCacheMemberObj)
-
-class labelCacheSlotObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheSlotObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheSlotObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["labels"] = _mapscript.labelCacheSlotObj_labels_get
-    if _newclass:labels = _swig_property(_mapscript.labelCacheSlotObj_labels_get)
-    __swig_getmethods__["numlabels"] = _mapscript.labelCacheSlotObj_numlabels_get
-    if _newclass:numlabels = _swig_property(_mapscript.labelCacheSlotObj_numlabels_get)
-    __swig_getmethods__["cachesize"] = _mapscript.labelCacheSlotObj_cachesize_get
-    if _newclass:cachesize = _swig_property(_mapscript.labelCacheSlotObj_cachesize_get)
-    __swig_getmethods__["markers"] = _mapscript.labelCacheSlotObj_markers_get
-    if _newclass:markers = _swig_property(_mapscript.labelCacheSlotObj_markers_get)
-    __swig_getmethods__["nummarkers"] = _mapscript.labelCacheSlotObj_nummarkers_get
-    if _newclass:nummarkers = _swig_property(_mapscript.labelCacheSlotObj_nummarkers_get)
-    __swig_getmethods__["markercachesize"] = _mapscript.labelCacheSlotObj_markercachesize_get
-    if _newclass:markercachesize = _swig_property(_mapscript.labelCacheSlotObj_markercachesize_get)
-    def __init__(self): 
-        this = _mapscript.new_labelCacheSlotObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelCacheSlotObj
-    __del__ = lambda self : None;
-labelCacheSlotObj_swigregister = _mapscript.labelCacheSlotObj_swigregister
-labelCacheSlotObj_swigregister(labelCacheSlotObj)
-
-class labelCacheObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelCacheObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelCacheObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["slots"] = _mapscript.labelCacheObj_slots_get
-    if _newclass:slots = _swig_property(_mapscript.labelCacheObj_slots_get)
-    __swig_getmethods__["numlabels"] = _mapscript.labelCacheObj_numlabels_get
-    if _newclass:numlabels = _swig_property(_mapscript.labelCacheObj_numlabels_get)
-    __swig_getmethods__["gutter"] = _mapscript.labelCacheObj_gutter_get
-    if _newclass:gutter = _swig_property(_mapscript.labelCacheObj_gutter_get)
-    def freeCache(self): return _mapscript.labelCacheObj_freeCache(self)
-    def __init__(self): 
-        this = _mapscript.new_labelCacheObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelCacheObj
-    __del__ = lambda self : None;
-labelCacheObj_swigregister = _mapscript.labelCacheObj_swigregister
-labelCacheObj_swigregister(labelCacheObj)
-
-class resultObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, resultObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, resultObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["shapeindex"] = _mapscript.resultObj_shapeindex_get
-    if _newclass:shapeindex = _swig_property(_mapscript.resultObj_shapeindex_get)
-    __swig_getmethods__["tileindex"] = _mapscript.resultObj_tileindex_get
-    if _newclass:tileindex = _swig_property(_mapscript.resultObj_tileindex_get)
-    __swig_getmethods__["resultindex"] = _mapscript.resultObj_resultindex_get
-    if _newclass:resultindex = _swig_property(_mapscript.resultObj_resultindex_get)
-    __swig_getmethods__["classindex"] = _mapscript.resultObj_classindex_get
-    if _newclass:classindex = _swig_property(_mapscript.resultObj_classindex_get)
-    def __init__(self, *args): 
-        this = _mapscript.new_resultObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_resultObj
-    __del__ = lambda self : None;
-resultObj_swigregister = _mapscript.resultObj_swigregister
-resultObj_swigregister(resultObj)
-
-class resultCacheObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, resultCacheObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, resultCacheObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numresults"] = _mapscript.resultCacheObj_numresults_get
-    if _newclass:numresults = _swig_property(_mapscript.resultCacheObj_numresults_get)
-    __swig_getmethods__["bounds"] = _mapscript.resultCacheObj_bounds_get
-    if _newclass:bounds = _swig_property(_mapscript.resultCacheObj_bounds_get)
-    __swig_setmethods__["usegetshape"] = _mapscript.resultCacheObj_usegetshape_set
-    __swig_getmethods__["usegetshape"] = _mapscript.resultCacheObj_usegetshape_get
-    if _newclass:usegetshape = _swig_property(_mapscript.resultCacheObj_usegetshape_get, _mapscript.resultCacheObj_usegetshape_set)
-    def getResult(self, *args): return _mapscript.resultCacheObj_getResult(self, *args)
-    def __init__(self): 
-        this = _mapscript.new_resultCacheObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_resultCacheObj
-    __del__ = lambda self : None;
-resultCacheObj_swigregister = _mapscript.resultCacheObj_swigregister
-resultCacheObj_swigregister(resultCacheObj)
-
-class symbolSetObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, symbolSetObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, symbolSetObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["filename"] = _mapscript.symbolSetObj_filename_set
-    __swig_getmethods__["filename"] = _mapscript.symbolSetObj_filename_get
-    if _newclass:filename = _swig_property(_mapscript.symbolSetObj_filename_get, _mapscript.symbolSetObj_filename_set)
-    __swig_setmethods__["imagecachesize"] = _mapscript.symbolSetObj_imagecachesize_set
-    __swig_getmethods__["imagecachesize"] = _mapscript.symbolSetObj_imagecachesize_get
-    if _newclass:imagecachesize = _swig_property(_mapscript.symbolSetObj_imagecachesize_get, _mapscript.symbolSetObj_imagecachesize_set)
-    __swig_getmethods__["numsymbols"] = _mapscript.symbolSetObj_numsymbols_get
-    if _newclass:numsymbols = _swig_property(_mapscript.symbolSetObj_numsymbols_get)
-    __swig_getmethods__["maxsymbols"] = _mapscript.symbolSetObj_maxsymbols_get
-    if _newclass:maxsymbols = _swig_property(_mapscript.symbolSetObj_maxsymbols_get)
-    def __init__(self, symbolfile=None): 
-        this = _mapscript.new_symbolSetObj(symbolfile)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_symbolSetObj
-    __del__ = lambda self : None;
-    def getSymbol(self, *args): return _mapscript.symbolSetObj_getSymbol(self, *args)
-    def getSymbolByName(self, *args): return _mapscript.symbolSetObj_getSymbolByName(self, *args)
-    def index(self, *args): return _mapscript.symbolSetObj_index(self, *args)
-    def appendSymbol(self, *args): return _mapscript.symbolSetObj_appendSymbol(self, *args)
-    def removeSymbol(self, *args): return _mapscript.symbolSetObj_removeSymbol(self, *args)
-    def save(self, *args): return _mapscript.symbolSetObj_save(self, *args)
-symbolSetObj_swigregister = _mapscript.symbolSetObj_swigregister
-symbolSetObj_swigregister(symbolSetObj)
-
-class referenceMapObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, referenceMapObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, referenceMapObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["extent"] = _mapscript.referenceMapObj_extent_set
-    __swig_getmethods__["extent"] = _mapscript.referenceMapObj_extent_get
-    if _newclass:extent = _swig_property(_mapscript.referenceMapObj_extent_get, _mapscript.referenceMapObj_extent_set)
-    __swig_setmethods__["height"] = _mapscript.referenceMapObj_height_set
-    __swig_getmethods__["height"] = _mapscript.referenceMapObj_height_get
-    if _newclass:height = _swig_property(_mapscript.referenceMapObj_height_get, _mapscript.referenceMapObj_height_set)
-    __swig_setmethods__["width"] = _mapscript.referenceMapObj_width_set
-    __swig_getmethods__["width"] = _mapscript.referenceMapObj_width_get
-    if _newclass:width = _swig_property(_mapscript.referenceMapObj_width_get, _mapscript.referenceMapObj_width_set)
-    __swig_setmethods__["color"] = _mapscript.referenceMapObj_color_set
-    __swig_getmethods__["color"] = _mapscript.referenceMapObj_color_get
-    if _newclass:color = _swig_property(_mapscript.referenceMapObj_color_get, _mapscript.referenceMapObj_color_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.referenceMapObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.referenceMapObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.referenceMapObj_outlinecolor_get, _mapscript.referenceMapObj_outlinecolor_set)
-    __swig_setmethods__["image"] = _mapscript.referenceMapObj_image_set
-    __swig_getmethods__["image"] = _mapscript.referenceMapObj_image_get
-    if _newclass:image = _swig_property(_mapscript.referenceMapObj_image_get, _mapscript.referenceMapObj_image_set)
-    __swig_setmethods__["status"] = _mapscript.referenceMapObj_status_set
-    __swig_getmethods__["status"] = _mapscript.referenceMapObj_status_get
-    if _newclass:status = _swig_property(_mapscript.referenceMapObj_status_get, _mapscript.referenceMapObj_status_set)
-    __swig_setmethods__["marker"] = _mapscript.referenceMapObj_marker_set
-    __swig_getmethods__["marker"] = _mapscript.referenceMapObj_marker_get
-    if _newclass:marker = _swig_property(_mapscript.referenceMapObj_marker_get, _mapscript.referenceMapObj_marker_set)
-    __swig_setmethods__["markername"] = _mapscript.referenceMapObj_markername_set
-    __swig_getmethods__["markername"] = _mapscript.referenceMapObj_markername_get
-    if _newclass:markername = _swig_property(_mapscript.referenceMapObj_markername_get, _mapscript.referenceMapObj_markername_set)
-    __swig_setmethods__["markersize"] = _mapscript.referenceMapObj_markersize_set
-    __swig_getmethods__["markersize"] = _mapscript.referenceMapObj_markersize_get
-    if _newclass:markersize = _swig_property(_mapscript.referenceMapObj_markersize_get, _mapscript.referenceMapObj_markersize_set)
-    __swig_setmethods__["minboxsize"] = _mapscript.referenceMapObj_minboxsize_set
-    __swig_getmethods__["minboxsize"] = _mapscript.referenceMapObj_minboxsize_get
-    if _newclass:minboxsize = _swig_property(_mapscript.referenceMapObj_minboxsize_get, _mapscript.referenceMapObj_minboxsize_set)
-    __swig_setmethods__["maxboxsize"] = _mapscript.referenceMapObj_maxboxsize_set
-    __swig_getmethods__["maxboxsize"] = _mapscript.referenceMapObj_maxboxsize_get
-    if _newclass:maxboxsize = _swig_property(_mapscript.referenceMapObj_maxboxsize_get, _mapscript.referenceMapObj_maxboxsize_set)
-    __swig_getmethods__["map"] = _mapscript.referenceMapObj_map_get
-    if _newclass:map = _swig_property(_mapscript.referenceMapObj_map_get)
-    def updateFromString(self, *args): return _mapscript.referenceMapObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.referenceMapObj_convertToString(self)
-    def __init__(self): 
-        this = _mapscript.new_referenceMapObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_referenceMapObj
-    __del__ = lambda self : None;
-referenceMapObj_swigregister = _mapscript.referenceMapObj_swigregister
-referenceMapObj_swigregister(referenceMapObj)
-
-class scalebarObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, scalebarObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, scalebarObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["imagecolor"] = _mapscript.scalebarObj_imagecolor_set
-    __swig_getmethods__["imagecolor"] = _mapscript.scalebarObj_imagecolor_get
-    if _newclass:imagecolor = _swig_property(_mapscript.scalebarObj_imagecolor_get, _mapscript.scalebarObj_imagecolor_set)
-    __swig_setmethods__["height"] = _mapscript.scalebarObj_height_set
-    __swig_getmethods__["height"] = _mapscript.scalebarObj_height_get
-    if _newclass:height = _swig_property(_mapscript.scalebarObj_height_get, _mapscript.scalebarObj_height_set)
-    __swig_setmethods__["width"] = _mapscript.scalebarObj_width_set
-    __swig_getmethods__["width"] = _mapscript.scalebarObj_width_get
-    if _newclass:width = _swig_property(_mapscript.scalebarObj_width_get, _mapscript.scalebarObj_width_set)
-    __swig_setmethods__["style"] = _mapscript.scalebarObj_style_set
-    __swig_getmethods__["style"] = _mapscript.scalebarObj_style_get
-    if _newclass:style = _swig_property(_mapscript.scalebarObj_style_get, _mapscript.scalebarObj_style_set)
-    __swig_setmethods__["intervals"] = _mapscript.scalebarObj_intervals_set
-    __swig_getmethods__["intervals"] = _mapscript.scalebarObj_intervals_get
-    if _newclass:intervals = _swig_property(_mapscript.scalebarObj_intervals_get, _mapscript.scalebarObj_intervals_set)
-    __swig_setmethods__["label"] = _mapscript.scalebarObj_label_set
-    __swig_getmethods__["label"] = _mapscript.scalebarObj_label_get
-    if _newclass:label = _swig_property(_mapscript.scalebarObj_label_get, _mapscript.scalebarObj_label_set)
-    __swig_setmethods__["color"] = _mapscript.scalebarObj_color_set
-    __swig_getmethods__["color"] = _mapscript.scalebarObj_color_get
-    if _newclass:color = _swig_property(_mapscript.scalebarObj_color_get, _mapscript.scalebarObj_color_set)
-    __swig_setmethods__["backgroundcolor"] = _mapscript.scalebarObj_backgroundcolor_set
-    __swig_getmethods__["backgroundcolor"] = _mapscript.scalebarObj_backgroundcolor_get
-    if _newclass:backgroundcolor = _swig_property(_mapscript.scalebarObj_backgroundcolor_get, _mapscript.scalebarObj_backgroundcolor_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.scalebarObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.scalebarObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.scalebarObj_outlinecolor_get, _mapscript.scalebarObj_outlinecolor_set)
-    __swig_setmethods__["units"] = _mapscript.scalebarObj_units_set
-    __swig_getmethods__["units"] = _mapscript.scalebarObj_units_get
-    if _newclass:units = _swig_property(_mapscript.scalebarObj_units_get, _mapscript.scalebarObj_units_set)
-    __swig_setmethods__["status"] = _mapscript.scalebarObj_status_set
-    __swig_getmethods__["status"] = _mapscript.scalebarObj_status_get
-    if _newclass:status = _swig_property(_mapscript.scalebarObj_status_get, _mapscript.scalebarObj_status_set)
-    __swig_setmethods__["position"] = _mapscript.scalebarObj_position_set
-    __swig_getmethods__["position"] = _mapscript.scalebarObj_position_get
-    if _newclass:position = _swig_property(_mapscript.scalebarObj_position_get, _mapscript.scalebarObj_position_set)
-    __swig_setmethods__["postlabelcache"] = _mapscript.scalebarObj_postlabelcache_set
-    __swig_getmethods__["postlabelcache"] = _mapscript.scalebarObj_postlabelcache_get
-    if _newclass:postlabelcache = _swig_property(_mapscript.scalebarObj_postlabelcache_get, _mapscript.scalebarObj_postlabelcache_set)
-    __swig_setmethods__["align"] = _mapscript.scalebarObj_align_set
-    __swig_getmethods__["align"] = _mapscript.scalebarObj_align_get
-    if _newclass:align = _swig_property(_mapscript.scalebarObj_align_get, _mapscript.scalebarObj_align_set)
-    def updateFromString(self, *args): return _mapscript.scalebarObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.scalebarObj_convertToString(self)
-    def __init__(self): 
-        this = _mapscript.new_scalebarObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_scalebarObj
-    __del__ = lambda self : None;
-scalebarObj_swigregister = _mapscript.scalebarObj_swigregister
-scalebarObj_swigregister(scalebarObj)
-
-class legendObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, legendObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, legendObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["imagecolor"] = _mapscript.legendObj_imagecolor_set
-    __swig_getmethods__["imagecolor"] = _mapscript.legendObj_imagecolor_get
-    if _newclass:imagecolor = _swig_property(_mapscript.legendObj_imagecolor_get, _mapscript.legendObj_imagecolor_set)
-    __swig_getmethods__["label"] = _mapscript.legendObj_label_get
-    if _newclass:label = _swig_property(_mapscript.legendObj_label_get)
-    __swig_setmethods__["keysizex"] = _mapscript.legendObj_keysizex_set
-    __swig_getmethods__["keysizex"] = _mapscript.legendObj_keysizex_get
-    if _newclass:keysizex = _swig_property(_mapscript.legendObj_keysizex_get, _mapscript.legendObj_keysizex_set)
-    __swig_setmethods__["keysizey"] = _mapscript.legendObj_keysizey_set
-    __swig_getmethods__["keysizey"] = _mapscript.legendObj_keysizey_get
-    if _newclass:keysizey = _swig_property(_mapscript.legendObj_keysizey_get, _mapscript.legendObj_keysizey_set)
-    __swig_setmethods__["keyspacingx"] = _mapscript.legendObj_keyspacingx_set
-    __swig_getmethods__["keyspacingx"] = _mapscript.legendObj_keyspacingx_get
-    if _newclass:keyspacingx = _swig_property(_mapscript.legendObj_keyspacingx_get, _mapscript.legendObj_keyspacingx_set)
-    __swig_setmethods__["keyspacingy"] = _mapscript.legendObj_keyspacingy_set
-    __swig_getmethods__["keyspacingy"] = _mapscript.legendObj_keyspacingy_get
-    if _newclass:keyspacingy = _swig_property(_mapscript.legendObj_keyspacingy_get, _mapscript.legendObj_keyspacingy_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.legendObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.legendObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.legendObj_outlinecolor_get, _mapscript.legendObj_outlinecolor_set)
-    __swig_setmethods__["status"] = _mapscript.legendObj_status_set
-    __swig_getmethods__["status"] = _mapscript.legendObj_status_get
-    if _newclass:status = _swig_property(_mapscript.legendObj_status_get, _mapscript.legendObj_status_set)
-    __swig_setmethods__["height"] = _mapscript.legendObj_height_set
-    __swig_getmethods__["height"] = _mapscript.legendObj_height_get
-    if _newclass:height = _swig_property(_mapscript.legendObj_height_get, _mapscript.legendObj_height_set)
-    __swig_setmethods__["width"] = _mapscript.legendObj_width_set
-    __swig_getmethods__["width"] = _mapscript.legendObj_width_get
-    if _newclass:width = _swig_property(_mapscript.legendObj_width_get, _mapscript.legendObj_width_set)
-    __swig_setmethods__["position"] = _mapscript.legendObj_position_set
-    __swig_getmethods__["position"] = _mapscript.legendObj_position_get
-    if _newclass:position = _swig_property(_mapscript.legendObj_position_get, _mapscript.legendObj_position_set)
-    __swig_setmethods__["postlabelcache"] = _mapscript.legendObj_postlabelcache_set
-    __swig_getmethods__["postlabelcache"] = _mapscript.legendObj_postlabelcache_get
-    if _newclass:postlabelcache = _swig_property(_mapscript.legendObj_postlabelcache_get, _mapscript.legendObj_postlabelcache_set)
-    __swig_setmethods__["template"] = _mapscript.legendObj_template_set
-    __swig_getmethods__["template"] = _mapscript.legendObj_template_get
-    if _newclass:template = _swig_property(_mapscript.legendObj_template_get, _mapscript.legendObj_template_set)
-    __swig_getmethods__["map"] = _mapscript.legendObj_map_get
-    if _newclass:map = _swig_property(_mapscript.legendObj_map_get)
-    def updateFromString(self, *args): return _mapscript.legendObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.legendObj_convertToString(self)
-    def __init__(self): 
-        this = _mapscript.new_legendObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_legendObj
-    __del__ = lambda self : None;
-legendObj_swigregister = _mapscript.legendObj_swigregister
-legendObj_swigregister(legendObj)
-
-class imageObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, imageObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, imageObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["width"] = _mapscript.imageObj_width_get
-    if _newclass:width = _swig_property(_mapscript.imageObj_width_get)
-    __swig_getmethods__["height"] = _mapscript.imageObj_height_get
-    if _newclass:height = _swig_property(_mapscript.imageObj_height_get)
-    __swig_getmethods__["resolution"] = _mapscript.imageObj_resolution_get
-    if _newclass:resolution = _swig_property(_mapscript.imageObj_resolution_get)
-    __swig_getmethods__["resolutionfactor"] = _mapscript.imageObj_resolutionfactor_get
-    if _newclass:resolutionfactor = _swig_property(_mapscript.imageObj_resolutionfactor_get)
-    __swig_getmethods__["imagepath"] = _mapscript.imageObj_imagepath_get
-    if _newclass:imagepath = _swig_property(_mapscript.imageObj_imagepath_get)
-    __swig_getmethods__["imageurl"] = _mapscript.imageObj_imageurl_get
-    if _newclass:imageurl = _swig_property(_mapscript.imageObj_imageurl_get)
-    __swig_getmethods__["format"] = _mapscript.imageObj_format_get
-    if _newclass:format = _swig_property(_mapscript.imageObj_format_get)
-    __swig_destroy__ = _mapscript.delete_imageObj
-    __del__ = lambda self : None;
-    def save(self, *args): return _mapscript.imageObj_save(self, *args)
-    def getBytes(self): return _mapscript.imageObj_getBytes(self)
-    def getSize(self): return _mapscript.imageObj_getSize(self)
-    def __init__(self, *args): 
-        this = _mapscript.new_imageObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    def write(self, *args): return _mapscript.imageObj_write(self, *args)
-    def saveToString(self): return _mapscript.imageObj_saveToString(self)
-imageObj_swigregister = _mapscript.imageObj_swigregister
-imageObj_swigregister(imageObj)
-
-class scaleTokenEntryObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, scaleTokenEntryObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, scaleTokenEntryObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["minscale"] = _mapscript.scaleTokenEntryObj_minscale_set
-    __swig_getmethods__["minscale"] = _mapscript.scaleTokenEntryObj_minscale_get
-    if _newclass:minscale = _swig_property(_mapscript.scaleTokenEntryObj_minscale_get, _mapscript.scaleTokenEntryObj_minscale_set)
-    __swig_setmethods__["maxscale"] = _mapscript.scaleTokenEntryObj_maxscale_set
-    __swig_getmethods__["maxscale"] = _mapscript.scaleTokenEntryObj_maxscale_get
-    if _newclass:maxscale = _swig_property(_mapscript.scaleTokenEntryObj_maxscale_get, _mapscript.scaleTokenEntryObj_maxscale_set)
-    __swig_setmethods__["value"] = _mapscript.scaleTokenEntryObj_value_set
-    __swig_getmethods__["value"] = _mapscript.scaleTokenEntryObj_value_get
-    if _newclass:value = _swig_property(_mapscript.scaleTokenEntryObj_value_get, _mapscript.scaleTokenEntryObj_value_set)
-    def __init__(self): 
-        this = _mapscript.new_scaleTokenEntryObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_scaleTokenEntryObj
-    __del__ = lambda self : None;
-scaleTokenEntryObj_swigregister = _mapscript.scaleTokenEntryObj_swigregister
-scaleTokenEntryObj_swigregister(scaleTokenEntryObj)
-
-class scaleTokenObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, scaleTokenObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, scaleTokenObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["name"] = _mapscript.scaleTokenObj_name_set
-    __swig_getmethods__["name"] = _mapscript.scaleTokenObj_name_get
-    if _newclass:name = _swig_property(_mapscript.scaleTokenObj_name_get, _mapscript.scaleTokenObj_name_set)
-    __swig_setmethods__["n_entries"] = _mapscript.scaleTokenObj_n_entries_set
-    __swig_getmethods__["n_entries"] = _mapscript.scaleTokenObj_n_entries_get
-    if _newclass:n_entries = _swig_property(_mapscript.scaleTokenObj_n_entries_get, _mapscript.scaleTokenObj_n_entries_set)
-    __swig_setmethods__["tokens"] = _mapscript.scaleTokenObj_tokens_set
-    __swig_getmethods__["tokens"] = _mapscript.scaleTokenObj_tokens_get
-    if _newclass:tokens = _swig_property(_mapscript.scaleTokenObj_tokens_get, _mapscript.scaleTokenObj_tokens_set)
-    def __init__(self): 
-        this = _mapscript.new_scaleTokenObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_scaleTokenObj
-    __del__ = lambda self : None;
-scaleTokenObj_swigregister = _mapscript.scaleTokenObj_swigregister
-scaleTokenObj_swigregister(scaleTokenObj)
-
-class layerObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, layerObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["classitem"] = _mapscript.layerObj_classitem_set
-    __swig_getmethods__["classitem"] = _mapscript.layerObj_classitem_get
-    if _newclass:classitem = _swig_property(_mapscript.layerObj_classitem_get, _mapscript.layerObj_classitem_set)
-    __swig_getmethods__["refcount"] = _mapscript.layerObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.layerObj_refcount_get)
-    __swig_getmethods__["numclasses"] = _mapscript.layerObj_numclasses_get
-    if _newclass:numclasses = _swig_property(_mapscript.layerObj_numclasses_get)
-    __swig_getmethods__["maxclasses"] = _mapscript.layerObj_maxclasses_get
-    if _newclass:maxclasses = _swig_property(_mapscript.layerObj_maxclasses_get)
-    __swig_getmethods__["index"] = _mapscript.layerObj_index_get
-    if _newclass:index = _swig_property(_mapscript.layerObj_index_get)
-    __swig_getmethods__["map"] = _mapscript.layerObj_map_get
-    if _newclass:map = _swig_property(_mapscript.layerObj_map_get)
-    __swig_setmethods__["header"] = _mapscript.layerObj_header_set
-    __swig_getmethods__["header"] = _mapscript.layerObj_header_get
-    if _newclass:header = _swig_property(_mapscript.layerObj_header_get, _mapscript.layerObj_header_set)
-    __swig_setmethods__["footer"] = _mapscript.layerObj_footer_set
-    __swig_getmethods__["footer"] = _mapscript.layerObj_footer_get
-    if _newclass:footer = _swig_property(_mapscript.layerObj_footer_get, _mapscript.layerObj_footer_set)
-    __swig_setmethods__["template"] = _mapscript.layerObj_template_set
-    __swig_getmethods__["template"] = _mapscript.layerObj_template_get
-    if _newclass:template = _swig_property(_mapscript.layerObj_template_get, _mapscript.layerObj_template_set)
-    __swig_setmethods__["name"] = _mapscript.layerObj_name_set
-    __swig_getmethods__["name"] = _mapscript.layerObj_name_get
-    if _newclass:name = _swig_property(_mapscript.layerObj_name_get, _mapscript.layerObj_name_set)
-    __swig_setmethods__["group"] = _mapscript.layerObj_group_set
-    __swig_getmethods__["group"] = _mapscript.layerObj_group_get
-    if _newclass:group = _swig_property(_mapscript.layerObj_group_get, _mapscript.layerObj_group_set)
-    __swig_setmethods__["status"] = _mapscript.layerObj_status_set
-    __swig_getmethods__["status"] = _mapscript.layerObj_status_get
-    if _newclass:status = _swig_property(_mapscript.layerObj_status_get, _mapscript.layerObj_status_set)
-    __swig_setmethods__["data"] = _mapscript.layerObj_data_set
-    __swig_getmethods__["data"] = _mapscript.layerObj_data_get
-    if _newclass:data = _swig_property(_mapscript.layerObj_data_get, _mapscript.layerObj_data_set)
-    __swig_setmethods__["type"] = _mapscript.layerObj_type_set
-    __swig_getmethods__["type"] = _mapscript.layerObj_type_get
-    if _newclass:type = _swig_property(_mapscript.layerObj_type_get, _mapscript.layerObj_type_set)
-    __swig_setmethods__["tolerance"] = _mapscript.layerObj_tolerance_set
-    __swig_getmethods__["tolerance"] = _mapscript.layerObj_tolerance_get
-    if _newclass:tolerance = _swig_property(_mapscript.layerObj_tolerance_get, _mapscript.layerObj_tolerance_set)
-    __swig_setmethods__["toleranceunits"] = _mapscript.layerObj_toleranceunits_set
-    __swig_getmethods__["toleranceunits"] = _mapscript.layerObj_toleranceunits_get
-    if _newclass:toleranceunits = _swig_property(_mapscript.layerObj_toleranceunits_get, _mapscript.layerObj_toleranceunits_set)
-    __swig_setmethods__["symbolscaledenom"] = _mapscript.layerObj_symbolscaledenom_set
-    __swig_getmethods__["symbolscaledenom"] = _mapscript.layerObj_symbolscaledenom_get
-    if _newclass:symbolscaledenom = _swig_property(_mapscript.layerObj_symbolscaledenom_get, _mapscript.layerObj_symbolscaledenom_set)
-    __swig_setmethods__["minscaledenom"] = _mapscript.layerObj_minscaledenom_set
-    __swig_getmethods__["minscaledenom"] = _mapscript.layerObj_minscaledenom_get
-    if _newclass:minscaledenom = _swig_property(_mapscript.layerObj_minscaledenom_get, _mapscript.layerObj_minscaledenom_set)
-    __swig_setmethods__["maxscaledenom"] = _mapscript.layerObj_maxscaledenom_set
-    __swig_getmethods__["maxscaledenom"] = _mapscript.layerObj_maxscaledenom_get
-    if _newclass:maxscaledenom = _swig_property(_mapscript.layerObj_maxscaledenom_get, _mapscript.layerObj_maxscaledenom_set)
-    __swig_setmethods__["minfeaturesize"] = _mapscript.layerObj_minfeaturesize_set
-    __swig_getmethods__["minfeaturesize"] = _mapscript.layerObj_minfeaturesize_get
-    if _newclass:minfeaturesize = _swig_property(_mapscript.layerObj_minfeaturesize_get, _mapscript.layerObj_minfeaturesize_set)
-    __swig_setmethods__["labelminscaledenom"] = _mapscript.layerObj_labelminscaledenom_set
-    __swig_getmethods__["labelminscaledenom"] = _mapscript.layerObj_labelminscaledenom_get
-    if _newclass:labelminscaledenom = _swig_property(_mapscript.layerObj_labelminscaledenom_get, _mapscript.layerObj_labelminscaledenom_set)
-    __swig_setmethods__["labelmaxscaledenom"] = _mapscript.layerObj_labelmaxscaledenom_set
-    __swig_getmethods__["labelmaxscaledenom"] = _mapscript.layerObj_labelmaxscaledenom_get
-    if _newclass:labelmaxscaledenom = _swig_property(_mapscript.layerObj_labelmaxscaledenom_get, _mapscript.layerObj_labelmaxscaledenom_set)
-    __swig_setmethods__["mingeowidth"] = _mapscript.layerObj_mingeowidth_set
-    __swig_getmethods__["mingeowidth"] = _mapscript.layerObj_mingeowidth_get
-    if _newclass:mingeowidth = _swig_property(_mapscript.layerObj_mingeowidth_get, _mapscript.layerObj_mingeowidth_set)
-    __swig_setmethods__["maxgeowidth"] = _mapscript.layerObj_maxgeowidth_set
-    __swig_getmethods__["maxgeowidth"] = _mapscript.layerObj_maxgeowidth_get
-    if _newclass:maxgeowidth = _swig_property(_mapscript.layerObj_maxgeowidth_get, _mapscript.layerObj_maxgeowidth_set)
-    __swig_setmethods__["sizeunits"] = _mapscript.layerObj_sizeunits_set
-    __swig_getmethods__["sizeunits"] = _mapscript.layerObj_sizeunits_get
-    if _newclass:sizeunits = _swig_property(_mapscript.layerObj_sizeunits_get, _mapscript.layerObj_sizeunits_set)
-    __swig_setmethods__["maxfeatures"] = _mapscript.layerObj_maxfeatures_set
-    __swig_getmethods__["maxfeatures"] = _mapscript.layerObj_maxfeatures_get
-    if _newclass:maxfeatures = _swig_property(_mapscript.layerObj_maxfeatures_get, _mapscript.layerObj_maxfeatures_set)
-    __swig_setmethods__["startindex"] = _mapscript.layerObj_startindex_set
-    __swig_getmethods__["startindex"] = _mapscript.layerObj_startindex_get
-    if _newclass:startindex = _swig_property(_mapscript.layerObj_startindex_get, _mapscript.layerObj_startindex_set)
-    __swig_setmethods__["offsite"] = _mapscript.layerObj_offsite_set
-    __swig_getmethods__["offsite"] = _mapscript.layerObj_offsite_get
-    if _newclass:offsite = _swig_property(_mapscript.layerObj_offsite_get, _mapscript.layerObj_offsite_set)
-    __swig_setmethods__["transform"] = _mapscript.layerObj_transform_set
-    __swig_getmethods__["transform"] = _mapscript.layerObj_transform_get
-    if _newclass:transform = _swig_property(_mapscript.layerObj_transform_get, _mapscript.layerObj_transform_set)
-    __swig_setmethods__["labelcache"] = _mapscript.layerObj_labelcache_set
-    __swig_getmethods__["labelcache"] = _mapscript.layerObj_labelcache_get
-    if _newclass:labelcache = _swig_property(_mapscript.layerObj_labelcache_get, _mapscript.layerObj_labelcache_set)
-    __swig_setmethods__["postlabelcache"] = _mapscript.layerObj_postlabelcache_set
-    __swig_getmethods__["postlabelcache"] = _mapscript.layerObj_postlabelcache_get
-    if _newclass:postlabelcache = _swig_property(_mapscript.layerObj_postlabelcache_get, _mapscript.layerObj_postlabelcache_set)
-    __swig_setmethods__["labelitem"] = _mapscript.layerObj_labelitem_set
-    __swig_getmethods__["labelitem"] = _mapscript.layerObj_labelitem_get
-    if _newclass:labelitem = _swig_property(_mapscript.layerObj_labelitem_get, _mapscript.layerObj_labelitem_set)
-    __swig_setmethods__["tileitem"] = _mapscript.layerObj_tileitem_set
-    __swig_getmethods__["tileitem"] = _mapscript.layerObj_tileitem_get
-    if _newclass:tileitem = _swig_property(_mapscript.layerObj_tileitem_get, _mapscript.layerObj_tileitem_set)
-    __swig_setmethods__["tileindex"] = _mapscript.layerObj_tileindex_set
-    __swig_getmethods__["tileindex"] = _mapscript.layerObj_tileindex_get
-    if _newclass:tileindex = _swig_property(_mapscript.layerObj_tileindex_get, _mapscript.layerObj_tileindex_set)
-    __swig_setmethods__["tilesrs"] = _mapscript.layerObj_tilesrs_set
-    __swig_getmethods__["tilesrs"] = _mapscript.layerObj_tilesrs_get
-    if _newclass:tilesrs = _swig_property(_mapscript.layerObj_tilesrs_get, _mapscript.layerObj_tilesrs_set)
-    __swig_setmethods__["units"] = _mapscript.layerObj_units_set
-    __swig_getmethods__["units"] = _mapscript.layerObj_units_get
-    if _newclass:units = _swig_property(_mapscript.layerObj_units_get, _mapscript.layerObj_units_set)
-    __swig_setmethods__["connection"] = _mapscript.layerObj_connection_set
-    __swig_getmethods__["connection"] = _mapscript.layerObj_connection_get
-    if _newclass:connection = _swig_property(_mapscript.layerObj_connection_get, _mapscript.layerObj_connection_set)
-    __swig_setmethods__["plugin_library"] = _mapscript.layerObj_plugin_library_set
-    __swig_getmethods__["plugin_library"] = _mapscript.layerObj_plugin_library_get
-    if _newclass:plugin_library = _swig_property(_mapscript.layerObj_plugin_library_get, _mapscript.layerObj_plugin_library_set)
-    __swig_setmethods__["plugin_library_original"] = _mapscript.layerObj_plugin_library_original_set
-    __swig_getmethods__["plugin_library_original"] = _mapscript.layerObj_plugin_library_original_get
-    if _newclass:plugin_library_original = _swig_property(_mapscript.layerObj_plugin_library_original_get, _mapscript.layerObj_plugin_library_original_set)
-    __swig_setmethods__["connectiontype"] = _mapscript.layerObj_connectiontype_set
-    __swig_getmethods__["connectiontype"] = _mapscript.layerObj_connectiontype_get
-    if _newclass:connectiontype = _swig_property(_mapscript.layerObj_connectiontype_get, _mapscript.layerObj_connectiontype_set)
-    __swig_getmethods__["numitems"] = _mapscript.layerObj_numitems_get
-    if _newclass:numitems = _swig_property(_mapscript.layerObj_numitems_get)
-    __swig_setmethods__["bandsitem"] = _mapscript.layerObj_bandsitem_set
-    __swig_getmethods__["bandsitem"] = _mapscript.layerObj_bandsitem_get
-    if _newclass:bandsitem = _swig_property(_mapscript.layerObj_bandsitem_get, _mapscript.layerObj_bandsitem_set)
-    __swig_setmethods__["filteritem"] = _mapscript.layerObj_filteritem_set
-    __swig_getmethods__["filteritem"] = _mapscript.layerObj_filteritem_get
-    if _newclass:filteritem = _swig_property(_mapscript.layerObj_filteritem_get, _mapscript.layerObj_filteritem_set)
-    __swig_setmethods__["styleitem"] = _mapscript.layerObj_styleitem_set
-    __swig_getmethods__["styleitem"] = _mapscript.layerObj_styleitem_get
-    if _newclass:styleitem = _swig_property(_mapscript.layerObj_styleitem_get, _mapscript.layerObj_styleitem_set)
-    __swig_setmethods__["requires"] = _mapscript.layerObj_requires_set
-    __swig_getmethods__["requires"] = _mapscript.layerObj_requires_get
-    if _newclass:requires = _swig_property(_mapscript.layerObj_requires_get, _mapscript.layerObj_requires_set)
-    __swig_setmethods__["labelrequires"] = _mapscript.layerObj_labelrequires_set
-    __swig_getmethods__["labelrequires"] = _mapscript.layerObj_labelrequires_get
-    if _newclass:labelrequires = _swig_property(_mapscript.layerObj_labelrequires_get, _mapscript.layerObj_labelrequires_set)
-    __swig_getmethods__["metadata"] = _mapscript.layerObj_metadata_get
-    if _newclass:metadata = _swig_property(_mapscript.layerObj_metadata_get)
-    __swig_getmethods__["validation"] = _mapscript.layerObj_validation_get
-    if _newclass:validation = _swig_property(_mapscript.layerObj_validation_get)
-    __swig_getmethods__["bindvals"] = _mapscript.layerObj_bindvals_get
-    if _newclass:bindvals = _swig_property(_mapscript.layerObj_bindvals_get)
-    __swig_getmethods__["cluster"] = _mapscript.layerObj_cluster_get
-    if _newclass:cluster = _swig_property(_mapscript.layerObj_cluster_get)
-    __swig_setmethods__["opacity"] = _mapscript.layerObj_opacity_set
-    __swig_getmethods__["opacity"] = _mapscript.layerObj_opacity_get
-    if _newclass:opacity = _swig_property(_mapscript.layerObj_opacity_get, _mapscript.layerObj_opacity_set)
-    __swig_setmethods__["dump"] = _mapscript.layerObj_dump_set
-    __swig_getmethods__["dump"] = _mapscript.layerObj_dump_get
-    if _newclass:dump = _swig_property(_mapscript.layerObj_dump_get, _mapscript.layerObj_dump_set)
-    __swig_setmethods__["debug"] = _mapscript.layerObj_debug_set
-    __swig_getmethods__["debug"] = _mapscript.layerObj_debug_get
-    if _newclass:debug = _swig_property(_mapscript.layerObj_debug_get, _mapscript.layerObj_debug_set)
-    __swig_getmethods__["extent"] = _mapscript.layerObj_extent_get
-    if _newclass:extent = _swig_property(_mapscript.layerObj_extent_get)
-    __swig_getmethods__["numprocessing"] = _mapscript.layerObj_numprocessing_get
-    if _newclass:numprocessing = _swig_property(_mapscript.layerObj_numprocessing_get)
-    __swig_getmethods__["numjoins"] = _mapscript.layerObj_numjoins_get
-    if _newclass:numjoins = _swig_property(_mapscript.layerObj_numjoins_get)
-    __swig_setmethods__["classgroup"] = _mapscript.layerObj_classgroup_set
-    __swig_getmethods__["classgroup"] = _mapscript.layerObj_classgroup_get
-    if _newclass:classgroup = _swig_property(_mapscript.layerObj_classgroup_get, _mapscript.layerObj_classgroup_set)
-    __swig_setmethods__["mask"] = _mapscript.layerObj_mask_set
-    __swig_getmethods__["mask"] = _mapscript.layerObj_mask_get
-    if _newclass:mask = _swig_property(_mapscript.layerObj_mask_get, _mapscript.layerObj_mask_set)
-    def __init__(self, map=None): 
-        this = _mapscript.new_layerObj(map)
-        try: self.this.append(this)
-        except: self.this = this
-        if 1:
-                    self.p_map=None
-                    try:
-                        # python 2.5
-                        if args and len(args)!=0: 
-                            self.p_map=args[0]
-                    except NameError:
-                        # python 2.6
-                        if map: 
-                            self.p_map=map
-               
-
-
-    __swig_destroy__ = _mapscript.delete_layerObj
-    __del__ = lambda self : None;
-    def clone(self): return _mapscript.layerObj_clone(self)
-    def updateFromString(self, *args): return _mapscript.layerObj_updateFromString(self, *args)
-    def convertToString(self): return _mapscript.layerObj_convertToString(self)
-    def insertClass(*args):
-           actualIndex=_mapscript.layerObj_insertClass(*args)
-           args[1].p_layer=args[0]
-           return actualIndex
-
-    def removeClass(self, *args): return _mapscript.layerObj_removeClass(self, *args)
-    def open(self): return _mapscript.layerObj_open(self)
-    def whichShapes(self, *args): return _mapscript.layerObj_whichShapes(self, *args)
-    def nextShape(self): return _mapscript.layerObj_nextShape(self)
-    def close(self): return _mapscript.layerObj_close(self)
-    def getShape(self, *args): return _mapscript.layerObj_getShape(self, *args)
-    def getNumResults(self): return _mapscript.layerObj_getNumResults(self)
-    def getResultsBounds(self): return _mapscript.layerObj_getResultsBounds(self)
-    def getResult(self, *args): return _mapscript.layerObj_getResult(self, *args)
-    def getClass(*args):
-    	clazz = _mapscript.layerObj_getClass(*args)
-    	if clazz:
-    		if args and len(args)!=0:
-    			clazz.p_layer=args[0]
-    		else:
-    			clazz.p_layer=None
-    	return clazz
-
-    def getItem(self, *args): return _mapscript.layerObj_getItem(self, *args)
-    def setItems(self, *args): return _mapscript.layerObj_setItems(self, *args)
-    def draw(self, *args): return _mapscript.layerObj_draw(self, *args)
-    def drawQuery(self, *args): return _mapscript.layerObj_drawQuery(self, *args)
-    def queryByFilter(self, *args): return _mapscript.layerObj_queryByFilter(self, *args)
-    def queryByAttributes(self, *args): return _mapscript.layerObj_queryByAttributes(self, *args)
-    def queryByPoint(self, *args): return _mapscript.layerObj_queryByPoint(self, *args)
-    def queryByRect(self, *args): return _mapscript.layerObj_queryByRect(self, *args)
-    def queryByFeatures(self, *args): return _mapscript.layerObj_queryByFeatures(self, *args)
-    def queryByShape(self, *args): return _mapscript.layerObj_queryByShape(self, *args)
-    def queryByIndex(self, *args): return _mapscript.layerObj_queryByIndex(self, *args)
-    def getResults(self, *args): return _mapscript.layerObj_getResults(self, *args)
-    def setFilter(self, *args): return _mapscript.layerObj_setFilter(self, *args)
-    def getFilterString(self): return _mapscript.layerObj_getFilterString(self)
-    def setWKTProjection(self, *args): return _mapscript.layerObj_setWKTProjection(self, *args)
-    def getProjection(self): return _mapscript.layerObj_getProjection(self)
-    def setProjection(self, *args): return _mapscript.layerObj_setProjection(self, *args)
-    def addFeature(self, *args): return _mapscript.layerObj_addFeature(self, *args)
-    def getNumFeatures(self): return _mapscript.layerObj_getNumFeatures(self)
-    def getExtent(self): return _mapscript.layerObj_getExtent(self)
-    def setExtent(self, *args): return _mapscript.layerObj_setExtent(self, *args)
-    def getMetaData(self, *args): return _mapscript.layerObj_getMetaData(self, *args)
-    def setMetaData(self, *args): return _mapscript.layerObj_setMetaData(self, *args)
-    def removeMetaData(self, *args): return _mapscript.layerObj_removeMetaData(self, *args)
-    def getFirstMetaDataKey(self): return _mapscript.layerObj_getFirstMetaDataKey(self)
-    def getNextMetaDataKey(self, *args): return _mapscript.layerObj_getNextMetaDataKey(self, *args)
-    def getWMSFeatureInfoURL(self, *args): return _mapscript.layerObj_getWMSFeatureInfoURL(self, *args)
-    def executeWFSGetFeature(self, *args): return _mapscript.layerObj_executeWFSGetFeature(self, *args)
-    def applySLD(self, *args): return _mapscript.layerObj_applySLD(self, *args)
-    def applySLDURL(self, *args): return _mapscript.layerObj_applySLDURL(self, *args)
-    def generateSLD(self): return _mapscript.layerObj_generateSLD(self)
-    def isVisible(self): return _mapscript.layerObj_isVisible(self)
-    def moveClassUp(self, *args): return _mapscript.layerObj_moveClassUp(self, *args)
-    def moveClassDown(self, *args): return _mapscript.layerObj_moveClassDown(self, *args)
-    def setProcessingKey(self, *args): return _mapscript.layerObj_setProcessingKey(self, *args)
-    def setProcessing(self, *args): return _mapscript.layerObj_setProcessing(self, *args)
-    def addProcessing(self, *args): return _mapscript.layerObj_addProcessing(self, *args)
-    def getProcessing(self, *args): return _mapscript.layerObj_getProcessing(self, *args)
-    def getProcessingKey(self, *args): return _mapscript.layerObj_getProcessingKey(self, *args)
-    def clearProcessing(self): return _mapscript.layerObj_clearProcessing(self)
-    def setConnectionType(self, *args): return _mapscript.layerObj_setConnectionType(self, *args)
-    def getClassIndex(self, *args): return _mapscript.layerObj_getClassIndex(self, *args)
-    def getGeomTransform(self): return _mapscript.layerObj_getGeomTransform(self)
-    def setGeomTransform(self, *args): return _mapscript.layerObj_setGeomTransform(self, *args)
-layerObj_swigregister = _mapscript.layerObj_swigregister
-layerObj_swigregister(layerObj)
-
-class mapObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, mapObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, mapObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["name"] = _mapscript.mapObj_name_set
-    __swig_getmethods__["name"] = _mapscript.mapObj_name_get
-    if _newclass:name = _swig_property(_mapscript.mapObj_name_get, _mapscript.mapObj_name_set)
-    __swig_setmethods__["status"] = _mapscript.mapObj_status_set
-    __swig_getmethods__["status"] = _mapscript.mapObj_status_get
-    if _newclass:status = _swig_property(_mapscript.mapObj_status_get, _mapscript.mapObj_status_set)
-    __swig_setmethods__["height"] = _mapscript.mapObj_height_set
-    __swig_getmethods__["height"] = _mapscript.mapObj_height_get
-    if _newclass:height = _swig_property(_mapscript.mapObj_height_get, _mapscript.mapObj_height_set)
-    __swig_setmethods__["width"] = _mapscript.mapObj_width_set
-    __swig_getmethods__["width"] = _mapscript.mapObj_width_get
-    if _newclass:width = _swig_property(_mapscript.mapObj_width_get, _mapscript.mapObj_width_set)
-    __swig_setmethods__["maxsize"] = _mapscript.mapObj_maxsize_set
-    __swig_getmethods__["maxsize"] = _mapscript.mapObj_maxsize_get
-    if _newclass:maxsize = _swig_property(_mapscript.mapObj_maxsize_get, _mapscript.mapObj_maxsize_set)
-    __swig_getmethods__["refcount"] = _mapscript.mapObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.mapObj_refcount_get)
-    __swig_getmethods__["numlayers"] = _mapscript.mapObj_numlayers_get
-    if _newclass:numlayers = _swig_property(_mapscript.mapObj_numlayers_get)
-    __swig_getmethods__["maxlayers"] = _mapscript.mapObj_maxlayers_get
-    if _newclass:maxlayers = _swig_property(_mapscript.mapObj_maxlayers_get)
-    __swig_getmethods__["symbolset"] = _mapscript.mapObj_symbolset_get
-    if _newclass:symbolset = _swig_property(_mapscript.mapObj_symbolset_get)
-    __swig_getmethods__["fontset"] = _mapscript.mapObj_fontset_get
-    if _newclass:fontset = _swig_property(_mapscript.mapObj_fontset_get)
-    __swig_getmethods__["labelcache"] = _mapscript.mapObj_labelcache_get
-    if _newclass:labelcache = _swig_property(_mapscript.mapObj_labelcache_get)
-    __swig_setmethods__["transparent"] = _mapscript.mapObj_transparent_set
-    __swig_getmethods__["transparent"] = _mapscript.mapObj_transparent_get
-    if _newclass:transparent = _swig_property(_mapscript.mapObj_transparent_get, _mapscript.mapObj_transparent_set)
-    __swig_setmethods__["interlace"] = _mapscript.mapObj_interlace_set
-    __swig_getmethods__["interlace"] = _mapscript.mapObj_interlace_get
-    if _newclass:interlace = _swig_property(_mapscript.mapObj_interlace_get, _mapscript.mapObj_interlace_set)
-    __swig_setmethods__["imagequality"] = _mapscript.mapObj_imagequality_set
-    __swig_getmethods__["imagequality"] = _mapscript.mapObj_imagequality_get
-    if _newclass:imagequality = _swig_property(_mapscript.mapObj_imagequality_get, _mapscript.mapObj_imagequality_set)
-    __swig_setmethods__["extent"] = _mapscript.mapObj_extent_set
-    __swig_getmethods__["extent"] = _mapscript.mapObj_extent_get
-    if _newclass:extent = _swig_property(_mapscript.mapObj_extent_get, _mapscript.mapObj_extent_set)
-    __swig_setmethods__["cellsize"] = _mapscript.mapObj_cellsize_set
-    __swig_getmethods__["cellsize"] = _mapscript.mapObj_cellsize_get
-    if _newclass:cellsize = _swig_property(_mapscript.mapObj_cellsize_get, _mapscript.mapObj_cellsize_set)
-    __swig_setmethods__["units"] = _mapscript.mapObj_units_set
-    __swig_getmethods__["units"] = _mapscript.mapObj_units_get
-    if _newclass:units = _swig_property(_mapscript.mapObj_units_get, _mapscript.mapObj_units_set)
-    __swig_setmethods__["scaledenom"] = _mapscript.mapObj_scaledenom_set
-    __swig_getmethods__["scaledenom"] = _mapscript.mapObj_scaledenom_get
-    if _newclass:scaledenom = _swig_property(_mapscript.mapObj_scaledenom_get, _mapscript.mapObj_scaledenom_set)
-    __swig_setmethods__["resolution"] = _mapscript.mapObj_resolution_set
-    __swig_getmethods__["resolution"] = _mapscript.mapObj_resolution_get
-    if _newclass:resolution = _swig_property(_mapscript.mapObj_resolution_get, _mapscript.mapObj_resolution_set)
-    __swig_setmethods__["defresolution"] = _mapscript.mapObj_defresolution_set
-    __swig_getmethods__["defresolution"] = _mapscript.mapObj_defresolution_get
-    if _newclass:defresolution = _swig_property(_mapscript.mapObj_defresolution_get, _mapscript.mapObj_defresolution_set)
-    __swig_setmethods__["shapepath"] = _mapscript.mapObj_shapepath_set
-    __swig_getmethods__["shapepath"] = _mapscript.mapObj_shapepath_get
-    if _newclass:shapepath = _swig_property(_mapscript.mapObj_shapepath_get, _mapscript.mapObj_shapepath_set)
-    __swig_setmethods__["mappath"] = _mapscript.mapObj_mappath_set
-    __swig_getmethods__["mappath"] = _mapscript.mapObj_mappath_get
-    if _newclass:mappath = _swig_property(_mapscript.mapObj_mappath_get, _mapscript.mapObj_mappath_set)
-    __swig_setmethods__["imagecolor"] = _mapscript.mapObj_imagecolor_set
-    __swig_getmethods__["imagecolor"] = _mapscript.mapObj_imagecolor_get
-    if _newclass:imagecolor = _swig_property(_mapscript.mapObj_imagecolor_get, _mapscript.mapObj_imagecolor_set)
-    __swig_getmethods__["numoutputformats"] = _mapscript.mapObj_numoutputformats_get
-    if _newclass:numoutputformats = _swig_property(_mapscript.mapObj_numoutputformats_get)
-    __swig_getmethods__["outputformat"] = _mapscript.mapObj_outputformat_get
-    if _newclass:outputformat = _swig_property(_mapscript.mapObj_outputformat_get)
-    __swig_getmethods__["imagetype"] = _mapscript.mapObj_imagetype_get
-    if _newclass:imagetype = _swig_property(_mapscript.mapObj_imagetype_get)
-    __swig_getmethods__["reference"] = _mapscript.mapObj_reference_get
-    if _newclass:reference = _swig_property(_mapscript.mapObj_reference_get)
-    __swig_getmethods__["scalebar"] = _mapscript.mapObj_scalebar_get
-    if _newclass:scalebar = _swig_property(_mapscript.mapObj_scalebar_get)
-    __swig_getmethods__["legend"] = _mapscript.mapObj_legend_get
-    if _newclass:legend = _swig_property(_mapscript.mapObj_legend_get)
-    __swig_getmethods__["querymap"] = _mapscript.mapObj_querymap_get
-    if _newclass:querymap = _swig_property(_mapscript.mapObj_querymap_get)
-    __swig_getmethods__["web"] = _mapscript.mapObj_web_get
-    if _newclass:web = _swig_property(_mapscript.mapObj_web_get)
-    __swig_setmethods__["layerorder"] = _mapscript.mapObj_layerorder_set
-    __swig_getmethods__["layerorder"] = _mapscript.mapObj_layerorder_get
-    if _newclass:layerorder = _swig_property(_mapscript.mapObj_layerorder_get, _mapscript.mapObj_layerorder_set)
-    __swig_setmethods__["debug"] = _mapscript.mapObj_debug_set
-    __swig_getmethods__["debug"] = _mapscript.mapObj_debug_get
-    if _newclass:debug = _swig_property(_mapscript.mapObj_debug_get, _mapscript.mapObj_debug_set)
-    __swig_setmethods__["datapattern"] = _mapscript.mapObj_datapattern_set
-    __swig_getmethods__["datapattern"] = _mapscript.mapObj_datapattern_get
-    if _newclass:datapattern = _swig_property(_mapscript.mapObj_datapattern_get, _mapscript.mapObj_datapattern_set)
-    __swig_setmethods__["templatepattern"] = _mapscript.mapObj_templatepattern_set
-    __swig_getmethods__["templatepattern"] = _mapscript.mapObj_templatepattern_get
-    if _newclass:templatepattern = _swig_property(_mapscript.mapObj_templatepattern_get, _mapscript.mapObj_templatepattern_set)
-    __swig_getmethods__["configoptions"] = _mapscript.mapObj_configoptions_get
-    if _newclass:configoptions = _swig_property(_mapscript.mapObj_configoptions_get)
-    def __init__(self, filename=""): 
-        this = _mapscript.new_mapObj(filename)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_mapObj
-    __del__ = lambda self : None;
-    def clone(self): return _mapscript.mapObj_clone(self)
-    def insertLayer(*args):
-           actualIndex=_mapscript.mapObj_insertLayer(*args)
-           args[1].p_map=args[0]
-           return actualIndex
-
-    def removeLayer(self, *args): return _mapscript.mapObj_removeLayer(self, *args)
-    def setExtent(self, *args): return _mapscript.mapObj_setExtent(self, *args)
-    def offsetExtent(self, *args): return _mapscript.mapObj_offsetExtent(self, *args)
-    def scaleExtent(self, *args): return _mapscript.mapObj_scaleExtent(self, *args)
-    def setCenter(self, *args): return _mapscript.mapObj_setCenter(self, *args)
-    def setSize(self, *args): return _mapscript.mapObj_setSize(self, *args)
-    def setRotation(self, *args): return _mapscript.mapObj_setRotation(self, *args)
-    def getLayer(*args):
-    	layer = _mapscript.mapObj_getLayer(*args)
-    	if layer:
-    		if args and len(args)!=0:
-    			layer.p_map=args[0]
-    		else:
-    			layer.p_map=None
-    	return layer
-
-    def getLayerByName(*args):
-    	layer = _mapscript.mapObj_getLayerByName(*args)
-    	if layer:
-    		if args and len(args)!=0:
-    			layer.p_map=args[0]
-    		else:
-    			layer.p_map=None
-    	return layer
-
-    def getSymbolByName(self, *args): return _mapscript.mapObj_getSymbolByName(self, *args)
-    def prepareQuery(self): return _mapscript.mapObj_prepareQuery(self)
-    def prepareImage(self): return _mapscript.mapObj_prepareImage(self)
-    def setImageType(self, *args): return _mapscript.mapObj_setImageType(self, *args)
-    def selectOutputFormat(self, *args): return _mapscript.mapObj_selectOutputFormat(self, *args)
-    def getOutputFormat(self, *args): return _mapscript.mapObj_getOutputFormat(self, *args)
-    def setOutputFormat(self, *args): return _mapscript.mapObj_setOutputFormat(self, *args)
-    def draw(self): return _mapscript.mapObj_draw(self)
-    def drawQuery(self): return _mapscript.mapObj_drawQuery(self)
-    def drawLegend(self): return _mapscript.mapObj_drawLegend(self)
-    def drawScalebar(self): return _mapscript.mapObj_drawScalebar(self)
-    def drawReferenceMap(self): return _mapscript.mapObj_drawReferenceMap(self)
-    def embedScalebar(self, *args): return _mapscript.mapObj_embedScalebar(self, *args)
-    def embedLegend(self, *args): return _mapscript.mapObj_embedLegend(self, *args)
-    def drawLabelCache(self, *args): return _mapscript.mapObj_drawLabelCache(self, *args)
-    def getLabel(self, *args): return _mapscript.mapObj_getLabel(self, *args)
-    def nextLabel(self): return _mapscript.mapObj_nextLabel(self)
-    def queryByFilter(self, *args): return _mapscript.mapObj_queryByFilter(self, *args)
-    def queryByPoint(self, *args): return _mapscript.mapObj_queryByPoint(self, *args)
-    def queryByRect(self, *args): return _mapscript.mapObj_queryByRect(self, *args)
-    def queryByFeatures(self, *args): return _mapscript.mapObj_queryByFeatures(self, *args)
-    def queryByShape(self, *args): return _mapscript.mapObj_queryByShape(self, *args)
-    def setWKTProjection(self, *args): return _mapscript.mapObj_setWKTProjection(self, *args)
-    def getProjection(self): return _mapscript.mapObj_getProjection(self)
-    def setProjection(self, *args): return _mapscript.mapObj_setProjection(self, *args)
-    def save(self, *args): return _mapscript.mapObj_save(self, *args)
-    def saveQuery(self, *args): return _mapscript.mapObj_saveQuery(self, *args)
-    def loadQuery(self, *args): return _mapscript.mapObj_loadQuery(self, *args)
-    def freeQuery(self, *args): return _mapscript.mapObj_freeQuery(self, *args)
-    def saveQueryAsGML(self, *args): return _mapscript.mapObj_saveQueryAsGML(self, *args)
-    def getMetaData(self, *args): return _mapscript.mapObj_getMetaData(self, *args)
-    def setMetaData(self, *args): return _mapscript.mapObj_setMetaData(self, *args)
-    def removeMetaData(self, *args): return _mapscript.mapObj_removeMetaData(self, *args)
-    def getFirstMetaDataKey(self): return _mapscript.mapObj_getFirstMetaDataKey(self)
-    def getNextMetaDataKey(self, *args): return _mapscript.mapObj_getNextMetaDataKey(self, *args)
-    def setSymbolSet(self, *args): return _mapscript.mapObj_setSymbolSet(self, *args)
-    def getNumSymbols(self): return _mapscript.mapObj_getNumSymbols(self)
-    def setFontSet(self, *args): return _mapscript.mapObj_setFontSet(self, *args)
-    def saveMapContext(self, *args): return _mapscript.mapObj_saveMapContext(self, *args)
-    def loadMapContext(self, *args): return _mapscript.mapObj_loadMapContext(self, *args)
-    def moveLayerUp(self, *args): return _mapscript.mapObj_moveLayerUp(self, *args)
-    def moveLayerDown(self, *args): return _mapscript.mapObj_moveLayerDown(self, *args)
-    def getLayersDrawingOrder(self): return _mapscript.mapObj_getLayersDrawingOrder(self)
-    def setLayersDrawingOrder(self, *args): return _mapscript.mapObj_setLayersDrawingOrder(self, *args)
-    def setConfigOption(self, *args): return _mapscript.mapObj_setConfigOption(self, *args)
-    def getConfigOption(self, *args): return _mapscript.mapObj_getConfigOption(self, *args)
-    def applyConfigOptions(self): return _mapscript.mapObj_applyConfigOptions(self)
-    def applySLD(self, *args): return _mapscript.mapObj_applySLD(self, *args)
-    def applySLDURL(self, *args): return _mapscript.mapObj_applySLDURL(self, *args)
-    def generateSLD(self): return _mapscript.mapObj_generateSLD(self)
-    def processTemplate(self, *args): return _mapscript.mapObj_processTemplate(self, *args)
-    def processLegendTemplate(self, *args): return _mapscript.mapObj_processLegendTemplate(self, *args)
-    def processQueryTemplate(self, *args): return _mapscript.mapObj_processQueryTemplate(self, *args)
-    def getOutputFormatByName(self, *args): return _mapscript.mapObj_getOutputFormatByName(self, *args)
-    def appendOutputFormat(self, *args): return _mapscript.mapObj_appendOutputFormat(self, *args)
-    def removeOutputFormat(self, *args): return _mapscript.mapObj_removeOutputFormat(self, *args)
-    def loadOWSParameters(self, *args): return _mapscript.mapObj_loadOWSParameters(self, *args)
-    def OWSDispatch(self, *args): return _mapscript.mapObj_OWSDispatch(self, *args)
-    def convertToString(self): return _mapscript.mapObj_convertToString(self)
-    def zoomPoint(self, *args): return _mapscript.mapObj_zoomPoint(self, *args)
-    def zoomRectangle(self, *args): return _mapscript.mapObj_zoomRectangle(self, *args)
-    def zoomScale(self, *args): return _mapscript.mapObj_zoomScale(self, *args)
-    def getLayerOrder(self): return _mapscript.mapObj_getLayerOrder(self)
-    def setLayerOrder(self, *args): return _mapscript.mapObj_setLayerOrder(self, *args)
-    def getSize(self): return _mapscript.mapObj_getSize(self)
-    def get_height(self):
-        return self.getSize()[1] # <-- second member is the height
-    def get_width(self):
-        return self.getSize()[0] # <-- first member is the width
-    def set_height(self, value):
-        return self.setSize(self.getSize()[0], value)
-    def set_width(self, value):
-        return self.setSize(value, self.getSize()[1])
-    width = property(get_width, set_width)
-    height = property(get_height, set_height)
-
-
-mapObj_swigregister = _mapscript.mapObj_swigregister
-mapObj_swigregister(mapObj)
-
-
-def msSaveImage(*args):
-  return _mapscript.msSaveImage(*args)
-msSaveImage = _mapscript.msSaveImage
-
-def msFreeImage(*args):
-  return _mapscript.msFreeImage(*args)
-msFreeImage = _mapscript.msFreeImage
-
-def msSetup():
-  return _mapscript.msSetup()
-msSetup = _mapscript.msSetup
-
-def msCleanup(*args):
-  return _mapscript.msCleanup(*args)
-msCleanup = _mapscript.msCleanup
-
-def msLoadMapFromString(*args):
-  return _mapscript.msLoadMapFromString(*args)
-msLoadMapFromString = _mapscript.msLoadMapFromString
-class strokeStyleObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, strokeStyleObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, strokeStyleObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["width"] = _mapscript.strokeStyleObj_width_set
-    __swig_getmethods__["width"] = _mapscript.strokeStyleObj_width_get
-    if _newclass:width = _swig_property(_mapscript.strokeStyleObj_width_get, _mapscript.strokeStyleObj_width_set)
-    __swig_setmethods__["patternlength"] = _mapscript.strokeStyleObj_patternlength_set
-    __swig_getmethods__["patternlength"] = _mapscript.strokeStyleObj_patternlength_get
-    if _newclass:patternlength = _swig_property(_mapscript.strokeStyleObj_patternlength_get, _mapscript.strokeStyleObj_patternlength_set)
-    __swig_setmethods__["pattern"] = _mapscript.strokeStyleObj_pattern_set
-    __swig_getmethods__["pattern"] = _mapscript.strokeStyleObj_pattern_get
-    if _newclass:pattern = _swig_property(_mapscript.strokeStyleObj_pattern_get, _mapscript.strokeStyleObj_pattern_set)
-    __swig_setmethods__["patternoffset"] = _mapscript.strokeStyleObj_patternoffset_set
-    __swig_getmethods__["patternoffset"] = _mapscript.strokeStyleObj_patternoffset_get
-    if _newclass:patternoffset = _swig_property(_mapscript.strokeStyleObj_patternoffset_get, _mapscript.strokeStyleObj_patternoffset_set)
-    __swig_setmethods__["color"] = _mapscript.strokeStyleObj_color_set
-    __swig_getmethods__["color"] = _mapscript.strokeStyleObj_color_get
-    if _newclass:color = _swig_property(_mapscript.strokeStyleObj_color_get, _mapscript.strokeStyleObj_color_set)
-    __swig_setmethods__["linecap"] = _mapscript.strokeStyleObj_linecap_set
-    __swig_getmethods__["linecap"] = _mapscript.strokeStyleObj_linecap_get
-    if _newclass:linecap = _swig_property(_mapscript.strokeStyleObj_linecap_get, _mapscript.strokeStyleObj_linecap_set)
-    __swig_setmethods__["linejoin"] = _mapscript.strokeStyleObj_linejoin_set
-    __swig_getmethods__["linejoin"] = _mapscript.strokeStyleObj_linejoin_get
-    if _newclass:linejoin = _swig_property(_mapscript.strokeStyleObj_linejoin_get, _mapscript.strokeStyleObj_linejoin_set)
-    __swig_setmethods__["linejoinmaxsize"] = _mapscript.strokeStyleObj_linejoinmaxsize_set
-    __swig_getmethods__["linejoinmaxsize"] = _mapscript.strokeStyleObj_linejoinmaxsize_get
-    if _newclass:linejoinmaxsize = _swig_property(_mapscript.strokeStyleObj_linejoinmaxsize_get, _mapscript.strokeStyleObj_linejoinmaxsize_set)
-    def __init__(self): 
-        this = _mapscript.new_strokeStyleObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_strokeStyleObj
-    __del__ = lambda self : None;
-strokeStyleObj_swigregister = _mapscript.strokeStyleObj_swigregister
-strokeStyleObj_swigregister(strokeStyleObj)
-
-class symbolStyleObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, symbolStyleObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, symbolStyleObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["color"] = _mapscript.symbolStyleObj_color_set
-    __swig_getmethods__["color"] = _mapscript.symbolStyleObj_color_get
-    if _newclass:color = _swig_property(_mapscript.symbolStyleObj_color_get, _mapscript.symbolStyleObj_color_set)
-    __swig_setmethods__["backgroundcolor"] = _mapscript.symbolStyleObj_backgroundcolor_set
-    __swig_getmethods__["backgroundcolor"] = _mapscript.symbolStyleObj_backgroundcolor_get
-    if _newclass:backgroundcolor = _swig_property(_mapscript.symbolStyleObj_backgroundcolor_get, _mapscript.symbolStyleObj_backgroundcolor_set)
-    __swig_setmethods__["outlinewidth"] = _mapscript.symbolStyleObj_outlinewidth_set
-    __swig_getmethods__["outlinewidth"] = _mapscript.symbolStyleObj_outlinewidth_get
-    if _newclass:outlinewidth = _swig_property(_mapscript.symbolStyleObj_outlinewidth_get, _mapscript.symbolStyleObj_outlinewidth_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.symbolStyleObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.symbolStyleObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.symbolStyleObj_outlinecolor_get, _mapscript.symbolStyleObj_outlinecolor_set)
-    __swig_setmethods__["scale"] = _mapscript.symbolStyleObj_scale_set
-    __swig_getmethods__["scale"] = _mapscript.symbolStyleObj_scale_get
-    if _newclass:scale = _swig_property(_mapscript.symbolStyleObj_scale_get, _mapscript.symbolStyleObj_scale_set)
-    __swig_setmethods__["rotation"] = _mapscript.symbolStyleObj_rotation_set
-    __swig_getmethods__["rotation"] = _mapscript.symbolStyleObj_rotation_get
-    if _newclass:rotation = _swig_property(_mapscript.symbolStyleObj_rotation_get, _mapscript.symbolStyleObj_rotation_set)
-    __swig_setmethods__["gap"] = _mapscript.symbolStyleObj_gap_set
-    __swig_getmethods__["gap"] = _mapscript.symbolStyleObj_gap_get
-    if _newclass:gap = _swig_property(_mapscript.symbolStyleObj_gap_get, _mapscript.symbolStyleObj_gap_set)
-    __swig_setmethods__["style"] = _mapscript.symbolStyleObj_style_set
-    __swig_getmethods__["style"] = _mapscript.symbolStyleObj_style_get
-    if _newclass:style = _swig_property(_mapscript.symbolStyleObj_style_get, _mapscript.symbolStyleObj_style_set)
-    def __init__(self): 
-        this = _mapscript.new_symbolStyleObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_symbolStyleObj
-    __del__ = lambda self : None;
-symbolStyleObj_swigregister = _mapscript.symbolStyleObj_swigregister
-symbolStyleObj_swigregister(symbolStyleObj)
-
-class tileCacheObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, tileCacheObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, tileCacheObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["symbol"] = _mapscript.tileCacheObj_symbol_set
-    __swig_getmethods__["symbol"] = _mapscript.tileCacheObj_symbol_get
-    if _newclass:symbol = _swig_property(_mapscript.tileCacheObj_symbol_get, _mapscript.tileCacheObj_symbol_set)
-    __swig_setmethods__["width"] = _mapscript.tileCacheObj_width_set
-    __swig_getmethods__["width"] = _mapscript.tileCacheObj_width_get
-    if _newclass:width = _swig_property(_mapscript.tileCacheObj_width_get, _mapscript.tileCacheObj_width_set)
-    __swig_setmethods__["height"] = _mapscript.tileCacheObj_height_set
-    __swig_getmethods__["height"] = _mapscript.tileCacheObj_height_get
-    if _newclass:height = _swig_property(_mapscript.tileCacheObj_height_get, _mapscript.tileCacheObj_height_set)
-    __swig_setmethods__["color"] = _mapscript.tileCacheObj_color_set
-    __swig_getmethods__["color"] = _mapscript.tileCacheObj_color_get
-    if _newclass:color = _swig_property(_mapscript.tileCacheObj_color_get, _mapscript.tileCacheObj_color_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.tileCacheObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.tileCacheObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.tileCacheObj_outlinecolor_get, _mapscript.tileCacheObj_outlinecolor_set)
-    __swig_setmethods__["backgroundcolor"] = _mapscript.tileCacheObj_backgroundcolor_set
-    __swig_getmethods__["backgroundcolor"] = _mapscript.tileCacheObj_backgroundcolor_get
-    if _newclass:backgroundcolor = _swig_property(_mapscript.tileCacheObj_backgroundcolor_get, _mapscript.tileCacheObj_backgroundcolor_set)
-    __swig_setmethods__["outlinewidth"] = _mapscript.tileCacheObj_outlinewidth_set
-    __swig_getmethods__["outlinewidth"] = _mapscript.tileCacheObj_outlinewidth_get
-    if _newclass:outlinewidth = _swig_property(_mapscript.tileCacheObj_outlinewidth_get, _mapscript.tileCacheObj_outlinewidth_set)
-    __swig_setmethods__["rotation"] = _mapscript.tileCacheObj_rotation_set
-    __swig_getmethods__["rotation"] = _mapscript.tileCacheObj_rotation_get
-    if _newclass:rotation = _swig_property(_mapscript.tileCacheObj_rotation_get, _mapscript.tileCacheObj_rotation_set)
-    __swig_setmethods__["scale"] = _mapscript.tileCacheObj_scale_set
-    __swig_getmethods__["scale"] = _mapscript.tileCacheObj_scale_get
-    if _newclass:scale = _swig_property(_mapscript.tileCacheObj_scale_get, _mapscript.tileCacheObj_scale_set)
-    __swig_setmethods__["image"] = _mapscript.tileCacheObj_image_set
-    __swig_getmethods__["image"] = _mapscript.tileCacheObj_image_get
-    if _newclass:image = _swig_property(_mapscript.tileCacheObj_image_get, _mapscript.tileCacheObj_image_set)
-    __swig_setmethods__["next"] = _mapscript.tileCacheObj_next_set
-    __swig_getmethods__["next"] = _mapscript.tileCacheObj_next_get
-    if _newclass:next = _swig_property(_mapscript.tileCacheObj_next_get, _mapscript.tileCacheObj_next_set)
-    def __init__(self): 
-        this = _mapscript.new_tileCacheObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_tileCacheObj
-    __del__ = lambda self : None;
-tileCacheObj_swigregister = _mapscript.tileCacheObj_swigregister
-tileCacheObj_swigregister(tileCacheObj)
-
-class labelStyleObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, labelStyleObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, labelStyleObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["fonts"] = _mapscript.labelStyleObj_fonts_set
-    __swig_getmethods__["fonts"] = _mapscript.labelStyleObj_fonts_get
-    if _newclass:fonts = _swig_property(_mapscript.labelStyleObj_fonts_get, _mapscript.labelStyleObj_fonts_set)
-    __swig_setmethods__["numfonts"] = _mapscript.labelStyleObj_numfonts_set
-    __swig_getmethods__["numfonts"] = _mapscript.labelStyleObj_numfonts_get
-    if _newclass:numfonts = _swig_property(_mapscript.labelStyleObj_numfonts_get, _mapscript.labelStyleObj_numfonts_set)
-    __swig_setmethods__["size"] = _mapscript.labelStyleObj_size_set
-    __swig_getmethods__["size"] = _mapscript.labelStyleObj_size_get
-    if _newclass:size = _swig_property(_mapscript.labelStyleObj_size_get, _mapscript.labelStyleObj_size_set)
-    __swig_setmethods__["rotation"] = _mapscript.labelStyleObj_rotation_set
-    __swig_getmethods__["rotation"] = _mapscript.labelStyleObj_rotation_get
-    if _newclass:rotation = _swig_property(_mapscript.labelStyleObj_rotation_get, _mapscript.labelStyleObj_rotation_set)
-    __swig_setmethods__["color"] = _mapscript.labelStyleObj_color_set
-    __swig_getmethods__["color"] = _mapscript.labelStyleObj_color_get
-    if _newclass:color = _swig_property(_mapscript.labelStyleObj_color_get, _mapscript.labelStyleObj_color_set)
-    __swig_setmethods__["outlinewidth"] = _mapscript.labelStyleObj_outlinewidth_set
-    __swig_getmethods__["outlinewidth"] = _mapscript.labelStyleObj_outlinewidth_get
-    if _newclass:outlinewidth = _swig_property(_mapscript.labelStyleObj_outlinewidth_get, _mapscript.labelStyleObj_outlinewidth_set)
-    __swig_setmethods__["outlinecolor"] = _mapscript.labelStyleObj_outlinecolor_set
-    __swig_getmethods__["outlinecolor"] = _mapscript.labelStyleObj_outlinecolor_get
-    if _newclass:outlinecolor = _swig_property(_mapscript.labelStyleObj_outlinecolor_get, _mapscript.labelStyleObj_outlinecolor_set)
-    __swig_setmethods__["antialias"] = _mapscript.labelStyleObj_antialias_set
-    __swig_getmethods__["antialias"] = _mapscript.labelStyleObj_antialias_get
-    if _newclass:antialias = _swig_property(_mapscript.labelStyleObj_antialias_get, _mapscript.labelStyleObj_antialias_set)
-    def __init__(self): 
-        this = _mapscript.new_labelStyleObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_labelStyleObj
-    __del__ = lambda self : None;
-labelStyleObj_swigregister = _mapscript.labelStyleObj_swigregister
-labelStyleObj_swigregister(labelStyleObj)
-
-class rectObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, rectObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, rectObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["minx"] = _mapscript.rectObj_minx_set
-    __swig_getmethods__["minx"] = _mapscript.rectObj_minx_get
-    if _newclass:minx = _swig_property(_mapscript.rectObj_minx_get, _mapscript.rectObj_minx_set)
-    __swig_setmethods__["miny"] = _mapscript.rectObj_miny_set
-    __swig_getmethods__["miny"] = _mapscript.rectObj_miny_get
-    if _newclass:miny = _swig_property(_mapscript.rectObj_miny_get, _mapscript.rectObj_miny_set)
-    __swig_setmethods__["maxx"] = _mapscript.rectObj_maxx_set
-    __swig_getmethods__["maxx"] = _mapscript.rectObj_maxx_get
-    if _newclass:maxx = _swig_property(_mapscript.rectObj_maxx_get, _mapscript.rectObj_maxx_set)
-    __swig_setmethods__["maxy"] = _mapscript.rectObj_maxy_set
-    __swig_getmethods__["maxy"] = _mapscript.rectObj_maxy_get
-    if _newclass:maxy = _swig_property(_mapscript.rectObj_maxy_get, _mapscript.rectObj_maxy_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_rectObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_rectObj
-    __del__ = lambda self : None;
-    def project(self, *args): return _mapscript.rectObj_project(self, *args)
-    def fit(self, *args): return _mapscript.rectObj_fit(self, *args)
-    def draw(self, *args): return _mapscript.rectObj_draw(self, *args)
-    def getCenter(self): return _mapscript.rectObj_getCenter(self)
-    def toPolygon(self): return _mapscript.rectObj_toPolygon(self)
-    def toString(self): return _mapscript.rectObj_toString(self)
-    def __str__(self):
-        return self.toString()
-        
-    def __contains__(self, item):
-        item_type = str(type(item))
-        if item_type == "<class 'mapscript.pointObj'>":
-            if item.x >= self.minx and item.x <= self.maxx \
-            and item.y >= self.miny and item.y <= self.maxy:
-                return True
-            else:
-                return False
-        else:
-            raise TypeError, \
-                '__contains__ does not yet handle %s' % (item_type)
-        
-
-rectObj_swigregister = _mapscript.rectObj_swigregister
-rectObj_swigregister(rectObj)
-
-class pointObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, pointObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, pointObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["x"] = _mapscript.pointObj_x_set
-    __swig_getmethods__["x"] = _mapscript.pointObj_x_get
-    if _newclass:x = _swig_property(_mapscript.pointObj_x_get, _mapscript.pointObj_x_set)
-    __swig_setmethods__["y"] = _mapscript.pointObj_y_set
-    __swig_getmethods__["y"] = _mapscript.pointObj_y_get
-    if _newclass:y = _swig_property(_mapscript.pointObj_y_get, _mapscript.pointObj_y_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_pointObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_pointObj
-    __del__ = lambda self : None;
-    def project(self, *args): return _mapscript.pointObj_project(self, *args)
-    def draw(self, *args): return _mapscript.pointObj_draw(self, *args)
-    def distanceToPoint(self, *args): return _mapscript.pointObj_distanceToPoint(self, *args)
-    def distanceToSegment(self, *args): return _mapscript.pointObj_distanceToSegment(self, *args)
-    def distanceToShape(self, *args): return _mapscript.pointObj_distanceToShape(self, *args)
-    def setXY(self, *args): return _mapscript.pointObj_setXY(self, *args)
-    def setXYZ(self, *args): return _mapscript.pointObj_setXYZ(self, *args)
-    def setXYZM(self, *args): return _mapscript.pointObj_setXYZM(self, *args)
-    def toString(self): return _mapscript.pointObj_toString(self)
-    def toShape(self): return _mapscript.pointObj_toShape(self)
-    def __str__(self):
-        return self.toString()
-
-
-pointObj_swigregister = _mapscript.pointObj_swigregister
-pointObj_swigregister(pointObj)
-
-class lineObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, lineObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, lineObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numpoints"] = _mapscript.lineObj_numpoints_get
-    if _newclass:numpoints = _swig_property(_mapscript.lineObj_numpoints_get)
-    def __init__(self): 
-        this = _mapscript.new_lineObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_lineObj
-    __del__ = lambda self : None;
-    def project(self, *args): return _mapscript.lineObj_project(self, *args)
-    def get(self, *args): return _mapscript.lineObj_get(self, *args)
-    def add(self, *args): return _mapscript.lineObj_add(self, *args)
-    def set(self, *args): return _mapscript.lineObj_set(self, *args)
-lineObj_swigregister = _mapscript.lineObj_swigregister
-lineObj_swigregister(lineObj)
-
-class shapeObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, shapeObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, shapeObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numlines"] = _mapscript.shapeObj_numlines_get
-    if _newclass:numlines = _swig_property(_mapscript.shapeObj_numlines_get)
-    __swig_getmethods__["numvalues"] = _mapscript.shapeObj_numvalues_get
-    if _newclass:numvalues = _swig_property(_mapscript.shapeObj_numvalues_get)
-    __swig_setmethods__["bounds"] = _mapscript.shapeObj_bounds_set
-    __swig_getmethods__["bounds"] = _mapscript.shapeObj_bounds_get
-    if _newclass:bounds = _swig_property(_mapscript.shapeObj_bounds_get, _mapscript.shapeObj_bounds_set)
-    __swig_setmethods__["type"] = _mapscript.shapeObj_type_set
-    __swig_getmethods__["type"] = _mapscript.shapeObj_type_get
-    if _newclass:type = _swig_property(_mapscript.shapeObj_type_get, _mapscript.shapeObj_type_set)
-    __swig_setmethods__["index"] = _mapscript.shapeObj_index_set
-    __swig_getmethods__["index"] = _mapscript.shapeObj_index_get
-    if _newclass:index = _swig_property(_mapscript.shapeObj_index_get, _mapscript.shapeObj_index_set)
-    __swig_setmethods__["tileindex"] = _mapscript.shapeObj_tileindex_set
-    __swig_getmethods__["tileindex"] = _mapscript.shapeObj_tileindex_get
-    if _newclass:tileindex = _swig_property(_mapscript.shapeObj_tileindex_get, _mapscript.shapeObj_tileindex_set)
-    __swig_setmethods__["classindex"] = _mapscript.shapeObj_classindex_set
-    __swig_getmethods__["classindex"] = _mapscript.shapeObj_classindex_get
-    if _newclass:classindex = _swig_property(_mapscript.shapeObj_classindex_get, _mapscript.shapeObj_classindex_set)
-    __swig_setmethods__["text"] = _mapscript.shapeObj_text_set
-    __swig_getmethods__["text"] = _mapscript.shapeObj_text_get
-    if _newclass:text = _swig_property(_mapscript.shapeObj_text_get, _mapscript.shapeObj_text_set)
-    __swig_setmethods__["scratch"] = _mapscript.shapeObj_scratch_set
-    __swig_getmethods__["scratch"] = _mapscript.shapeObj_scratch_get
-    if _newclass:scratch = _swig_property(_mapscript.shapeObj_scratch_get, _mapscript.shapeObj_scratch_set)
-    __swig_setmethods__["resultindex"] = _mapscript.shapeObj_resultindex_set
-    __swig_getmethods__["resultindex"] = _mapscript.shapeObj_resultindex_get
-    if _newclass:resultindex = _swig_property(_mapscript.shapeObj_resultindex_get, _mapscript.shapeObj_resultindex_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_shapeObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_shapeObj
-    __del__ = lambda self : None;
-    __swig_getmethods__["fromWKT"] = lambda x: _mapscript.shapeObj_fromWKT
-    if _newclass:fromWKT = staticmethod(_mapscript.shapeObj_fromWKT)
-    def project(self, *args): return _mapscript.shapeObj_project(self, *args)
-    def get(self, *args): return _mapscript.shapeObj_get(self, *args)
-    def add(self, *args): return _mapscript.shapeObj_add(self, *args)
-    def draw(self, *args): return _mapscript.shapeObj_draw(self, *args)
-    def setBounds(self): return _mapscript.shapeObj_setBounds(self)
-    def clone(self): return _mapscript.shapeObj_clone(self)
-    def copy(self, *args): return _mapscript.shapeObj_copy(self, *args)
-    def toWKT(self): return _mapscript.shapeObj_toWKT(self)
-    def buffer(self, *args): return _mapscript.shapeObj_buffer(self, *args)
-    def simplify(self, *args): return _mapscript.shapeObj_simplify(self, *args)
-    def topologyPreservingSimplify(self, *args): return _mapscript.shapeObj_topologyPreservingSimplify(self, *args)
-    def convexHull(self): return _mapscript.shapeObj_convexHull(self)
-    def boundary(self): return _mapscript.shapeObj_boundary(self)
-    def getCentroid(self): return _mapscript.shapeObj_getCentroid(self)
-    def Union(self, *args): return _mapscript.shapeObj_Union(self, *args)
-    def intersection(self, *args): return _mapscript.shapeObj_intersection(self, *args)
-    def difference(self, *args): return _mapscript.shapeObj_difference(self, *args)
-    def symDifference(self, *args): return _mapscript.shapeObj_symDifference(self, *args)
-    def overlaps(self, *args): return _mapscript.shapeObj_overlaps(self, *args)
-    def within(self, *args): return _mapscript.shapeObj_within(self, *args)
-    def crosses(self, *args): return _mapscript.shapeObj_crosses(self, *args)
-    def intersects(self, *args): return _mapscript.shapeObj_intersects(self, *args)
-    def touches(self, *args): return _mapscript.shapeObj_touches(self, *args)
-    def equals(self, *args): return _mapscript.shapeObj_equals(self, *args)
-    def disjoint(self, *args): return _mapscript.shapeObj_disjoint(self, *args)
-    def getArea(self): return _mapscript.shapeObj_getArea(self)
-    def getLength(self): return _mapscript.shapeObj_getLength(self)
-    def getValue(self, *args): return _mapscript.shapeObj_getValue(self, *args)
-    def contains(self, *args): return _mapscript.shapeObj_contains(self, *args)
-    def distanceToPoint(self, *args): return _mapscript.shapeObj_distanceToPoint(self, *args)
-    def distanceToShape(self, *args): return _mapscript.shapeObj_distanceToShape(self, *args)
-    def getLabelPoint(self): return _mapscript.shapeObj_getLabelPoint(self)
-    def setValue(self, *args): return _mapscript.shapeObj_setValue(self, *args)
-    def initValues(self, *args): return _mapscript.shapeObj_initValues(self, *args)
-shapeObj_swigregister = _mapscript.shapeObj_swigregister
-shapeObj_swigregister(shapeObj)
-
-def shapeObj_fromWKT(*args):
-  return _mapscript.shapeObj_fromWKT(*args)
-shapeObj_fromWKT = _mapscript.shapeObj_fromWKT
-
-SHX_BUFFER_PAGE = _mapscript.SHX_BUFFER_PAGE
-MS_SHAPEFILE_POINT = _mapscript.MS_SHAPEFILE_POINT
-MS_SHAPEFILE_ARC = _mapscript.MS_SHAPEFILE_ARC
-MS_SHAPEFILE_POLYGON = _mapscript.MS_SHAPEFILE_POLYGON
-MS_SHAPEFILE_MULTIPOINT = _mapscript.MS_SHAPEFILE_MULTIPOINT
-MS_SHP_POINTZ = _mapscript.MS_SHP_POINTZ
-MS_SHP_ARCZ = _mapscript.MS_SHP_ARCZ
-MS_SHP_POLYGONZ = _mapscript.MS_SHP_POLYGONZ
-MS_SHP_MULTIPOINTZ = _mapscript.MS_SHP_MULTIPOINTZ
-MS_SHP_POINTM = _mapscript.MS_SHP_POINTM
-MS_SHP_ARCM = _mapscript.MS_SHP_ARCM
-MS_SHP_POLYGONM = _mapscript.MS_SHP_POLYGONM
-MS_SHP_MULTIPOINTM = _mapscript.MS_SHP_MULTIPOINTM
-class DBFInfo(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, DBFInfo, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, DBFInfo, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["fp"] = _mapscript.DBFInfo_fp_get
-    if _newclass:fp = _swig_property(_mapscript.DBFInfo_fp_get)
-    __swig_getmethods__["nRecords"] = _mapscript.DBFInfo_nRecords_get
-    if _newclass:nRecords = _swig_property(_mapscript.DBFInfo_nRecords_get)
-    __swig_getmethods__["nRecordLength"] = _mapscript.DBFInfo_nRecordLength_get
-    if _newclass:nRecordLength = _swig_property(_mapscript.DBFInfo_nRecordLength_get)
-    __swig_getmethods__["nHeaderLength"] = _mapscript.DBFInfo_nHeaderLength_get
-    if _newclass:nHeaderLength = _swig_property(_mapscript.DBFInfo_nHeaderLength_get)
-    __swig_getmethods__["nFields"] = _mapscript.DBFInfo_nFields_get
-    if _newclass:nFields = _swig_property(_mapscript.DBFInfo_nFields_get)
-    __swig_getmethods__["panFieldOffset"] = _mapscript.DBFInfo_panFieldOffset_get
-    if _newclass:panFieldOffset = _swig_property(_mapscript.DBFInfo_panFieldOffset_get)
-    __swig_getmethods__["panFieldSize"] = _mapscript.DBFInfo_panFieldSize_get
-    if _newclass:panFieldSize = _swig_property(_mapscript.DBFInfo_panFieldSize_get)
-    __swig_getmethods__["panFieldDecimals"] = _mapscript.DBFInfo_panFieldDecimals_get
-    if _newclass:panFieldDecimals = _swig_property(_mapscript.DBFInfo_panFieldDecimals_get)
-    __swig_getmethods__["pachFieldType"] = _mapscript.DBFInfo_pachFieldType_get
-    if _newclass:pachFieldType = _swig_property(_mapscript.DBFInfo_pachFieldType_get)
-    __swig_getmethods__["pszHeader"] = _mapscript.DBFInfo_pszHeader_get
-    if _newclass:pszHeader = _swig_property(_mapscript.DBFInfo_pszHeader_get)
-    __swig_getmethods__["nCurrentRecord"] = _mapscript.DBFInfo_nCurrentRecord_get
-    if _newclass:nCurrentRecord = _swig_property(_mapscript.DBFInfo_nCurrentRecord_get)
-    __swig_getmethods__["bCurrentRecordModified"] = _mapscript.DBFInfo_bCurrentRecordModified_get
-    if _newclass:bCurrentRecordModified = _swig_property(_mapscript.DBFInfo_bCurrentRecordModified_get)
-    __swig_getmethods__["pszCurrentRecord"] = _mapscript.DBFInfo_pszCurrentRecord_get
-    if _newclass:pszCurrentRecord = _swig_property(_mapscript.DBFInfo_pszCurrentRecord_get)
-    __swig_getmethods__["bNoHeader"] = _mapscript.DBFInfo_bNoHeader_get
-    if _newclass:bNoHeader = _swig_property(_mapscript.DBFInfo_bNoHeader_get)
-    __swig_getmethods__["bUpdated"] = _mapscript.DBFInfo_bUpdated_get
-    if _newclass:bUpdated = _swig_property(_mapscript.DBFInfo_bUpdated_get)
-    __swig_getmethods__["pszStringField"] = _mapscript.DBFInfo_pszStringField_get
-    if _newclass:pszStringField = _swig_property(_mapscript.DBFInfo_pszStringField_get)
-    __swig_getmethods__["nStringFieldLen"] = _mapscript.DBFInfo_nStringFieldLen_get
-    if _newclass:nStringFieldLen = _swig_property(_mapscript.DBFInfo_nStringFieldLen_get)
-    def getFieldName(self, *args): return _mapscript.DBFInfo_getFieldName(self, *args)
-    def getFieldWidth(self, *args): return _mapscript.DBFInfo_getFieldWidth(self, *args)
-    def getFieldDecimals(self, *args): return _mapscript.DBFInfo_getFieldDecimals(self, *args)
-    def getFieldType(self, *args): return _mapscript.DBFInfo_getFieldType(self, *args)
-    def __init__(self): 
-        this = _mapscript.new_DBFInfo()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_DBFInfo
-    __del__ = lambda self : None;
-DBFInfo_swigregister = _mapscript.DBFInfo_swigregister
-DBFInfo_swigregister(DBFInfo)
-
-FTString = _mapscript.FTString
-FTInteger = _mapscript.FTInteger
-FTDouble = _mapscript.FTDouble
-FTInvalid = _mapscript.FTInvalid
-class shapefileObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, shapefileObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, shapefileObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["source"] = _mapscript.shapefileObj_source_get
-    if _newclass:source = _swig_property(_mapscript.shapefileObj_source_get)
-    __swig_getmethods__["type"] = _mapscript.shapefileObj_type_get
-    if _newclass:type = _swig_property(_mapscript.shapefileObj_type_get)
-    __swig_getmethods__["numshapes"] = _mapscript.shapefileObj_numshapes_get
-    if _newclass:numshapes = _swig_property(_mapscript.shapefileObj_numshapes_get)
-    __swig_getmethods__["bounds"] = _mapscript.shapefileObj_bounds_get
-    if _newclass:bounds = _swig_property(_mapscript.shapefileObj_bounds_get)
-    __swig_getmethods__["lastshape"] = _mapscript.shapefileObj_lastshape_get
-    if _newclass:lastshape = _swig_property(_mapscript.shapefileObj_lastshape_get)
-    __swig_getmethods__["status"] = _mapscript.shapefileObj_status_get
-    if _newclass:status = _swig_property(_mapscript.shapefileObj_status_get)
-    __swig_getmethods__["statusbounds"] = _mapscript.shapefileObj_statusbounds_get
-    if _newclass:statusbounds = _swig_property(_mapscript.shapefileObj_statusbounds_get)
-    __swig_getmethods__["isopen"] = _mapscript.shapefileObj_isopen_get
-    if _newclass:isopen = _swig_property(_mapscript.shapefileObj_isopen_get)
-    def __init__(self, *args): 
-        this = _mapscript.new_shapefileObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_shapefileObj
-    __del__ = lambda self : None;
-    def get(self, *args): return _mapscript.shapefileObj_get(self, *args)
-    def getShape(self, *args): return _mapscript.shapefileObj_getShape(self, *args)
-    def getPoint(self, *args): return _mapscript.shapefileObj_getPoint(self, *args)
-    def getTransformed(self, *args): return _mapscript.shapefileObj_getTransformed(self, *args)
-    def getExtent(self, *args): return _mapscript.shapefileObj_getExtent(self, *args)
-    def add(self, *args): return _mapscript.shapefileObj_add(self, *args)
-    def addPoint(self, *args): return _mapscript.shapefileObj_addPoint(self, *args)
-    def getDBF(self): return _mapscript.shapefileObj_getDBF(self)
-shapefileObj_swigregister = _mapscript.shapefileObj_swigregister
-shapefileObj_swigregister(shapefileObj)
-
-wkp_none = _mapscript.wkp_none
-wkp_lonlat = _mapscript.wkp_lonlat
-wkp_gmerc = _mapscript.wkp_gmerc
-class projectionObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, projectionObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, projectionObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numargs"] = _mapscript.projectionObj_numargs_get
-    if _newclass:numargs = _swig_property(_mapscript.projectionObj_numargs_get)
-    __swig_getmethods__["automatic"] = _mapscript.projectionObj_automatic_get
-    if _newclass:automatic = _swig_property(_mapscript.projectionObj_automatic_get)
-    __swig_setmethods__["wellknownprojection"] = _mapscript.projectionObj_wellknownprojection_set
-    __swig_getmethods__["wellknownprojection"] = _mapscript.projectionObj_wellknownprojection_get
-    if _newclass:wellknownprojection = _swig_property(_mapscript.projectionObj_wellknownprojection_get, _mapscript.projectionObj_wellknownprojection_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_projectionObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_projectionObj
-    __del__ = lambda self : None;
-    def setWKTProjection(self, *args): return _mapscript.projectionObj_setWKTProjection(self, *args)
-    def getUnits(self): return _mapscript.projectionObj_getUnits(self)
-projectionObj_swigregister = _mapscript.projectionObj_swigregister
-projectionObj_swigregister(projectionObj)
-
-MS_SYMBOL_SIMPLE = _mapscript.MS_SYMBOL_SIMPLE
-MS_SYMBOL_VECTOR = _mapscript.MS_SYMBOL_VECTOR
-MS_SYMBOL_ELLIPSE = _mapscript.MS_SYMBOL_ELLIPSE
-MS_SYMBOL_PIXMAP = _mapscript.MS_SYMBOL_PIXMAP
-MS_SYMBOL_TRUETYPE = _mapscript.MS_SYMBOL_TRUETYPE
-MS_SYMBOL_HATCH = _mapscript.MS_SYMBOL_HATCH
-MS_SYMBOL_SVG = _mapscript.MS_SYMBOL_SVG
-MS_SYMBOL_ALLOCSIZE = _mapscript.MS_SYMBOL_ALLOCSIZE
-MS_MAXVECTORPOINTS = _mapscript.MS_MAXVECTORPOINTS
-MS_MAXPATTERNLENGTH = _mapscript.MS_MAXPATTERNLENGTH
-MS_IMAGECACHESIZE = _mapscript.MS_IMAGECACHESIZE
-class colorObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, colorObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, colorObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["red"] = _mapscript.colorObj_red_set
-    __swig_getmethods__["red"] = _mapscript.colorObj_red_get
-    if _newclass:red = _swig_property(_mapscript.colorObj_red_get, _mapscript.colorObj_red_set)
-    __swig_setmethods__["green"] = _mapscript.colorObj_green_set
-    __swig_getmethods__["green"] = _mapscript.colorObj_green_get
-    if _newclass:green = _swig_property(_mapscript.colorObj_green_get, _mapscript.colorObj_green_set)
-    __swig_setmethods__["blue"] = _mapscript.colorObj_blue_set
-    __swig_getmethods__["blue"] = _mapscript.colorObj_blue_get
-    if _newclass:blue = _swig_property(_mapscript.colorObj_blue_get, _mapscript.colorObj_blue_set)
-    __swig_setmethods__["alpha"] = _mapscript.colorObj_alpha_set
-    __swig_getmethods__["alpha"] = _mapscript.colorObj_alpha_get
-    if _newclass:alpha = _swig_property(_mapscript.colorObj_alpha_get, _mapscript.colorObj_alpha_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_colorObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_colorObj
-    __del__ = lambda self : None;
-    def setRGB(self, *args): return _mapscript.colorObj_setRGB(self, *args)
-    def setHex(self, *args): return _mapscript.colorObj_setHex(self, *args)
-    def toHex(self): return _mapscript.colorObj_toHex(self)
-colorObj_swigregister = _mapscript.colorObj_swigregister
-colorObj_swigregister(colorObj)
-
-class symbolObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, symbolObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, symbolObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["name"] = _mapscript.symbolObj_name_set
-    __swig_getmethods__["name"] = _mapscript.symbolObj_name_get
-    if _newclass:name = _swig_property(_mapscript.symbolObj_name_get, _mapscript.symbolObj_name_set)
-    __swig_setmethods__["type"] = _mapscript.symbolObj_type_set
-    __swig_getmethods__["type"] = _mapscript.symbolObj_type_get
-    if _newclass:type = _swig_property(_mapscript.symbolObj_type_get, _mapscript.symbolObj_type_set)
-    __swig_setmethods__["inmapfile"] = _mapscript.symbolObj_inmapfile_set
-    __swig_getmethods__["inmapfile"] = _mapscript.symbolObj_inmapfile_get
-    if _newclass:inmapfile = _swig_property(_mapscript.symbolObj_inmapfile_get, _mapscript.symbolObj_inmapfile_set)
-    __swig_setmethods__["sizex"] = _mapscript.symbolObj_sizex_set
-    __swig_getmethods__["sizex"] = _mapscript.symbolObj_sizex_get
-    if _newclass:sizex = _swig_property(_mapscript.symbolObj_sizex_get, _mapscript.symbolObj_sizex_set)
-    __swig_setmethods__["sizey"] = _mapscript.symbolObj_sizey_set
-    __swig_getmethods__["sizey"] = _mapscript.symbolObj_sizey_get
-    if _newclass:sizey = _swig_property(_mapscript.symbolObj_sizey_get, _mapscript.symbolObj_sizey_set)
-    __swig_setmethods__["minx"] = _mapscript.symbolObj_minx_set
-    __swig_getmethods__["minx"] = _mapscript.symbolObj_minx_get
-    if _newclass:minx = _swig_property(_mapscript.symbolObj_minx_get, _mapscript.symbolObj_minx_set)
-    __swig_setmethods__["miny"] = _mapscript.symbolObj_miny_set
-    __swig_getmethods__["miny"] = _mapscript.symbolObj_miny_get
-    if _newclass:miny = _swig_property(_mapscript.symbolObj_miny_get, _mapscript.symbolObj_miny_set)
-    __swig_setmethods__["maxx"] = _mapscript.symbolObj_maxx_set
-    __swig_getmethods__["maxx"] = _mapscript.symbolObj_maxx_get
-    if _newclass:maxx = _swig_property(_mapscript.symbolObj_maxx_get, _mapscript.symbolObj_maxx_set)
-    __swig_setmethods__["maxy"] = _mapscript.symbolObj_maxy_set
-    __swig_getmethods__["maxy"] = _mapscript.symbolObj_maxy_get
-    if _newclass:maxy = _swig_property(_mapscript.symbolObj_maxy_get, _mapscript.symbolObj_maxy_set)
-    __swig_getmethods__["refcount"] = _mapscript.symbolObj_refcount_get
-    if _newclass:refcount = _swig_property(_mapscript.symbolObj_refcount_get)
-    __swig_getmethods__["numpoints"] = _mapscript.symbolObj_numpoints_get
-    if _newclass:numpoints = _swig_property(_mapscript.symbolObj_numpoints_get)
-    __swig_setmethods__["filled"] = _mapscript.symbolObj_filled_set
-    __swig_getmethods__["filled"] = _mapscript.symbolObj_filled_get
-    if _newclass:filled = _swig_property(_mapscript.symbolObj_filled_get, _mapscript.symbolObj_filled_set)
-    __swig_setmethods__["anchorpoint_x"] = _mapscript.symbolObj_anchorpoint_x_set
-    __swig_getmethods__["anchorpoint_x"] = _mapscript.symbolObj_anchorpoint_x_get
-    if _newclass:anchorpoint_x = _swig_property(_mapscript.symbolObj_anchorpoint_x_get, _mapscript.symbolObj_anchorpoint_x_set)
-    __swig_setmethods__["anchorpoint_y"] = _mapscript.symbolObj_anchorpoint_y_set
-    __swig_getmethods__["anchorpoint_y"] = _mapscript.symbolObj_anchorpoint_y_get
-    if _newclass:anchorpoint_y = _swig_property(_mapscript.symbolObj_anchorpoint_y_get, _mapscript.symbolObj_anchorpoint_y_set)
-    __swig_getmethods__["imagepath"] = _mapscript.symbolObj_imagepath_get
-    if _newclass:imagepath = _swig_property(_mapscript.symbolObj_imagepath_get)
-    __swig_setmethods__["transparent"] = _mapscript.symbolObj_transparent_set
-    __swig_getmethods__["transparent"] = _mapscript.symbolObj_transparent_get
-    if _newclass:transparent = _swig_property(_mapscript.symbolObj_transparent_get, _mapscript.symbolObj_transparent_set)
-    __swig_setmethods__["transparentcolor"] = _mapscript.symbolObj_transparentcolor_set
-    __swig_getmethods__["transparentcolor"] = _mapscript.symbolObj_transparentcolor_get
-    if _newclass:transparentcolor = _swig_property(_mapscript.symbolObj_transparentcolor_get, _mapscript.symbolObj_transparentcolor_set)
-    __swig_setmethods__["character"] = _mapscript.symbolObj_character_set
-    __swig_getmethods__["character"] = _mapscript.symbolObj_character_get
-    if _newclass:character = _swig_property(_mapscript.symbolObj_character_get, _mapscript.symbolObj_character_set)
-    __swig_setmethods__["antialias"] = _mapscript.symbolObj_antialias_set
-    __swig_getmethods__["antialias"] = _mapscript.symbolObj_antialias_get
-    if _newclass:antialias = _swig_property(_mapscript.symbolObj_antialias_get, _mapscript.symbolObj_antialias_set)
-    __swig_setmethods__["font"] = _mapscript.symbolObj_font_set
-    __swig_getmethods__["font"] = _mapscript.symbolObj_font_get
-    if _newclass:font = _swig_property(_mapscript.symbolObj_font_get, _mapscript.symbolObj_font_set)
-    def __init__(self, *args): 
-        this = _mapscript.new_symbolObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_symbolObj
-    __del__ = lambda self : None;
-    def setImagepath(self, *args): return _mapscript.symbolObj_setImagepath(self, *args)
-    def setPoints(self, *args): return _mapscript.symbolObj_setPoints(self, *args)
-    def getPoints(self): return _mapscript.symbolObj_getPoints(self)
-    def getImage(self, *args): return _mapscript.symbolObj_getImage(self, *args)
-    def setImage(self, *args): return _mapscript.symbolObj_setImage(self, *args)
-symbolObj_swigregister = _mapscript.symbolObj_swigregister
-symbolObj_swigregister(symbolObj)
-
-MS_NOERR = _mapscript.MS_NOERR
-MS_IOERR = _mapscript.MS_IOERR
-MS_MEMERR = _mapscript.MS_MEMERR
-MS_TYPEERR = _mapscript.MS_TYPEERR
-MS_SYMERR = _mapscript.MS_SYMERR
-MS_REGEXERR = _mapscript.MS_REGEXERR
-MS_TTFERR = _mapscript.MS_TTFERR
-MS_DBFERR = _mapscript.MS_DBFERR
-MS_GDERR = _mapscript.MS_GDERR
-MS_IDENTERR = _mapscript.MS_IDENTERR
-MS_EOFERR = _mapscript.MS_EOFERR
-MS_PROJERR = _mapscript.MS_PROJERR
-MS_MISCERR = _mapscript.MS_MISCERR
-MS_CGIERR = _mapscript.MS_CGIERR
-MS_WEBERR = _mapscript.MS_WEBERR
-MS_IMGERR = _mapscript.MS_IMGERR
-MS_HASHERR = _mapscript.MS_HASHERR
-MS_JOINERR = _mapscript.MS_JOINERR
-MS_NOTFOUND = _mapscript.MS_NOTFOUND
-MS_SHPERR = _mapscript.MS_SHPERR
-MS_PARSEERR = _mapscript.MS_PARSEERR
-MS_SDEERR = _mapscript.MS_SDEERR
-MS_OGRERR = _mapscript.MS_OGRERR
-MS_QUERYERR = _mapscript.MS_QUERYERR
-MS_WMSERR = _mapscript.MS_WMSERR
-MS_WMSCONNERR = _mapscript.MS_WMSCONNERR
-MS_ORACLESPATIALERR = _mapscript.MS_ORACLESPATIALERR
-MS_WFSERR = _mapscript.MS_WFSERR
-MS_WFSCONNERR = _mapscript.MS_WFSCONNERR
-MS_MAPCONTEXTERR = _mapscript.MS_MAPCONTEXTERR
-MS_HTTPERR = _mapscript.MS_HTTPERR
-MS_CHILDERR = _mapscript.MS_CHILDERR
-MS_WCSERR = _mapscript.MS_WCSERR
-MS_GEOSERR = _mapscript.MS_GEOSERR
-MS_RECTERR = _mapscript.MS_RECTERR
-MS_TIMEERR = _mapscript.MS_TIMEERR
-MS_GMLERR = _mapscript.MS_GMLERR
-MS_SOSERR = _mapscript.MS_SOSERR
-MS_NULLPARENTERR = _mapscript.MS_NULLPARENTERR
-MS_AGGERR = _mapscript.MS_AGGERR
-MS_OWSERR = _mapscript.MS_OWSERR
-MS_OGLERR = _mapscript.MS_OGLERR
-MS_RENDERERERR = _mapscript.MS_RENDERERERR
-MS_NUMERRORCODES = _mapscript.MS_NUMERRORCODES
-MESSAGELENGTH = _mapscript.MESSAGELENGTH
-ROUTINELENGTH = _mapscript.ROUTINELENGTH
-MS_ERROR_LANGUAGE = _mapscript.MS_ERROR_LANGUAGE
-class errorObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, errorObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, errorObj, name)
-    __repr__ = _swig_repr
-    __swig_setmethods__["code"] = _mapscript.errorObj_code_set
-    __swig_getmethods__["code"] = _mapscript.errorObj_code_get
-    if _newclass:code = _swig_property(_mapscript.errorObj_code_get, _mapscript.errorObj_code_set)
-    __swig_setmethods__["routine"] = _mapscript.errorObj_routine_set
-    __swig_getmethods__["routine"] = _mapscript.errorObj_routine_get
-    if _newclass:routine = _swig_property(_mapscript.errorObj_routine_get, _mapscript.errorObj_routine_set)
-    __swig_setmethods__["message"] = _mapscript.errorObj_message_set
-    __swig_getmethods__["message"] = _mapscript.errorObj_message_get
-    if _newclass:message = _swig_property(_mapscript.errorObj_message_get, _mapscript.errorObj_message_set)
-    __swig_setmethods__["isreported"] = _mapscript.errorObj_isreported_set
-    __swig_getmethods__["isreported"] = _mapscript.errorObj_isreported_get
-    if _newclass:isreported = _swig_property(_mapscript.errorObj_isreported_get, _mapscript.errorObj_isreported_set)
-    def __init__(self): 
-        this = _mapscript.new_errorObj()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_errorObj
-    __del__ = lambda self : None;
-    def next(self): return _mapscript.errorObj_next(self)
-errorObj_swigregister = _mapscript.errorObj_swigregister
-errorObj_swigregister(errorObj)
-
-
-def msGetErrorObj():
-  return _mapscript.msGetErrorObj()
-msGetErrorObj = _mapscript.msGetErrorObj
-
-def msResetErrorList():
-  return _mapscript.msResetErrorList()
-msResetErrorList = _mapscript.msResetErrorList
-
-def msGetVersion():
-  return _mapscript.msGetVersion()
-msGetVersion = _mapscript.msGetVersion
-
-def msGetVersionInt():
-  return _mapscript.msGetVersionInt()
-msGetVersionInt = _mapscript.msGetVersionInt
-
-def msGetErrorString(*args):
-  return _mapscript.msGetErrorString(*args)
-msGetErrorString = _mapscript.msGetErrorString
-MS_DEBUGLEVEL_ERRORSONLY = _mapscript.MS_DEBUGLEVEL_ERRORSONLY
-MS_DEBUGLEVEL_DEBUG = _mapscript.MS_DEBUGLEVEL_DEBUG
-MS_DEBUGLEVEL_TUNING = _mapscript.MS_DEBUGLEVEL_TUNING
-MS_DEBUGLEVEL_V = _mapscript.MS_DEBUGLEVEL_V
-MS_DEBUGLEVEL_VV = _mapscript.MS_DEBUGLEVEL_VV
-MS_DEBUGLEVEL_VVV = _mapscript.MS_DEBUGLEVEL_VVV
-MS_HASHSIZE = _mapscript.MS_HASHSIZE
-class hashTableObj(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, hashTableObj, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, hashTableObj, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["numitems"] = _mapscript.hashTableObj_numitems_get
-    if _newclass:numitems = _swig_property(_mapscript.hashTableObj_numitems_get)
-    def __init__(self, *args): 
-        this = _mapscript.new_hashTableObj(*args)
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_hashTableObj
-    __del__ = lambda self : None;
-    def set(self, *args): return _mapscript.hashTableObj_set(self, *args)
-    def get(self, *args): return _mapscript.hashTableObj_get(self, *args)
-    def remove(self, *args): return _mapscript.hashTableObj_remove(self, *args)
-    def clear(self, *args): return _mapscript.hashTableObj_clear(self, *args)
-    def nextKey(self, prevkey=None): return _mapscript.hashTableObj_nextKey(self, prevkey)
-hashTableObj_swigregister = _mapscript.hashTableObj_swigregister
-hashTableObj_swigregister(hashTableObj)
-
-MS_DEFAULT_CGI_PARAMS = _mapscript.MS_DEFAULT_CGI_PARAMS
-MS_GET_REQUEST = _mapscript.MS_GET_REQUEST
-MS_POST_REQUEST = _mapscript.MS_POST_REQUEST
-class OWSRequest(_object):
-    __swig_setmethods__ = {}
-    __setattr__ = lambda self, name, value: _swig_setattr(self, OWSRequest, name, value)
-    __swig_getmethods__ = {}
-    __getattr__ = lambda self, name: _swig_getattr(self, OWSRequest, name)
-    __repr__ = _swig_repr
-    __swig_getmethods__["NumParams"] = _mapscript.OWSRequest_NumParams_get
-    if _newclass:NumParams = _swig_property(_mapscript.OWSRequest_NumParams_get)
-    __swig_setmethods__["type"] = _mapscript.OWSRequest_type_set
-    __swig_getmethods__["type"] = _mapscript.OWSRequest_type_get
-    if _newclass:type = _swig_property(_mapscript.OWSRequest_type_get, _mapscript.OWSRequest_type_set)
-    __swig_setmethods__["contenttype"] = _mapscript.OWSRequest_contenttype_set
-    __swig_getmethods__["contenttype"] = _mapscript.OWSRequest_contenttype_get
-    if _newclass:contenttype = _swig_property(_mapscript.OWSRequest_contenttype_get, _mapscript.OWSRequest_contenttype_set)
-    __swig_setmethods__["postrequest"] = _mapscript.OWSRequest_postrequest_set
-    __swig_getmethods__["postrequest"] = _mapscript.OWSRequest_postrequest_get
-    if _newclass:postrequest = _swig_property(_mapscript.OWSRequest_postrequest_get, _mapscript.OWSRequest_postrequest_set)
-    __swig_setmethods__["httpcookiedata"] = _mapscript.OWSRequest_httpcookiedata_set
-    __swig_getmethods__["httpcookiedata"] = _mapscript.OWSRequest_httpcookiedata_get
-    if _newclass:httpcookiedata = _swig_property(_mapscript.OWSRequest_httpcookiedata_get, _mapscript.OWSRequest_httpcookiedata_set)
-    def __init__(self): 
-        this = _mapscript.new_OWSRequest()
-        try: self.this.append(this)
-        except: self.this = this
-    __swig_destroy__ = _mapscript.delete_OWSRequest
-    __del__ = lambda self : None;
-    def loadParams(self): return _mapscript.OWSRequest_loadParams(self)
-    def loadParamsFromURL(self, *args): return _mapscript.OWSRequest_loadParamsFromURL(self, *args)
-    def setParameter(self, *args): return _mapscript.OWSRequest_setParameter(self, *args)
-    def addParameter(self, *args): return _mapscript.OWSRequest_addParameter(self, *args)
-    def getName(self, *args): return _mapscript.OWSRequest_getName(self, *args)
-    def getValue(self, *args): return _mapscript.OWSRequest_getValue(self, *args)
-    def getValueByName(self, *args): return _mapscript.OWSRequest_getValueByName(self, *args)
-OWSRequest_swigregister = _mapscript.OWSRequest_swigregister
-OWSRequest_swigregister(OWSRequest)
-
-
-def msConnPoolCloseUnreferenced():
-  return _mapscript.msConnPoolCloseUnreferenced()
-msConnPoolCloseUnreferenced = _mapscript.msConnPoolCloseUnreferenced
-
-def msIO_resetHandlers():
-  return _mapscript.msIO_resetHandlers()
-msIO_resetHandlers = _mapscript.msIO_resetHandlers
-
-def msIO_installStdoutToBuffer():
-  return _mapscript.msIO_installStdoutToBuffer()
-msIO_installStdoutToBuffer = _mapscript.msIO_installStdoutToBuffer
-
-def msIO_installStdinFromBuffer():
-  return _mapscript.msIO_installStdinFromBuffer()
-msIO_installStdinFromBuffer = _mapscript.msIO_installStdinFromBuffer
-
-def msIO_stripStdoutBufferContentType():
-  return _mapscript.msIO_stripStdoutBufferContentType()
-msIO_stripStdoutBufferContentType = _mapscript.msIO_stripStdoutBufferContentType
-
-def msIO_stripStdoutBufferContentHeaders():
-  return _mapscript.msIO_stripStdoutBufferContentHeaders()
-msIO_stripStdoutBufferContentHeaders = _mapscript.msIO_stripStdoutBufferContentHeaders
-
-def msIO_getStdoutBufferString():
-  return _mapscript.msIO_getStdoutBufferString()
-msIO_getStdoutBufferString = _mapscript.msIO_getStdoutBufferString
-
-def msIO_getStdoutBufferBytes():
-  return _mapscript.msIO_getStdoutBufferBytes()
-msIO_getStdoutBufferBytes = _mapscript.msIO_getStdoutBufferBytes
-def fromstring(data, mappath=None):
-    """Creates map objects from mapfile strings.
-
-    Parameters
-    ==========
-    data : string
-        Mapfile in a string.
-    mappath : string
-        Optional root map path, enabling relative paths in mapfile.
-
-    Example
-    =======
-    >>> mo = fromstring("MAP\nNAME 'test'\nEND")
-    >>> mo.name
-    'test'
-    """
-    import re
-    if re.search("^\s*MAP", data, re.I): 
-        return msLoadMapFromString(data, mappath)
-    elif re.search("^\s*LAYER", data, re.I):
-        ob = layerObj()
-        ob.updateFromString(data)
-        return ob
-    elif re.search("^\s*CLASS", data, re.I):
-        ob = classObj()
-        ob.updateFromString(data)
-        return ob
-    elif re.search("^\s*STYLE", data, re.I):
-        ob = styleObj()
-        ob.updateFromString(data)
-        return ob
-    else:
-        raise ValueError, "No map, layer, class, or style found. Can not load from provided string"
-
-# This file is compatible with both classic and new-style classes.
-
-
diff --git a/mapscript/python/mapscript_wrap.c b/mapscript/python/mapscript_wrap.c
deleted file mode 100644
index 68ba3c4..0000000
--- a/mapscript/python/mapscript_wrap.c
+++ /dev/null
@@ -1,50007 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.7
- * 
- * This file is not intended to be easily readable and contains a number of 
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG 
- * interface file instead. 
- * ----------------------------------------------------------------------------- */
-
-#define SWIGPYTHON
-#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
-
-/* -----------------------------------------------------------------------------
- *  This section contains generic SWIG labels for method/variable
- *  declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-#  define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-#  define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-#   define SWIGINLINE inline
-# else
-#   define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-#     define SWIGUNUSED __attribute__ ((__unused__)) 
-#   else
-#     define SWIGUNUSED
-#   endif
-# elif defined(__ICC)
-#   define SWIGUNUSED __attribute__ ((__unused__)) 
-# else
-#   define SWIGUNUSED 
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif 
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-#   define SWIGUNUSEDPARM(p)
-# else
-#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-#  ifndef GCC_HASCLASSVISIBILITY
-#    define GCC_HASCLASSVISIBILITY
-#  endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   if defined(STATIC_LINKED)
-#     define SWIGEXPORT
-#   else
-#     define SWIGEXPORT __declspec(dllexport)
-#   endif
-# else
-#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-#     define SWIGEXPORT __attribute__ ((visibility("default")))
-#   else
-#     define SWIGEXPORT
-#   endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#   define SWIGSTDCALL __stdcall
-# else
-#   define SWIGSTDCALL
-# endif 
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-/* Python.h has to appear first */
-#include <Python.h>
-
-/* -----------------------------------------------------------------------------
- * swigrun.swg
- *
- * This file contains generic C API SWIG runtime support for pointer
- * type checking.
- * ----------------------------------------------------------------------------- */
-
-/* This should only be incremented when either the layout of swig_type_info changes,
-   or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION "4"
-
-/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
-#ifdef SWIG_TYPE_TABLE
-# define SWIG_QUOTE_STRING(x) #x
-# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
-# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
-#else
-# define SWIG_TYPE_TABLE_NAME
-#endif
-
-/*
-  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
-  creating a static or dynamic library from the SWIG runtime code.
-  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-  
-  But only do this if strictly necessary, ie, if you have problems
-  with your compiler or suchlike.
-*/
-
-#ifndef SWIGRUNTIME
-# define SWIGRUNTIME SWIGINTERN
-#endif
-
-#ifndef SWIGRUNTIMEINLINE
-# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
-#endif
-
-/*  Generic buffer size */
-#ifndef SWIG_BUFFER_SIZE
-# define SWIG_BUFFER_SIZE 1024
-#endif
-
-/* Flags for pointer conversions */
-#define SWIG_POINTER_DISOWN        0x1
-#define SWIG_CAST_NEW_MEMORY       0x2
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_OWN           0x1
-
-
-/* 
-   Flags/methods for returning states.
-   
-   The SWIG conversion methods, as ConvertPtr, return an integer 
-   that tells if the conversion was successful or not. And if not,
-   an error code can be returned (see swigerrors.swg for the codes).
-   
-   Use the following macros/flags to set or process the returning
-   states.
-   
-   In old versions of SWIG, code such as the following was usually written:
-
-     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
-       // success code
-     } else {
-       //fail code
-     }
-
-   Now you can be more explicit:
-
-    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-    } else {
-      // fail code
-    }
-
-   which is the same really, but now you can also do
-
-    Type *ptr;
-    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
-    if (SWIG_IsOK(res)) {
-      // success code
-      if (SWIG_IsNewObj(res) {
-        ...
-	delete *ptr;
-      } else {
-        ...
-      }
-    } else {
-      // fail code
-    }
-    
-   I.e., now SWIG_ConvertPtr can return new objects and you can
-   identify the case and take care of the deallocation. Of course that
-   also requires SWIG_ConvertPtr to return new result values, such as
-
-      int SWIG_ConvertPtr(obj, ptr,...) {         
-        if (<obj is ok>) {			       
-          if (<need new object>) {		       
-            *ptr = <ptr to new allocated object>; 
-            return SWIG_NEWOBJ;		       
-          } else {				       
-            *ptr = <ptr to old object>;	       
-            return SWIG_OLDOBJ;		       
-          } 				       
-        } else {				       
-          return SWIG_BADOBJ;		       
-        }					       
-      }
-
-   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
-   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
-   SWIG errors code.
-
-   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
-   allows to return the 'cast rank', for example, if you have this
-
-       int food(double)
-       int fooi(int);
-
-   and you call
- 
-      food(1)   // cast rank '1'  (1 -> 1.0)
-      fooi(1)   // cast rank '0'
-
-   just use the SWIG_AddCast()/SWIG_CheckState()
-*/
-
-#define SWIG_OK                    (0) 
-#define SWIG_ERROR                 (-1)
-#define SWIG_IsOK(r)               (r >= 0)
-#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  
-
-/* The CastRankLimit says how many bits are used for the cast rank */
-#define SWIG_CASTRANKLIMIT         (1 << 8)
-/* The NewMask denotes the object was created (using new/malloc) */
-#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
-/* The TmpMask is for in/out typemaps that use temporal objects */
-#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
-/* Simple returning values */
-#define SWIG_BADOBJ                (SWIG_ERROR)
-#define SWIG_OLDOBJ                (SWIG_OK)
-#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
-#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
-/* Check, add and del mask methods */
-#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
-#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
-#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
-#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
-#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
-#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
-
-/* Cast-Rank Mode */
-#if defined(SWIG_CASTRANK_MODE)
-#  ifndef SWIG_TypeRank
-#    define SWIG_TypeRank             unsigned long
-#  endif
-#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
-#    define SWIG_MAXCASTRANK          (2)
-#  endif
-#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
-#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) { 
-  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
-}
-SWIGINTERNINLINE int SWIG_CheckState(int r) { 
-  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
-}
-#else /* no cast-rank mode */
-#  define SWIG_AddCast
-#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
-#endif
-
-
-#include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void *(*swig_converter_func)(void *, int *);
-typedef struct swig_type_info *(*swig_dycast_func)(void **);
-
-/* Structure to store information on one type */
-typedef struct swig_type_info {
-  const char             *name;			/* mangled name of this type */
-  const char             *str;			/* human readable name of this type */
-  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
-  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
-  void                   *clientdata;		/* language specific type data */
-  int                    owndata;		/* flag if the structure owns the clientdata */
-} swig_type_info;
-
-/* Structure to store a type and conversion function used for casting */
-typedef struct swig_cast_info {
-  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
-  swig_converter_func     converter;		/* function to cast the void pointers */
-  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
-  struct swig_cast_info  *prev;			/* pointer to the previous cast */
-} swig_cast_info;
-
-/* Structure used to store module information
- * Each module generates one structure like this, and the runtime collects
- * all of these structures and stores them in a circularly linked list.*/
-typedef struct swig_module_info {
-  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
-  size_t                 size;		        /* Number of types in this module */
-  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
-  swig_type_info         **type_initial;	/* Array of initially generated type structures */
-  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
-  void                    *clientdata;		/* Language specific module data */
-} swig_module_info;
-
-/* 
-  Compare two type names skipping the space characters, therefore
-  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
-
-  Return 0 when the two name types are equivalent, as in
-  strncmp, but skipping ' '.
-*/
-SWIGRUNTIME int
-SWIG_TypeNameComp(const char *f1, const char *l1,
-		  const char *f2, const char *l2) {
-  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
-    while ((*f1 == ' ') && (f1 != l1)) ++f1;
-    while ((*f2 == ' ') && (f2 != l2)) ++f2;
-    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
-  }
-  return (int)((l1 - f1) - (l2 - f2));
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if not equal, 1 if equal
-*/
-SWIGRUNTIME int
-SWIG_TypeEquiv(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-/*
-  Check type equivalence in a name list like <name1>|<name2>|...
-  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
-*/
-SWIGRUNTIME int
-SWIG_TypeCompare(const char *nb, const char *tb) {
-  int equiv = 0;
-  const char* te = tb + strlen(tb);
-  const char* ne = nb;
-  while (!equiv && *ne) {
-    for (nb = ne; *ne; ++ne) {
-      if (*ne == '|') break;
-    }
-    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
-    if (*ne) ++ne;
-  }
-  return equiv;
-}
-
-
-/*
-  Check the typename
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheck(const char *c, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (strcmp(iter->type->name, c) == 0) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/* 
-  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
-*/
-SWIGRUNTIME swig_cast_info *
-SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
-  if (ty) {
-    swig_cast_info *iter = ty->cast;
-    while (iter) {
-      if (iter->type == from) {
-        if (iter == ty->cast)
-          return iter;
-        /* Move iter to the top of the linked list */
-        iter->prev->next = iter->next;
-        if (iter->next)
-          iter->next->prev = iter->prev;
-        iter->next = ty->cast;
-        iter->prev = 0;
-        if (ty->cast) ty->cast->prev = iter;
-        ty->cast = iter;
-        return iter;
-      }
-      iter = iter->next;
-    }
-  }
-  return 0;
-}
-
-/*
-  Cast a pointer up an inheritance hierarchy
-*/
-SWIGRUNTIMEINLINE void *
-SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
-  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
-}
-
-/* 
-   Dynamic pointer casting. Down an inheritance hierarchy
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
-  swig_type_info *lastty = ty;
-  if (!ty || !ty->dcast) return ty;
-  while (ty && (ty->dcast)) {
-    ty = (*ty->dcast)(ptr);
-    if (ty) lastty = ty;
-  }
-  return lastty;
-}
-
-/*
-  Return the name associated with this type
-*/
-SWIGRUNTIMEINLINE const char *
-SWIG_TypeName(const swig_type_info *ty) {
-  return ty->name;
-}
-
-/*
-  Return the pretty name associated with this type,
-  that is an unmangled type name in a form presentable to the user.
-*/
-SWIGRUNTIME const char *
-SWIG_TypePrettyName(const swig_type_info *type) {
-  /* The "str" field contains the equivalent pretty names of the
-     type, separated by vertical-bar characters.  We choose
-     to print the last name, as it is often (?) the most
-     specific. */
-  if (!type) return NULL;
-  if (type->str != NULL) {
-    const char *last_name = type->str;
-    const char *s;
-    for (s = type->str; *s; s++)
-      if (*s == '|') last_name = s+1;
-    return last_name;
-  }
-  else
-    return type->name;
-}
-
-/* 
-   Set the clientdata field for a type
-*/
-SWIGRUNTIME void
-SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
-  swig_cast_info *cast = ti->cast;
-  /* if (ti->clientdata == clientdata) return; */
-  ti->clientdata = clientdata;
-  
-  while (cast) {
-    if (!cast->converter) {
-      swig_type_info *tc = cast->type;
-      if (!tc->clientdata) {
-	SWIG_TypeClientData(tc, clientdata);
-      }
-    }    
-    cast = cast->next;
-  }
-}
-SWIGRUNTIME void
-SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
-  SWIG_TypeClientData(ti, clientdata);
-  ti->owndata = 1;
-}
-  
-/*
-  Search for a swig_type_info structure only by mangled name
-  Search is a O(log #types)
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start, 
-                            swig_module_info *end, 
-		            const char *name) {
-  swig_module_info *iter = start;
-  do {
-    if (iter->size) {
-      register size_t l = 0;
-      register size_t r = iter->size - 1;
-      do {
-	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
-	register size_t i = (l + r) >> 1; 
-	const char *iname = iter->types[i]->name;
-	if (iname) {
-	  register int compare = strcmp(name, iname);
-	  if (compare == 0) {	    
-	    return iter->types[i];
-	  } else if (compare < 0) {
-	    if (i) {
-	      r = i - 1;
-	    } else {
-	      break;
-	    }
-	  } else if (compare > 0) {
-	    l = i + 1;
-	  }
-	} else {
-	  break; /* should never happen */
-	}
-      } while (l <= r);
-    }
-    iter = iter->next;
-  } while (iter != end);
-  return 0;
-}
-
-/*
-  Search for a swig_type_info structure for either a mangled name or a human readable name.
-  It first searches the mangled names of the types, which is a O(log #types)
-  If a type is not found it then searches the human readable names, which is O(#types).
-  
-  We start searching at module start, and finish searching when start == end.  
-  Note: if start == end at the beginning of the function, we go all the way around
-  the circular list.
-*/
-SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start, 
-                     swig_module_info *end, 
-		     const char *name) {
-  /* STEP 1: Search the name field using binary search */
-  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
-  if (ret) {
-    return ret;
-  } else {
-    /* STEP 2: If the type hasn't been found, do a complete search
-       of the str field (the human readable name) */
-    swig_module_info *iter = start;
-    do {
-      register size_t i = 0;
-      for (; i < iter->size; ++i) {
-	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
-	  return iter->types[i];
-      }
-      iter = iter->next;
-    } while (iter != end);
-  }
-  
-  /* neither found a match */
-  return 0;
-}
-
-/* 
-   Pack binary data into a string
-*/
-SWIGRUNTIME char *
-SWIG_PackData(char *c, void *ptr, size_t sz) {
-  static const char hex[17] = "0123456789abcdef";
-  register const unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu =  u + sz;
-  for (; u != eu; ++u) {
-    register unsigned char uu = *u;
-    *(c++) = hex[(uu & 0xf0) >> 4];
-    *(c++) = hex[uu & 0xf];
-  }
-  return c;
-}
-
-/* 
-   Unpack binary data from a string
-*/
-SWIGRUNTIME const char *
-SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
-  register unsigned char *u = (unsigned char *) ptr;
-  register const unsigned char *eu = u + sz;
-  for (; u != eu; ++u) {
-    register char d = *(c++);
-    register unsigned char uu;
-    if ((d >= '0') && (d <= '9'))
-      uu = ((d - '0') << 4);
-    else if ((d >= 'a') && (d <= 'f'))
-      uu = ((d - ('a'-10)) << 4);
-    else 
-      return (char *) 0;
-    d = *(c++);
-    if ((d >= '0') && (d <= '9'))
-      uu |= (d - '0');
-    else if ((d >= 'a') && (d <= 'f'))
-      uu |= (d - ('a'-10));
-    else 
-      return (char *) 0;
-    *u = uu;
-  }
-  return c;
-}
-
-/* 
-   Pack 'void *' into a string buffer.
-*/
-SWIGRUNTIME char *
-SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
-  char *r = buff;
-  if ((2*sizeof(void *) + 2) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,&ptr,sizeof(void *));
-  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
-  strcpy(r,name);
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      *ptr = (void *) 0;
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sizeof(void *));
-}
-
-SWIGRUNTIME char *
-SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
-  char *r = buff;
-  size_t lname = (name ? strlen(name) : 0);
-  if ((2*sz + 2 + lname) > bsz) return 0;
-  *(r++) = '_';
-  r = SWIG_PackData(r,ptr,sz);
-  if (lname) {
-    strncpy(r,name,lname+1);
-  } else {
-    *r = 0;
-  }
-  return buff;
-}
-
-SWIGRUNTIME const char *
-SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
-  if (*c != '_') {
-    if (strcmp(c,"NULL") == 0) {
-      memset(ptr,0,sz);
-      return name;
-    } else {
-      return 0;
-    }
-  }
-  return SWIG_UnpackData(++c,ptr,sz);
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-/*  Errors in SWIG */
-#define  SWIG_UnknownError    	   -1 
-#define  SWIG_IOError        	   -2 
-#define  SWIG_RuntimeError   	   -3 
-#define  SWIG_IndexError     	   -4 
-#define  SWIG_TypeError      	   -5 
-#define  SWIG_DivisionByZero 	   -6 
-#define  SWIG_OverflowError  	   -7 
-#define  SWIG_SyntaxError    	   -8 
-#define  SWIG_ValueError     	   -9 
-#define  SWIG_SystemError    	   -10
-#define  SWIG_AttributeError 	   -11
-#define  SWIG_MemoryError    	   -12 
-#define  SWIG_NullReferenceError   -13
-
-
-
-/* Compatibility macros for Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-
-#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
-#define PyInt_Check(x) PyLong_Check(x)
-#define PyInt_AsLong(x) PyLong_AsLong(x)
-#define PyInt_FromLong(x) PyLong_FromLong(x)
-#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
-#define PyString_Check(name) PyBytes_Check(name)
-#define PyString_FromString(x) PyUnicode_FromString(x)
-#define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
-#define PyString_AsString(str) PyBytes_AsString(str)
-#define PyString_Size(str) PyBytes_Size(str)	
-#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
-#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
-#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
-#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
-
-#endif
-
-#ifndef Py_TYPE
-#  define Py_TYPE(op) ((op)->ob_type)
-#endif
-
-/* SWIG APIs for compatibility of both Python 2 & 3 */
-
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
-#else
-#  define SWIG_Python_str_FromFormat PyString_FromFormat
-#endif
-
-
-/* Warning: This function will allocate a new string in Python 3,
- * so please call SWIG_Python_str_DelForPy3(x) to free the space.
- */
-SWIGINTERN char*
-SWIG_Python_str_AsChar(PyObject *str)
-{
-#if PY_VERSION_HEX >= 0x03000000
-  char *cstr;
-  char *newstr;
-  Py_ssize_t len;
-  str = PyUnicode_AsUTF8String(str);
-  PyBytes_AsStringAndSize(str, &cstr, &len);
-  newstr = (char *) malloc(len+1);
-  memcpy(newstr, cstr, len+1);
-  Py_XDECREF(str);
-  return newstr;
-#else
-  return PyString_AsString(str);
-#endif
-}
-
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
-#else
-#  define SWIG_Python_str_DelForPy3(x) 
-#endif
-
-
-SWIGINTERN PyObject*
-SWIG_Python_str_FromChar(const char *c)
-{
-#if PY_VERSION_HEX >= 0x03000000
-  return PyUnicode_FromString(c); 
-#else
-  return PyString_FromString(c);
-#endif
-}
-
-/* Add PyOS_snprintf for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
-#  define PyOS_snprintf _snprintf
-# else
-#  define PyOS_snprintf snprintf
-# endif
-#endif
-
-/* A crude PyString_FromFormat implementation for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-
-#ifndef SWIG_PYBUFFER_SIZE
-# define SWIG_PYBUFFER_SIZE 1024
-#endif
-
-static PyObject *
-PyString_FromFormat(const char *fmt, ...) {
-  va_list ap;
-  char buf[SWIG_PYBUFFER_SIZE * 2];
-  int res;
-  va_start(ap, fmt);
-  res = vsnprintf(buf, sizeof(buf), fmt, ap);
-  va_end(ap);
-  return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
-}
-#endif
-
-/* Add PyObject_Del for old Pythons */
-#if PY_VERSION_HEX < 0x01060000
-# define PyObject_Del(op) PyMem_DEL((op))
-#endif
-#ifndef PyObject_DEL
-# define PyObject_DEL PyObject_Del
-#endif
-
-/* A crude PyExc_StopIteration exception for old Pythons */
-#if PY_VERSION_HEX < 0x02020000
-# ifndef PyExc_StopIteration
-#  define PyExc_StopIteration PyExc_RuntimeError
-# endif
-# ifndef PyObject_GenericGetAttr
-#  define PyObject_GenericGetAttr 0
-# endif
-#endif
-
-/* Py_NotImplemented is defined in 2.1 and up. */
-#if PY_VERSION_HEX < 0x02010000
-# ifndef Py_NotImplemented
-#  define Py_NotImplemented PyExc_RuntimeError
-# endif
-#endif
-
-/* A crude PyString_AsStringAndSize implementation for old Pythons */
-#if PY_VERSION_HEX < 0x02010000
-# ifndef PyString_AsStringAndSize
-#  define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
-# endif
-#endif
-
-/* PySequence_Size for old Pythons */
-#if PY_VERSION_HEX < 0x02000000
-# ifndef PySequence_Size
-#  define PySequence_Size PySequence_Length
-# endif
-#endif
-
-/* PyBool_FromLong for old Pythons */
-#if PY_VERSION_HEX < 0x02030000
-static
-PyObject *PyBool_FromLong(long ok)
-{
-  PyObject *result = ok ? Py_True : Py_False;
-  Py_INCREF(result);
-  return result;
-}
-#endif
-
-/* Py_ssize_t for old Pythons */
-/* This code is as recommended by: */
-/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
-#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
-typedef int Py_ssize_t;
-# define PY_SSIZE_T_MAX INT_MAX
-# define PY_SSIZE_T_MIN INT_MIN
-typedef inquiry lenfunc;
-typedef intargfunc ssizeargfunc;
-typedef intintargfunc ssizessizeargfunc;
-typedef intobjargproc ssizeobjargproc;
-typedef intintobjargproc ssizessizeobjargproc;
-typedef getreadbufferproc readbufferproc;
-typedef getwritebufferproc writebufferproc;
-typedef getsegcountproc segcountproc;
-typedef getcharbufferproc charbufferproc;
-static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
-{
-  long result = 0;
-  PyObject *i = PyNumber_Int(x);
-  if (i) {
-    result = PyInt_AsLong(i);
-    Py_DECREF(i);
-  }
-  return result;
-}
-#endif
-
-#if PY_VERSION_HEX < 0x02040000
-#define Py_VISIT(op)				\
-  do { 						\
-    if (op) {					\
-      int vret = visit((op), arg);		\
-      if (vret)					\
-        return vret;				\
-    }						\
-  } while (0)
-#endif
-
-#if PY_VERSION_HEX < 0x02030000
-typedef struct {
-  PyTypeObject type;
-  PyNumberMethods as_number;
-  PyMappingMethods as_mapping;
-  PySequenceMethods as_sequence;
-  PyBufferProcs as_buffer;
-  PyObject *name, *slots;
-} PyHeapTypeObject;
-#endif
-
-#if PY_VERSION_HEX < 0x02030000
-typedef destructor freefunc;
-#endif
-
-#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
-     (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
-     (PY_MAJOR_VERSION > 3))
-# define SWIGPY_USE_CAPSULE
-# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
-#endif
-
-#if PY_VERSION_HEX < 0x03020000
-#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
-#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
-#endif
-
-/* -----------------------------------------------------------------------------
- * error manipulation
- * ----------------------------------------------------------------------------- */
-
-SWIGRUNTIME PyObject*
-SWIG_Python_ErrorType(int code) {
-  PyObject* type = 0;
-  switch(code) {
-  case SWIG_MemoryError:
-    type = PyExc_MemoryError;
-    break;
-  case SWIG_IOError:
-    type = PyExc_IOError;
-    break;
-  case SWIG_RuntimeError:
-    type = PyExc_RuntimeError;
-    break;
-  case SWIG_IndexError:
-    type = PyExc_IndexError;
-    break;
-  case SWIG_TypeError:
-    type = PyExc_TypeError;
-    break;
-  case SWIG_DivisionByZero:
-    type = PyExc_ZeroDivisionError;
-    break;
-  case SWIG_OverflowError:
-    type = PyExc_OverflowError;
-    break;
-  case SWIG_SyntaxError:
-    type = PyExc_SyntaxError;
-    break;
-  case SWIG_ValueError:
-    type = PyExc_ValueError;
-    break;
-  case SWIG_SystemError:
-    type = PyExc_SystemError;
-    break;
-  case SWIG_AttributeError:
-    type = PyExc_AttributeError;
-    break;
-  default:
-    type = PyExc_RuntimeError;
-  }
-  return type;
-}
-
-
-SWIGRUNTIME void
-SWIG_Python_AddErrorMsg(const char* mesg)
-{
-  PyObject *type = 0;
-  PyObject *value = 0;
-  PyObject *traceback = 0;
-
-  if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
-  if (value) {
-    char *tmp;
-    PyObject *old_str = PyObject_Str(value);
-    PyErr_Clear();
-    Py_XINCREF(type);
-
-    PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
-    SWIG_Python_str_DelForPy3(tmp);
-    Py_DECREF(old_str);
-    Py_DECREF(value);
-  } else {
-    PyErr_SetString(PyExc_RuntimeError, mesg);
-  }
-}
-
-#if defined(SWIG_PYTHON_NO_THREADS)
-#  if defined(SWIG_PYTHON_THREADS)
-#    undef SWIG_PYTHON_THREADS
-#  endif
-#endif
-#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
-#  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
-#    if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
-#      define SWIG_PYTHON_USE_GIL
-#    endif
-#  endif
-#  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
-#    ifndef SWIG_PYTHON_INITIALIZE_THREADS
-#     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads() 
-#    endif
-#    ifdef __cplusplus /* C++ code */
-       class SWIG_Python_Thread_Block {
-         bool status;
-         PyGILState_STATE state;
-       public:
-         void end() { if (status) { PyGILState_Release(state); status = false;} }
-         SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
-         ~SWIG_Python_Thread_Block() { end(); }
-       };
-       class SWIG_Python_Thread_Allow {
-         bool status;
-         PyThreadState *save;
-       public:
-         void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
-         SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
-         ~SWIG_Python_Thread_Allow() { end(); }
-       };
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
-#      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
-#      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
-#    else /* C code */
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
-#      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
-#      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
-#    endif
-#  else /* Old thread way, not implemented, user must provide it */
-#    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
-#      define SWIG_PYTHON_INITIALIZE_THREADS
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
-#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
-#      define SWIG_PYTHON_THREAD_END_BLOCK
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
-#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
-#    endif
-#    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
-#      define SWIG_PYTHON_THREAD_END_ALLOW
-#    endif
-#  endif
-#else /* No thread support */
-#  define SWIG_PYTHON_INITIALIZE_THREADS
-#  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
-#  define SWIG_PYTHON_THREAD_END_BLOCK
-#  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
-#  define SWIG_PYTHON_THREAD_END_ALLOW
-#endif
-
-/* -----------------------------------------------------------------------------
- * Python API portion that goes into the runtime
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* -----------------------------------------------------------------------------
- * Constant declarations
- * ----------------------------------------------------------------------------- */
-
-/* Constant Types */
-#define SWIG_PY_POINTER 4
-#define SWIG_PY_BINARY  5
-
-/* Constant information structure */
-typedef struct swig_const_info {
-  int type;
-  char *name;
-  long lvalue;
-  double dvalue;
-  void   *pvalue;
-  swig_type_info **ptype;
-} swig_const_info;
-
-
-/* -----------------------------------------------------------------------------
- * Wrapper of PyInstanceMethod_New() used in Python 3
- * It is exported to the generated module, used for -fastproxy
- * ----------------------------------------------------------------------------- */
-#if PY_VERSION_HEX >= 0x03000000
-SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
-{
-  return PyInstanceMethod_New(func);
-}
-#else
-SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
-{
-  return NULL;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-
-/* -----------------------------------------------------------------------------
- * pyrun.swg
- *
- * This file contains the runtime support for Python modules
- * and includes code for managing global variables and pointer
- * type checking.
- *
- * ----------------------------------------------------------------------------- */
-
-/* Common SWIG API */
-
-/* for raw pointers */
-#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
-#define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
-
-#ifdef SWIGPYTHON_BUILTIN
-#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
-#else
-#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
-#endif
-
-#define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
-
-#define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 
-#define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
-#define swig_owntype                                    int
-
-/* for raw packed data */
-#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
-
-/* for class or struct pointers */
-#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
-#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
-
-/* for C or C++ function pointers */
-#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
-#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
-
-/* for C++ member pointers, ie, member methods */
-#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
-#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
-
-
-/* Runtime API */
-
-#define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule()
-#define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
-#define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)
-
-#define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj                            
-#define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg				   
-#define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)                        
-#define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 
-#define SWIG_fail                        		goto fail					   
-
-
-/* Runtime API implementation */
-
-/* Error manipulation */
-
-SWIGINTERN void 
-SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
-  SWIG_PYTHON_THREAD_BEGIN_BLOCK; 
-  PyErr_SetObject(errtype, obj);
-  Py_DECREF(obj);
-  SWIG_PYTHON_THREAD_END_BLOCK;
-}
-
-SWIGINTERN void 
-SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
-  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
-  PyErr_SetString(errtype, msg);
-  SWIG_PYTHON_THREAD_END_BLOCK;
-}
-
-#define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
-
-/* Set a constant value */
-
-#if defined(SWIGPYTHON_BUILTIN)
-
-SWIGINTERN void
-SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
-  PyObject *s = PyString_InternFromString(key);
-  PyList_Append(seq, s);
-  Py_DECREF(s);
-}
-
-SWIGINTERN void
-SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {   
-#if PY_VERSION_HEX < 0x02030000
-  PyDict_SetItemString(d, (char *)name, obj);
-#else
-  PyDict_SetItemString(d, name, obj);
-#endif
-  Py_DECREF(obj);
-  if (public_interface)
-    SwigPyBuiltin_AddPublicSymbol(public_interface, name);
-}
-
-#else
-
-SWIGINTERN void
-SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
-#if PY_VERSION_HEX < 0x02030000
-  PyDict_SetItemString(d, (char *)name, obj);
-#else
-  PyDict_SetItemString(d, name, obj);
-#endif
-  Py_DECREF(obj);                            
-}
-
-#endif
-
-/* Append a value to the result obj */
-
-SWIGINTERN PyObject*
-SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
-#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
-  if (!result) {
-    result = obj;
-  } else if (result == Py_None) {
-    Py_DECREF(result);
-    result = obj;
-  } else {
-    if (!PyList_Check(result)) {
-      PyObject *o2 = result;
-      result = PyList_New(1);
-      PyList_SetItem(result, 0, o2);
-    }
-    PyList_Append(result,obj);
-    Py_DECREF(obj);
-  }
-  return result;
-#else
-  PyObject*   o2;
-  PyObject*   o3;
-  if (!result) {
-    result = obj;
-  } else if (result == Py_None) {
-    Py_DECREF(result);
-    result = obj;
-  } else {
-    if (!PyTuple_Check(result)) {
-      o2 = result;
-      result = PyTuple_New(1);
-      PyTuple_SET_ITEM(result, 0, o2);
-    }
-    o3 = PyTuple_New(1);
-    PyTuple_SET_ITEM(o3, 0, obj);
-    o2 = result;
-    result = PySequence_Concat(o2, o3);
-    Py_DECREF(o2);
-    Py_DECREF(o3);
-  }
-  return result;
-#endif
-}
-
-/* Unpack the argument tuple */
-
-SWIGINTERN int
-SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
-{
-  if (!args) {
-    if (!min && !max) {
-      return 1;
-    } else {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
-		   name, (min == max ? "" : "at least "), (int)min);
-      return 0;
-    }
-  }  
-  if (!PyTuple_Check(args)) {
-    if (min <= 1 && max >= 1) {
-      register int i;
-      objs[0] = args;
-      for (i = 1; i < max; ++i) {
-	objs[i] = 0;
-      }
-      return 2;
-    }
-    PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
-    return 0;
-  } else {
-    register Py_ssize_t l = PyTuple_GET_SIZE(args);
-    if (l < min) {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
-		   name, (min == max ? "" : "at least "), (int)min, (int)l);
-      return 0;
-    } else if (l > max) {
-      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
-		   name, (min == max ? "" : "at most "), (int)max, (int)l);
-      return 0;
-    } else {
-      register int i;
-      for (i = 0; i < l; ++i) {
-	objs[i] = PyTuple_GET_ITEM(args, i);
-      }
-      for (; l < max; ++l) {
-	objs[l] = 0;
-      }
-      return i + 1;
-    }    
-  }
-}
-
-/* A functor is a function object with one single object argument */
-#if PY_VERSION_HEX >= 0x02020000
-#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);
-#else
-#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunction(functor, "O", obj);
-#endif
-
-/*
-  Helper for static pointer initialization for both C and C++ code, for example
-  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
-*/
-#ifdef __cplusplus
-#define SWIG_STATIC_POINTER(var)  var
-#else
-#define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
-#endif
-
-/* -----------------------------------------------------------------------------
- * Pointer declarations
- * ----------------------------------------------------------------------------- */
-
-/* Flags for new pointer objects */
-#define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
-#define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
-
-#define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)
-
-#define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
-#define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*  How to access Py_None */
-#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-#  ifndef SWIG_PYTHON_NO_BUILD_NONE
-#    ifndef SWIG_PYTHON_BUILD_NONE
-#      define SWIG_PYTHON_BUILD_NONE
-#    endif
-#  endif
-#endif
-
-#ifdef SWIG_PYTHON_BUILD_NONE
-#  ifdef Py_None
-#   undef Py_None
-#   define Py_None SWIG_Py_None()
-#  endif
-SWIGRUNTIMEINLINE PyObject * 
-_SWIG_Py_None(void)
-{
-  PyObject *none = Py_BuildValue((char*)"");
-  Py_DECREF(none);
-  return none;
-}
-SWIGRUNTIME PyObject * 
-SWIG_Py_None(void)
-{
-  static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
-  return none;
-}
-#endif
-
-/* The python void return value */
-
-SWIGRUNTIMEINLINE PyObject * 
-SWIG_Py_Void(void)
-{
-  PyObject *none = Py_None;
-  Py_INCREF(none);
-  return none;
-}
-
-/* SwigPyClientData */
-
-typedef struct {
-  PyObject *klass;
-  PyObject *newraw;
-  PyObject *newargs;
-  PyObject *destroy;
-  int delargs;
-  int implicitconv;
-  PyTypeObject *pytype;
-} SwigPyClientData;
-
-SWIGRUNTIMEINLINE int 
-SWIG_Python_CheckImplicit(swig_type_info *ty)
-{
-  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
-  return data ? data->implicitconv : 0;
-}
-
-SWIGRUNTIMEINLINE PyObject *
-SWIG_Python_ExceptionType(swig_type_info *desc) {
-  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
-  PyObject *klass = data ? data->klass : 0;
-  return (klass ? klass : PyExc_RuntimeError);
-}
-
-
-SWIGRUNTIME SwigPyClientData * 
-SwigPyClientData_New(PyObject* obj)
-{
-  if (!obj) {
-    return 0;
-  } else {
-    SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
-    /* the klass element */
-    data->klass = obj;
-    Py_INCREF(data->klass);
-    /* the newraw method and newargs arguments used to create a new raw instance */
-    if (PyClass_Check(obj)) {
-      data->newraw = 0;
-      data->newargs = obj;
-      Py_INCREF(obj);
-    } else {
-#if (PY_VERSION_HEX < 0x02020000)
-      data->newraw = 0;
-#else
-      data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
-#endif
-      if (data->newraw) {
-	Py_INCREF(data->newraw);
-	data->newargs = PyTuple_New(1);
-	PyTuple_SetItem(data->newargs, 0, obj);
-      } else {
-	data->newargs = obj;
-      }
-      Py_INCREF(data->newargs);
-    }
-    /* the destroy method, aka as the C++ delete method */
-    data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
-    if (PyErr_Occurred()) {
-      PyErr_Clear();
-      data->destroy = 0;
-    }
-    if (data->destroy) {
-      int flags;
-      Py_INCREF(data->destroy);
-      flags = PyCFunction_GET_FLAGS(data->destroy);
-#ifdef METH_O
-      data->delargs = !(flags & (METH_O));
-#else
-      data->delargs = 0;
-#endif
-    } else {
-      data->delargs = 0;
-    }
-    data->implicitconv = 0;
-    data->pytype = 0;
-    return data;
-  }
-}
-
-SWIGRUNTIME void 
-SwigPyClientData_Del(SwigPyClientData *data) {
-  Py_XDECREF(data->newraw);
-  Py_XDECREF(data->newargs);
-  Py_XDECREF(data->destroy);
-}
-
-/* =============== SwigPyObject =====================*/
-
-typedef struct {
-  PyObject_HEAD
-  void *ptr;
-  swig_type_info *ty;
-  int own;
-  PyObject *next;
-#ifdef SWIGPYTHON_BUILTIN
-  PyObject *dict;
-#endif
-} SwigPyObject;
-
-SWIGRUNTIME PyObject *
-SwigPyObject_long(SwigPyObject *v)
-{
-  return PyLong_FromVoidPtr(v->ptr);
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_format(const char* fmt, SwigPyObject *v)
-{
-  PyObject *res = NULL;
-  PyObject *args = PyTuple_New(1);
-  if (args) {
-    if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
-      PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
-      if (ofmt) {
-#if PY_VERSION_HEX >= 0x03000000
-	res = PyUnicode_Format(ofmt,args);
-#else
-	res = PyString_Format(ofmt,args);
-#endif
-	Py_DECREF(ofmt);
-      }
-      Py_DECREF(args);
-    }
-  }
-  return res;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_oct(SwigPyObject *v)
-{
-  return SwigPyObject_format("%o",v);
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_hex(SwigPyObject *v)
-{
-  return SwigPyObject_format("%x",v);
-}
-
-SWIGRUNTIME PyObject *
-#ifdef METH_NOARGS
-SwigPyObject_repr(SwigPyObject *v)
-#else
-SwigPyObject_repr(SwigPyObject *v, PyObject *args)
-#endif
-{
-  const char *name = SWIG_TypePrettyName(v->ty);
-  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
-  if (v->next) {
-# ifdef METH_NOARGS
-    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
-# else
-    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
-# endif
-# if PY_VERSION_HEX >= 0x03000000
-    PyObject *joined = PyUnicode_Concat(repr, nrep);
-    Py_DecRef(repr);
-    Py_DecRef(nrep);
-    repr = joined;
-# else
-    PyString_ConcatAndDel(&repr,nrep);
-# endif
-  }
-  return repr;  
-}
-
-SWIGRUNTIME int
-SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
-{
-  char *str;
-#ifdef METH_NOARGS
-  PyObject *repr = SwigPyObject_repr(v);
-#else
-  PyObject *repr = SwigPyObject_repr(v, NULL);
-#endif
-  if (repr) {
-    str = SWIG_Python_str_AsChar(repr); 
-    fputs(str, fp);
-    SWIG_Python_str_DelForPy3(str);
-    Py_DECREF(repr);
-    return 0; 
-  } else {
-    return 1; 
-  }
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_str(SwigPyObject *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
-    SWIG_Python_str_FromChar(result) : 0;
-}
-
-SWIGRUNTIME int
-SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
-{
-  void *i = v->ptr;
-  void *j = w->ptr;
-  return (i < j) ? -1 : ((i > j) ? 1 : 0);
-}
-
-/* Added for Python 3.x, would it also be useful for Python 2.x? */
-SWIGRUNTIME PyObject*
-SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
-{
-  PyObject* res;
-  if( op != Py_EQ && op != Py_NE ) {
-    Py_INCREF(Py_NotImplemented);
-    return Py_NotImplemented;
-  }
-  res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
-  return res;  
-}
-
-
-SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
-
-#ifdef SWIGPYTHON_BUILTIN
-static swig_type_info *SwigPyObject_stype = 0;
-SWIGRUNTIME PyTypeObject*
-SwigPyObject_type(void) {
-    SwigPyClientData *cd;
-    assert(SwigPyObject_stype);
-    cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
-    assert(cd);
-    assert(cd->pytype);
-    return cd->pytype;
-}
-#else
-SWIGRUNTIME PyTypeObject*
-SwigPyObject_type(void) {
-  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
-  return type;
-}
-#endif
-
-SWIGRUNTIMEINLINE int
-SwigPyObject_Check(PyObject *op) {
-#ifdef SWIGPYTHON_BUILTIN
-  PyTypeObject *target_tp = SwigPyObject_type();
-  if (PyType_IsSubtype(op->ob_type, target_tp))
-    return 1;
-  return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
-#else
-  return (Py_TYPE(op) == SwigPyObject_type())
-    || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
-#endif
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
-
-SWIGRUNTIME void
-SwigPyObject_dealloc(PyObject *v)
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-  PyObject *next = sobj->next;
-  if (sobj->own == SWIG_POINTER_OWN) {
-    swig_type_info *ty = sobj->ty;
-    SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
-    PyObject *destroy = data ? data->destroy : 0;
-    if (destroy) {
-      /* destroy is always a VARARGS method */
-      PyObject *res;
-      if (data->delargs) {
-	/* we need to create a temporary object to carry the destroy operation */
-	PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
-	res = SWIG_Python_CallFunctor(destroy, tmp);
-	Py_DECREF(tmp);
-      } else {
-	PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
-	PyObject *mself = PyCFunction_GET_SELF(destroy);
-	res = ((*meth)(mself, v));
-      }
-      Py_XDECREF(res);
-    } 
-#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
-    else {
-      const char *name = SWIG_TypePrettyName(ty);
-      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
-    }
-#endif
-  } 
-  Py_XDECREF(next);
-  PyObject_DEL(v);
-}
-
-SWIGRUNTIME PyObject* 
-SwigPyObject_append(PyObject* v, PyObject* next)
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-#ifndef METH_O
-  PyObject *tmp = 0;
-  if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
-  next = tmp;
-#endif
-  if (!SwigPyObject_Check(next)) {
-    return NULL;
-  }
-  sobj->next = next;
-  Py_INCREF(next);
-  return SWIG_Py_Void();
-}
-
-SWIGRUNTIME PyObject* 
-#ifdef METH_NOARGS
-SwigPyObject_next(PyObject* v)
-#else
-SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *) v;
-  if (sobj->next) {    
-    Py_INCREF(sobj->next);
-    return sobj->next;
-  } else {
-    return SWIG_Py_Void();
-  }
-}
-
-SWIGINTERN PyObject*
-#ifdef METH_NOARGS
-SwigPyObject_disown(PyObject *v)
-#else
-SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *)v;
-  sobj->own = 0;
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject*
-#ifdef METH_NOARGS
-SwigPyObject_acquire(PyObject *v)
-#else
-SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
-#endif
-{
-  SwigPyObject *sobj = (SwigPyObject *)v;
-  sobj->own = SWIG_POINTER_OWN;
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject*
-SwigPyObject_own(PyObject *v, PyObject *args)
-{
-  PyObject *val = 0;
-#if (PY_VERSION_HEX < 0x02020000)
-  if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
-#elif (PY_VERSION_HEX < 0x02050000)
-  if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) 
-#else
-  if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) 
-#endif
-    {
-      return NULL;
-    } 
-  else
-    {
-      SwigPyObject *sobj = (SwigPyObject *)v;
-      PyObject *obj = PyBool_FromLong(sobj->own);
-      if (val) {
-#ifdef METH_NOARGS
-	if (PyObject_IsTrue(val)) {
-	  SwigPyObject_acquire(v);
-	} else {
-	  SwigPyObject_disown(v);
-	}
-#else
-	if (PyObject_IsTrue(val)) {
-	  SwigPyObject_acquire(v,args);
-	} else {
-	  SwigPyObject_disown(v,args);
-	}
-#endif
-      } 
-      return obj;
-    }
-}
-
-#ifdef METH_O
-static PyMethodDef
-swigobject_methods[] = {
-  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_NOARGS,  (char *)"releases ownership of the pointer"},
-  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS,  (char *)"aquires ownership of the pointer"},
-  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
-  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_O,       (char *)"appends another 'this' object"},
-  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_NOARGS,  (char *)"returns the next 'this' object"},
-  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,    METH_NOARGS,  (char *)"returns object representation"},
-  {0, 0, 0, 0}  
-};
-#else
-static PyMethodDef
-swigobject_methods[] = {
-  {(char *)"disown",  (PyCFunction)SwigPyObject_disown,  METH_VARARGS,  (char *)"releases ownership of the pointer"},
-  {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS,  (char *)"aquires ownership of the pointer"},
-  {(char *)"own",     (PyCFunction)SwigPyObject_own,     METH_VARARGS,  (char *)"returns/sets ownership of the pointer"},
-  {(char *)"append",  (PyCFunction)SwigPyObject_append,  METH_VARARGS,  (char *)"appends another 'this' object"},
-  {(char *)"next",    (PyCFunction)SwigPyObject_next,    METH_VARARGS,  (char *)"returns the next 'this' object"},
-  {(char *)"__repr__",(PyCFunction)SwigPyObject_repr,   METH_VARARGS,  (char *)"returns object representation"},
-  {0, 0, 0, 0}  
-};
-#endif
-
-#if PY_VERSION_HEX < 0x02020000
-SWIGINTERN PyObject *
-SwigPyObject_getattr(SwigPyObject *sobj,char *name)
-{
-  return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
-}
-#endif
-
-SWIGRUNTIME PyTypeObject*
-SwigPyObject_TypeOnce(void) {
-  static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
-
-  static PyNumberMethods SwigPyObject_as_number = {
-    (binaryfunc)0, /*nb_add*/
-    (binaryfunc)0, /*nb_subtract*/
-    (binaryfunc)0, /*nb_multiply*/
-    /* nb_divide removed in Python 3 */
-#if PY_VERSION_HEX < 0x03000000
-    (binaryfunc)0, /*nb_divide*/
-#endif
-    (binaryfunc)0, /*nb_remainder*/
-    (binaryfunc)0, /*nb_divmod*/
-    (ternaryfunc)0,/*nb_power*/
-    (unaryfunc)0,  /*nb_negative*/
-    (unaryfunc)0,  /*nb_positive*/
-    (unaryfunc)0,  /*nb_absolute*/
-    (inquiry)0,    /*nb_nonzero*/
-    0,		   /*nb_invert*/
-    0,		   /*nb_lshift*/
-    0,		   /*nb_rshift*/
-    0,		   /*nb_and*/
-    0,		   /*nb_xor*/
-    0,		   /*nb_or*/
-#if PY_VERSION_HEX < 0x03000000
-    0,   /*nb_coerce*/
-#endif
-    (unaryfunc)SwigPyObject_long, /*nb_int*/
-#if PY_VERSION_HEX < 0x03000000
-    (unaryfunc)SwigPyObject_long, /*nb_long*/
-#else
-    0, /*nb_reserved*/
-#endif
-    (unaryfunc)0,                 /*nb_float*/
-#if PY_VERSION_HEX < 0x03000000
-    (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
-    (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
-#endif
-#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
-#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
-#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
-    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
-#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
-    0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
-#endif
-  };
-
-  static PyTypeObject swigpyobject_type;
-  static int type_init = 0;
-  if (!type_init) {
-    const PyTypeObject tmp = {
-      /* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-      PyVarObject_HEAD_INIT(NULL, 0)
-#else
-      PyObject_HEAD_INIT(NULL)
-      0,                                    /* ob_size */
-#endif
-      (char *)"SwigPyObject",               /* tp_name */
-      sizeof(SwigPyObject),                 /* tp_basicsize */
-      0,                                    /* tp_itemsize */
-      (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
-      (printfunc)SwigPyObject_print,        /* tp_print */
-#if PY_VERSION_HEX < 0x02020000
-      (getattrfunc)SwigPyObject_getattr,    /* tp_getattr */
-#else
-      (getattrfunc)0,                       /* tp_getattr */
-#endif
-      (setattrfunc)0,                       /* tp_setattr */
-#if PY_VERSION_HEX >= 0x03000000
-    0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
-#else
-      (cmpfunc)SwigPyObject_compare,        /* tp_compare */
-#endif
-      (reprfunc)SwigPyObject_repr,          /* tp_repr */
-      &SwigPyObject_as_number,              /* tp_as_number */
-      0,                                    /* tp_as_sequence */
-      0,                                    /* tp_as_mapping */
-      (hashfunc)0,                          /* tp_hash */
-      (ternaryfunc)0,                       /* tp_call */
-      (reprfunc)SwigPyObject_str,           /* tp_str */
-      PyObject_GenericGetAttr,              /* tp_getattro */
-      0,                                    /* tp_setattro */
-      0,                                    /* tp_as_buffer */
-      Py_TPFLAGS_DEFAULT,                   /* tp_flags */
-      swigobject_doc,                       /* tp_doc */
-      0,                                    /* tp_traverse */
-      0,                                    /* tp_clear */
-      (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
-      0,                                    /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-      0,                                    /* tp_iter */
-      0,                                    /* tp_iternext */
-      swigobject_methods,                   /* tp_methods */
-      0,                                    /* tp_members */
-      0,                                    /* tp_getset */
-      0,                                    /* tp_base */
-      0,                                    /* tp_dict */
-      0,                                    /* tp_descr_get */
-      0,                                    /* tp_descr_set */
-      0,                                    /* tp_dictoffset */
-      0,                                    /* tp_init */
-      0,                                    /* tp_alloc */
-      0,                                    /* tp_new */
-      0,                                    /* tp_free */
-      0,                                    /* tp_is_gc */
-      0,                                    /* tp_bases */
-      0,                                    /* tp_mro */
-      0,                                    /* tp_cache */
-      0,                                    /* tp_subclasses */
-      0,                                    /* tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-      0,                                    /* tp_del */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
-      0,                                    /* tp_version */
-#endif
-#ifdef COUNT_ALLOCS
-      0,0,0,0                               /* tp_alloc -> tp_next */
-#endif
-    };
-    swigpyobject_type = tmp;
-    type_init = 1;
-#if PY_VERSION_HEX < 0x02020000
-    swigpyobject_type.ob_type = &PyType_Type;
-#else
-    if (PyType_Ready(&swigpyobject_type) < 0)
-      return NULL;
-#endif
-  }
-  return &swigpyobject_type;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
-{
-  SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
-  if (sobj) {
-    sobj->ptr  = ptr;
-    sobj->ty   = ty;
-    sobj->own  = own;
-    sobj->next = 0;
-  }
-  return (PyObject *)sobj;
-}
-
-/* -----------------------------------------------------------------------------
- * Implements a simple Swig Packed type, and use it instead of string
- * ----------------------------------------------------------------------------- */
-
-typedef struct {
-  PyObject_HEAD
-  void *pack;
-  swig_type_info *ty;
-  size_t size;
-} SwigPyPacked;
-
-SWIGRUNTIME int
-SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
-{
-  char result[SWIG_BUFFER_SIZE];
-  fputs("<Swig Packed ", fp); 
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
-    fputs("at ", fp); 
-    fputs(result, fp); 
-  }
-  fputs(v->ty->name,fp); 
-  fputs(">", fp);
-  return 0; 
-}
-  
-SWIGRUNTIME PyObject *
-SwigPyPacked_repr(SwigPyPacked *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
-    return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
-  } else {
-    return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
-  }  
-}
-
-SWIGRUNTIME PyObject *
-SwigPyPacked_str(SwigPyPacked *v)
-{
-  char result[SWIG_BUFFER_SIZE];
-  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
-    return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
-  } else {
-    return SWIG_Python_str_FromChar(v->ty->name);
-  }  
-}
-
-SWIGRUNTIME int
-SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
-{
-  size_t i = v->size;
-  size_t j = w->size;
-  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
-  return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
-}
-
-SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
-
-SWIGRUNTIME PyTypeObject*
-SwigPyPacked_type(void) {
-  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
-  return type;
-}
-
-SWIGRUNTIMEINLINE int
-SwigPyPacked_Check(PyObject *op) {
-  return ((op)->ob_type == SwigPyPacked_TypeOnce()) 
-    || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
-}
-
-SWIGRUNTIME void
-SwigPyPacked_dealloc(PyObject *v)
-{
-  if (SwigPyPacked_Check(v)) {
-    SwigPyPacked *sobj = (SwigPyPacked *) v;
-    free(sobj->pack);
-  }
-  PyObject_DEL(v);
-}
-
-SWIGRUNTIME PyTypeObject*
-SwigPyPacked_TypeOnce(void) {
-  static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
-  static PyTypeObject swigpypacked_type;
-  static int type_init = 0;
-  if (!type_init) {
-    const PyTypeObject tmp = {
-      /* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX>=0x03000000
-      PyVarObject_HEAD_INIT(NULL, 0)
-#else
-      PyObject_HEAD_INIT(NULL)
-      0,                                    /* ob_size */
-#endif
-      (char *)"SwigPyPacked",               /* tp_name */
-      sizeof(SwigPyPacked),                 /* tp_basicsize */
-      0,                                    /* tp_itemsize */
-      (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
-      (printfunc)SwigPyPacked_print,        /* tp_print */
-      (getattrfunc)0,                       /* tp_getattr */
-      (setattrfunc)0,                       /* tp_setattr */
-#if PY_VERSION_HEX>=0x03000000
-      0, /* tp_reserved in 3.0.1 */
-#else
-      (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
-#endif
-      (reprfunc)SwigPyPacked_repr,          /* tp_repr */
-      0,                                    /* tp_as_number */
-      0,                                    /* tp_as_sequence */
-      0,                                    /* tp_as_mapping */
-      (hashfunc)0,                          /* tp_hash */
-      (ternaryfunc)0,                       /* tp_call */
-      (reprfunc)SwigPyPacked_str,           /* tp_str */
-      PyObject_GenericGetAttr,              /* tp_getattro */
-      0,                                    /* tp_setattro */
-      0,                                    /* tp_as_buffer */
-      Py_TPFLAGS_DEFAULT,                   /* tp_flags */
-      swigpacked_doc,                       /* tp_doc */
-      0,                                    /* tp_traverse */
-      0,                                    /* tp_clear */
-      0,                                    /* tp_richcompare */
-      0,                                    /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-      0,                                    /* tp_iter */
-      0,                                    /* tp_iternext */
-      0,                                    /* tp_methods */
-      0,                                    /* tp_members */
-      0,                                    /* tp_getset */
-      0,                                    /* tp_base */
-      0,                                    /* tp_dict */
-      0,                                    /* tp_descr_get */
-      0,                                    /* tp_descr_set */
-      0,                                    /* tp_dictoffset */
-      0,                                    /* tp_init */
-      0,                                    /* tp_alloc */
-      0,                                    /* tp_new */
-      0,                                    /* tp_free */
-      0,                                    /* tp_is_gc */
-      0,                                    /* tp_bases */
-      0,                                    /* tp_mro */
-      0,                                    /* tp_cache */
-      0,                                    /* tp_subclasses */
-      0,                                    /* tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-      0,                                    /* tp_del */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
-      0,                                    /* tp_version */
-#endif
-#ifdef COUNT_ALLOCS
-      0,0,0,0                               /* tp_alloc -> tp_next */
-#endif
-    };
-    swigpypacked_type = tmp;
-    type_init = 1;
-#if PY_VERSION_HEX < 0x02020000
-    swigpypacked_type.ob_type = &PyType_Type;
-#else
-    if (PyType_Ready(&swigpypacked_type) < 0)
-      return NULL;
-#endif
-  }
-  return &swigpypacked_type;
-}
-
-SWIGRUNTIME PyObject *
-SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
-{
-  SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
-  if (sobj) {
-    void *pack = malloc(size);
-    if (pack) {
-      memcpy(pack, ptr, size);
-      sobj->pack = pack;
-      sobj->ty   = ty;
-      sobj->size = size;
-    } else {
-      PyObject_DEL((PyObject *) sobj);
-      sobj = 0;
-    }
-  }
-  return (PyObject *) sobj;
-}
-
-SWIGRUNTIME swig_type_info *
-SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
-{
-  if (SwigPyPacked_Check(obj)) {
-    SwigPyPacked *sobj = (SwigPyPacked *)obj;
-    if (sobj->size != size) return 0;
-    memcpy(ptr, sobj->pack, size);
-    return sobj->ty;
-  } else {
-    return 0;
-  }
-}
-
-/* -----------------------------------------------------------------------------
- * pointers/data manipulation
- * ----------------------------------------------------------------------------- */
-
-SWIGRUNTIMEINLINE PyObject *
-_SWIG_This(void)
-{
-    return SWIG_Python_str_FromChar("this");
-}
-
-static PyObject *swig_this = NULL;
-
-SWIGRUNTIME PyObject *
-SWIG_This(void)
-{
-  if (swig_this == NULL)
-    swig_this = _SWIG_This();
-  return swig_this;
-}
-
-/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
-
-/* TODO: I don't know how to implement the fast getset in Python 3 right now */
-#if PY_VERSION_HEX>=0x03000000
-#define SWIG_PYTHON_SLOW_GETSET_THIS 
-#endif
-
-SWIGRUNTIME SwigPyObject *
-SWIG_Python_GetSwigThis(PyObject *pyobj) 
-{
-  PyObject *obj;
-
-  if (SwigPyObject_Check(pyobj))
-    return (SwigPyObject *) pyobj;
-
-#ifdef SWIGPYTHON_BUILTIN
-  (void)obj;
-# ifdef PyWeakref_CheckProxy
-  if (PyWeakref_CheckProxy(pyobj)) {
-    pyobj = PyWeakref_GET_OBJECT(pyobj);
-    if (pyobj && SwigPyObject_Check(pyobj))
-      return (SwigPyObject*) pyobj;
-  }
-# endif
-  return NULL;
-#else
-
-  obj = 0;
-
-#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
-  if (PyInstance_Check(pyobj)) {
-    obj = _PyInstance_Lookup(pyobj, SWIG_This());      
-  } else {
-    PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
-    if (dictptr != NULL) {
-      PyObject *dict = *dictptr;
-      obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
-    } else {
-#ifdef PyWeakref_CheckProxy
-      if (PyWeakref_CheckProxy(pyobj)) {
-	PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
-	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
-      }
-#endif
-      obj = PyObject_GetAttr(pyobj,SWIG_This());
-      if (obj) {
-	Py_DECREF(obj);
-      } else {
-	if (PyErr_Occurred()) PyErr_Clear();
-	return 0;
-      }
-    }
-  }
-#else
-  obj = PyObject_GetAttr(pyobj,SWIG_This());
-  if (obj) {
-    Py_DECREF(obj);
-  } else {
-    if (PyErr_Occurred()) PyErr_Clear();
-    return 0;
-  }
-#endif
-  if (obj && !SwigPyObject_Check(obj)) {
-    /* a PyObject is called 'this', try to get the 'real this'
-       SwigPyObject from it */ 
-    return SWIG_Python_GetSwigThis(obj);
-  }
-  return (SwigPyObject *)obj;
-#endif
-}
-
-/* Acquire a pointer value */
-
-SWIGRUNTIME int
-SWIG_Python_AcquirePtr(PyObject *obj, int own) {
-  if (own == SWIG_POINTER_OWN) {
-    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
-    if (sobj) {
-      int oldown = sobj->own;
-      sobj->own = own;
-      return oldown;
-    }
-  }
-  return 0;
-}
-
-/* Convert a pointer value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
-  int res;
-  SwigPyObject *sobj;
-
-  if (!obj)
-    return SWIG_ERROR;
-  if (obj == Py_None) {
-    if (ptr)
-      *ptr = 0;
-    return SWIG_OK;
-  }
-
-  res = SWIG_ERROR;
-
-  sobj = SWIG_Python_GetSwigThis(obj);
-  if (own)
-    *own = 0;
-  while (sobj) {
-    void *vptr = sobj->ptr;
-    if (ty) {
-      swig_type_info *to = sobj->ty;
-      if (to == ty) {
-        /* no type cast needed */
-        if (ptr) *ptr = vptr;
-        break;
-      } else {
-        swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
-        if (!tc) {
-          sobj = (SwigPyObject *)sobj->next;
-        } else {
-          if (ptr) {
-            int newmemory = 0;
-            *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
-            if (newmemory == SWIG_CAST_NEW_MEMORY) {
-              assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
-              if (own)
-                *own = *own | SWIG_CAST_NEW_MEMORY;
-            }
-          }
-          break;
-        }
-      }
-    } else {
-      if (ptr) *ptr = vptr;
-      break;
-    }
-  }
-  if (sobj) {
-    if (own)
-      *own = *own | sobj->own;
-    if (flags & SWIG_POINTER_DISOWN) {
-      sobj->own = 0;
-    }
-    res = SWIG_OK;
-  } else {
-    if (flags & SWIG_POINTER_IMPLICIT_CONV) {
-      SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
-      if (data && !data->implicitconv) {
-        PyObject *klass = data->klass;
-        if (klass) {
-          PyObject *impconv;
-          data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
-          impconv = SWIG_Python_CallFunctor(klass, obj);
-          data->implicitconv = 0;
-          if (PyErr_Occurred()) {
-            PyErr_Clear();
-            impconv = 0;
-          }
-          if (impconv) {
-            SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
-            if (iobj) {
-              void *vptr;
-              res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
-              if (SWIG_IsOK(res)) {
-                if (ptr) {
-                  *ptr = vptr;
-                  /* transfer the ownership to 'ptr' */
-                  iobj->own = 0;
-                  res = SWIG_AddCast(res);
-                  res = SWIG_AddNewMask(res);
-                } else {
-                  res = SWIG_AddCast(res);		    
-                }
-              }
-            }
-            Py_DECREF(impconv);
-          }
-        }
-      }
-    }
-  }
-  return res;
-}
-
-/* Convert a function ptr value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
-  if (!PyCFunction_Check(obj)) {
-    return SWIG_ConvertPtr(obj, ptr, ty, 0);
-  } else {
-    void *vptr = 0;
-    
-    /* here we get the method pointer for callbacks */
-    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
-    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
-    if (desc)
-      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
-    if (!desc) 
-      return SWIG_ERROR;
-    if (ty) {
-      swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
-      if (tc) {
-        int newmemory = 0;
-        *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
-        assert(!newmemory); /* newmemory handling not yet implemented */
-      } else {
-        return SWIG_ERROR;
-      }
-    } else {
-      *ptr = vptr;
-    }
-    return SWIG_OK;
-  }
-}
-
-/* Convert a packed value value */
-
-SWIGRUNTIME int
-SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
-  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
-  if (!to) return SWIG_ERROR;
-  if (ty) {
-    if (to != ty) {
-      /* check type cast? */
-      swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
-      if (!tc) return SWIG_ERROR;
-    }
-  }
-  return SWIG_OK;
-}  
-
-/* -----------------------------------------------------------------------------
- * Create a new pointer object
- * ----------------------------------------------------------------------------- */
-
-/*
-  Create a new instance object, without calling __init__, and set the
-  'this' attribute.
-*/
-
-SWIGRUNTIME PyObject* 
-SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
-{
-#if (PY_VERSION_HEX >= 0x02020000)
-  PyObject *inst = 0;
-  PyObject *newraw = data->newraw;
-  if (newraw) {
-    inst = PyObject_Call(newraw, data->newargs, NULL);
-    if (inst) {
-#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
-      PyObject **dictptr = _PyObject_GetDictPtr(inst);
-      if (dictptr != NULL) {
-	PyObject *dict = *dictptr;
-	if (dict == NULL) {
-	  dict = PyDict_New();
-	  *dictptr = dict;
-	  PyDict_SetItem(dict, SWIG_This(), swig_this);
-	}
-      }
-#else
-      PyObject *key = SWIG_This();
-      PyObject_SetAttr(inst, key, swig_this);
-#endif
-    }
-  } else {
-#if PY_VERSION_HEX >= 0x03000000
-    inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
-    PyObject_SetAttr(inst, SWIG_This(), swig_this);
-    Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
-#else
-    PyObject *dict = PyDict_New();
-    PyDict_SetItem(dict, SWIG_This(), swig_this);
-    inst = PyInstance_NewRaw(data->newargs, dict);
-    Py_DECREF(dict);
-#endif
-  }
-  return inst;
-#else
-#if (PY_VERSION_HEX >= 0x02010000)
-  PyObject *inst;
-  PyObject *dict = PyDict_New();
-  PyDict_SetItem(dict, SWIG_This(), swig_this);
-  inst = PyInstance_NewRaw(data->newargs, dict);
-  Py_DECREF(dict);
-  return (PyObject *) inst;
-#else
-  PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
-  if (inst == NULL) {
-    return NULL;
-  }
-  inst->in_class = (PyClassObject *)data->newargs;
-  Py_INCREF(inst->in_class);
-  inst->in_dict = PyDict_New();
-  if (inst->in_dict == NULL) {
-    Py_DECREF(inst);
-    return NULL;
-  }
-#ifdef Py_TPFLAGS_HAVE_WEAKREFS
-  inst->in_weakreflist = NULL;
-#endif
-#ifdef Py_TPFLAGS_GC
-  PyObject_GC_Init(inst);
-#endif
-  PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
-  return (PyObject *) inst;
-#endif
-#endif
-}
-
-SWIGRUNTIME void
-SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
-{
- PyObject *dict;
-#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
- PyObject **dictptr = _PyObject_GetDictPtr(inst);
- if (dictptr != NULL) {
-   dict = *dictptr;
-   if (dict == NULL) {
-     dict = PyDict_New();
-     *dictptr = dict;
-   }
-   PyDict_SetItem(dict, SWIG_This(), swig_this);
-   return;
- }
-#endif
- dict = PyObject_GetAttrString(inst, (char*)"__dict__");
- PyDict_SetItem(dict, SWIG_This(), swig_this);
- Py_DECREF(dict);
-} 
-
-
-SWIGINTERN PyObject *
-SWIG_Python_InitShadowInstance(PyObject *args) {
-  PyObject *obj[2];
-  if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
-    return NULL;
-  } else {
-    SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
-    if (sthis) {
-      SwigPyObject_append((PyObject*) sthis, obj[1]);
-    } else {
-      SWIG_Python_SetSwigThis(obj[0], obj[1]);
-    }
-    return SWIG_Py_Void();
-  }
-}
-
-/* Create a new pointer object */
-
-SWIGRUNTIME PyObject *
-SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
-  SwigPyClientData *clientdata;
-  PyObject * robj;
-  int own;
-
-  if (!ptr)
-    return SWIG_Py_Void();
-
-  clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
-  own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
-  if (clientdata && clientdata->pytype) {
-    SwigPyObject *newobj;
-    if (flags & SWIG_BUILTIN_TP_INIT) {
-      newobj = (SwigPyObject*) self;
-      if (newobj->ptr) {
-        PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
-        while (newobj->next)
-	  newobj = (SwigPyObject *) newobj->next;
-        newobj->next = next_self;
-        newobj = (SwigPyObject *)next_self;
-      }
-    } else {
-      newobj = PyObject_New(SwigPyObject, clientdata->pytype);
-    }
-    if (newobj) {
-      newobj->ptr = ptr;
-      newobj->ty = type;
-      newobj->own = own;
-      newobj->next = 0;
-#ifdef SWIGPYTHON_BUILTIN
-      newobj->dict = 0;
-#endif
-      return (PyObject*) newobj;
-    }
-    return SWIG_Py_Void();
-  }
-
-  assert(!(flags & SWIG_BUILTIN_TP_INIT));
-
-  robj = SwigPyObject_New(ptr, type, own);
-  if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
-    PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
-    if (inst) {
-      Py_DECREF(robj);
-      robj = inst;
-    }
-  }
-  return robj;
-}
-
-/* Create a new packed object */
-
-SWIGRUNTIMEINLINE PyObject *
-SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
-  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
-}
-
-/* -----------------------------------------------------------------------------*
- *  Get type list 
- * -----------------------------------------------------------------------------*/
-
-#ifdef SWIG_LINK_RUNTIME
-void *SWIG_ReturnGlobalTypeList(void *);
-#endif
-
-SWIGRUNTIME swig_module_info *
-SWIG_Python_GetModule(void) {
-  static void *type_pointer = (void *)0;
-  /* first check if module already created */
-  if (!type_pointer) {
-#ifdef SWIG_LINK_RUNTIME
-    type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
-#else
-# ifdef SWIGPY_USE_CAPSULE
-    type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
-# else
-    type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
-				    (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
-# endif
-    if (PyErr_Occurred()) {
-      PyErr_Clear();
-      type_pointer = (void *)0;
-    }
-#endif
-  }
-  return (swig_module_info *) type_pointer;
-}
-
-#if PY_MAJOR_VERSION < 2
-/* PyModule_AddObject function was introduced in Python 2.0.  The following function
-   is copied out of Python/modsupport.c in python version 2.3.4 */
-SWIGINTERN int
-PyModule_AddObject(PyObject *m, char *name, PyObject *o)
-{
-  PyObject *dict;
-  if (!PyModule_Check(m)) {
-    PyErr_SetString(PyExc_TypeError,
-		    "PyModule_AddObject() needs module as first arg");
-    return SWIG_ERROR;
-  }
-  if (!o) {
-    PyErr_SetString(PyExc_TypeError,
-		    "PyModule_AddObject() needs non-NULL value");
-    return SWIG_ERROR;
-  }
-  
-  dict = PyModule_GetDict(m);
-  if (dict == NULL) {
-    /* Internal error -- modules must have a dict! */
-    PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
-		 PyModule_GetName(m));
-    return SWIG_ERROR;
-  }
-  if (PyDict_SetItemString(dict, name, o))
-    return SWIG_ERROR;
-  Py_DECREF(o);
-  return SWIG_OK;
-}
-#endif
-
-SWIGRUNTIME void
-#ifdef SWIGPY_USE_CAPSULE
-SWIG_Python_DestroyModule(PyObject *obj)
-#else
-SWIG_Python_DestroyModule(void *vptr)
-#endif
-{
-#ifdef SWIGPY_USE_CAPSULE
-  swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
-#else
-  swig_module_info *swig_module = (swig_module_info *) vptr;
-#endif
-  swig_type_info **types = swig_module->types;
-  size_t i;
-  for (i =0; i < swig_module->size; ++i) {
-    swig_type_info *ty = types[i];
-    if (ty->owndata) {
-      SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
-      if (data) SwigPyClientData_Del(data);
-    }
-  }
-  Py_DECREF(SWIG_This());
-  swig_this = NULL;
-}
-
-SWIGRUNTIME void
-SWIG_Python_SetModule(swig_module_info *swig_module) {
-#if PY_VERSION_HEX >= 0x03000000
- /* Add a dummy module object into sys.modules */
-  PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
-#else
-  static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
-  PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
-#endif
-#ifdef SWIGPY_USE_CAPSULE
-  PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
-  if (pointer && module) {
-    PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
-  } else {
-    Py_XDECREF(pointer);
-  }
-#else
-  PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
-  if (pointer && module) {
-    PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
-  } else {
-    Py_XDECREF(pointer);
-  }
-#endif
-}
-
-/* The python cached type query */
-SWIGRUNTIME PyObject *
-SWIG_Python_TypeCache(void) {
-  static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
-  return cache;
-}
-
-SWIGRUNTIME swig_type_info *
-SWIG_Python_TypeQuery(const char *type)
-{
-  PyObject *cache = SWIG_Python_TypeCache();
-  PyObject *key = SWIG_Python_str_FromChar(type); 
-  PyObject *obj = PyDict_GetItem(cache, key);
-  swig_type_info *descriptor;
-  if (obj) {
-#ifdef SWIGPY_USE_CAPSULE
-    descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
-#else
-    descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
-#endif
-  } else {
-    swig_module_info *swig_module = SWIG_Python_GetModule();
-    descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
-    if (descriptor) {
-#ifdef SWIGPY_USE_CAPSULE
-      obj = PyCapsule_New((void*) descriptor, NULL, NULL);
-#else
-      obj = PyCObject_FromVoidPtr(descriptor, NULL);
-#endif
-      PyDict_SetItem(cache, key, obj);
-      Py_DECREF(obj);
-    }
-  }
-  Py_DECREF(key);
-  return descriptor;
-}
-
-/* 
-   For backward compatibility only
-*/
-#define SWIG_POINTER_EXCEPTION  0
-#define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
-#define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)
-
-SWIGRUNTIME int
-SWIG_Python_AddErrMesg(const char* mesg, int infront)
-{  
-  if (PyErr_Occurred()) {
-    PyObject *type = 0;
-    PyObject *value = 0;
-    PyObject *traceback = 0;
-    PyErr_Fetch(&type, &value, &traceback);
-    if (value) {
-      char *tmp;
-      PyObject *old_str = PyObject_Str(value);
-      Py_XINCREF(type);
-      PyErr_Clear();
-      if (infront) {
-	PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
-      } else {
-	PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
-      }
-      SWIG_Python_str_DelForPy3(tmp);
-      Py_DECREF(old_str);
-    }
-    return 1;
-  } else {
-    return 0;
-  }
-}
-  
-SWIGRUNTIME int
-SWIG_Python_ArgFail(int argnum)
-{
-  if (PyErr_Occurred()) {
-    /* add information about failing argument */
-    char mesg[256];
-    PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
-    return SWIG_Python_AddErrMesg(mesg, 1);
-  } else {
-    return 0;
-  }
-}
-
-SWIGRUNTIMEINLINE const char *
-SwigPyObject_GetDesc(PyObject *self)
-{
-  SwigPyObject *v = (SwigPyObject *)self;
-  swig_type_info *ty = v ? v->ty : 0;
-  return ty ? ty->str : "";
-}
-
-SWIGRUNTIME void
-SWIG_Python_TypeError(const char *type, PyObject *obj)
-{
-  if (type) {
-#if defined(SWIG_COBJECT_TYPES)
-    if (obj && SwigPyObject_Check(obj)) {
-      const char *otype = (const char *) SwigPyObject_GetDesc(obj);
-      if (otype) {
-	PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
-		     type, otype);
-	return;
-      }
-    } else 
-#endif      
-    {
-      const char *otype = (obj ? obj->ob_type->tp_name : 0); 
-      if (otype) {
-	PyObject *str = PyObject_Str(obj);
-	const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
-	if (cstr) {
-	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
-		       type, otype, cstr);
-          SWIG_Python_str_DelForPy3(cstr);
-	} else {
-	  PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
-		       type, otype);
-	}
-	Py_XDECREF(str);
-	return;
-      }
-    }   
-    PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
-  } else {
-    PyErr_Format(PyExc_TypeError, "unexpected type is received");
-  }
-}
-
-
-/* Convert a pointer value, signal an exception on a type mismatch */
-SWIGRUNTIME void *
-SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
-  void *result;
-  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
-    PyErr_Clear();
-#if SWIG_POINTER_EXCEPTION
-    if (flags) {
-      SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
-      SWIG_Python_ArgFail(argnum);
-    }
-#endif
-  }
-  return result;
-}
-
-#ifdef SWIGPYTHON_BUILTIN
-SWIGRUNTIME int
-SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
-  PyTypeObject *tp = obj->ob_type;
-  PyObject *descr;
-  PyObject *encoded_name;
-  descrsetfunc f;
-  int res;
-
-# ifdef Py_USING_UNICODE
-  if (PyString_Check(name)) {
-    name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
-    if (!name)
-      return -1;
-  } else if (!PyUnicode_Check(name))
-# else
-  if (!PyString_Check(name))
-# endif
-  {
-    PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
-    return -1;
-  } else {
-    Py_INCREF(name);
-  }
-
-  if (!tp->tp_dict) {
-    if (PyType_Ready(tp) < 0)
-      goto done;
-  }
-
-  res = -1;
-  descr = _PyType_Lookup(tp, name);
-  f = NULL;
-  if (descr != NULL)
-    f = descr->ob_type->tp_descr_set;
-  if (!f) {
-    if (PyString_Check(name)) {
-      encoded_name = name;
-      Py_INCREF(name);
-    } else {
-      encoded_name = PyUnicode_AsUTF8String(name);
-    }
-    PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
-    Py_DECREF(encoded_name);
-  } else {
-    res = f(descr, obj, value);
-  }
-  
-  done:
-  Py_DECREF(name);
-  return res;
-}
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-
-
-#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 
-
-#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 
-
-
-
-  #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) 
-
-
-/* -------- TYPES TABLE (BEGIN) -------- */
-
-#define SWIGTYPE_p_DBFFieldType swig_types[0]
-#define SWIGTYPE_p_DBFInfo swig_types[1]
-#define SWIGTYPE_p_FILE swig_types[2]
-#define SWIGTYPE_p_cgiRequestObj swig_types[3]
-#define SWIGTYPE_p_char swig_types[4]
-#define SWIGTYPE_p_classObj swig_types[5]
-#define SWIGTYPE_p_clusterObj swig_types[6]
-#define SWIGTYPE_p_colorObj swig_types[7]
-#define SWIGTYPE_p_debugLevel swig_types[8]
-#define SWIGTYPE_p_double swig_types[9]
-#define SWIGTYPE_p_errorObj swig_types[10]
-#define SWIGTYPE_p_fontSetObj swig_types[11]
-#define SWIGTYPE_p_hashTableObj swig_types[12]
-#define SWIGTYPE_p_imageObj swig_types[13]
-#define SWIGTYPE_p_int swig_types[14]
-#define SWIGTYPE_p_int32_t swig_types[15]
-#define SWIGTYPE_p_intarray swig_types[16]
-#define SWIGTYPE_p_labelCacheMemberObj swig_types[17]
-#define SWIGTYPE_p_labelCacheObj swig_types[18]
-#define SWIGTYPE_p_labelCacheSlotObj swig_types[19]
-#define SWIGTYPE_p_labelLeaderObj swig_types[20]
-#define SWIGTYPE_p_labelObj swig_types[21]
-#define SWIGTYPE_p_labelStyleObj swig_types[22]
-#define SWIGTYPE_p_layerObj swig_types[23]
-#define SWIGTYPE_p_legendObj swig_types[24]
-#define SWIGTYPE_p_lineObj swig_types[25]
-#define SWIGTYPE_p_mapObj swig_types[26]
-#define SWIGTYPE_p_markerCacheMemberObj swig_types[27]
-#define SWIGTYPE_p_outputFormatObj swig_types[28]
-#define SWIGTYPE_p_p_char swig_types[29]
-#define SWIGTYPE_p_pointObj swig_types[30]
-#define SWIGTYPE_p_projectionObj swig_types[31]
-#define SWIGTYPE_p_queryMapObj swig_types[32]
-#define SWIGTYPE_p_rectObj swig_types[33]
-#define SWIGTYPE_p_referenceMapObj swig_types[34]
-#define SWIGTYPE_p_rendererVTableObj swig_types[35]
-#define SWIGTYPE_p_resultCacheObj swig_types[36]
-#define SWIGTYPE_p_resultObj swig_types[37]
-#define SWIGTYPE_p_scaleTokenEntryObj swig_types[38]
-#define SWIGTYPE_p_scaleTokenObj swig_types[39]
-#define SWIGTYPE_p_scalebarObj swig_types[40]
-#define SWIGTYPE_p_shapeObj swig_types[41]
-#define SWIGTYPE_p_shapefileObj swig_types[42]
-#define SWIGTYPE_p_strokeStyleObj swig_types[43]
-#define SWIGTYPE_p_styleObj swig_types[44]
-#define SWIGTYPE_p_symbolObj swig_types[45]
-#define SWIGTYPE_p_symbolSetObj swig_types[46]
-#define SWIGTYPE_p_symbolStyleObj swig_types[47]
-#define SWIGTYPE_p_tileCacheObj swig_types[48]
-#define SWIGTYPE_p_uint32_t swig_types[49]
-#define SWIGTYPE_p_void swig_types[50]
-#define SWIGTYPE_p_webObj swig_types[51]
-static swig_type_info *swig_types[53];
-static swig_module_info swig_module = {swig_types, 52, 0, 0, 0, 0};
-#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
-#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
-
-/* -------- TYPES TABLE (END) -------- */
-
-#if (PY_VERSION_HEX <= 0x02000000)
-# if !defined(SWIG_PYTHON_CLASSIC)
-#  error "This python version requires swig to be run with the '-classic' option"
-# endif
-#endif
-
-/*-----------------------------------------------
-              @(target):= _mapscript.so
-  ------------------------------------------------*/
-#if PY_VERSION_HEX >= 0x03000000
-#  define SWIG_init    PyInit__mapscript
-
-#else
-#  define SWIG_init    init_mapscript
-
-#endif
-#define SWIG_name    "_mapscript"
-
-#define SWIGVERSION 0x020007 
-#define SWIG_VERSION SWIGVERSION
-
-
-#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
-#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
-
-
-#include "../../mapserver.h"
-#include "../../maptemplate.h"
-#include "../../mapogcsld.h"
-#include "../../mapows.h"
-#include "../../cgiutil.h"
-#include "../../mapcopy.h"
-#include "../../maperror.h"
-#include "../../mapprimitive.h"
-#include "../../mapshape.h"
-
-#ifdef SWIGPYTHON
-#include "pygdioctx/pygdioctx.h"
-#endif
-
-
-
-typedef int intarray;
-
-
-SWIGINTERN int
-SWIG_AsVal_double (PyObject *obj, double *val)
-{
-  int res = SWIG_TypeError;
-  if (PyFloat_Check(obj)) {
-    if (val) *val = PyFloat_AsDouble(obj);
-    return SWIG_OK;
-  } else if (PyInt_Check(obj)) {
-    if (val) *val = PyInt_AsLong(obj);
-    return SWIG_OK;
-  } else if (PyLong_Check(obj)) {
-    double v = PyLong_AsDouble(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    double d = PyFloat_AsDouble(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = d;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      long v = PyLong_AsLong(obj);
-      if (!PyErr_Occurred()) {
-	if (val) *val = v;
-	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
-      } else {
-	PyErr_Clear();
-      }
-    }
-  }
-#endif
-  return res;
-}
-
-
-#include <float.h>
-
-
-#include <math.h>
-
-
-SWIGINTERNINLINE int
-SWIG_CanCastAsInteger(double *d, double min, double max) {
-  double x = *d;
-  if ((min <= x && x <= max)) {
-   double fx = floor(x);
-   double cx = ceil(x);
-   double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
-   if ((errno == EDOM) || (errno == ERANGE)) {
-     errno = 0;
-   } else {
-     double summ, reps, diff;
-     if (rd < x) {
-       diff = x - rd;
-     } else if (rd > x) {
-       diff = rd - x;
-     } else {
-       return 1;
-     }
-     summ = rd + x;
-     reps = diff/summ;
-     if (reps < 8*DBL_EPSILON) {
-       *d = rd;
-       return 1;
-     }
-   }
-  }
-  return 0;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) 
-{
-  if (PyInt_Check(obj)) {
-    long v = PyInt_AsLong(obj);
-    if (v >= 0) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      return SWIG_OverflowError;
-    }
-  } else if (PyLong_Check(obj)) {
-    unsigned long v = PyLong_AsUnsignedLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    unsigned long v = PyLong_AsUnsignedLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
-	if (val) *val = (unsigned long)(d);
-	return res;
-      }
-    }
-  }
-#endif
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERNINLINE int
-SWIG_AsVal_size_t (PyObject * obj, size_t *val)
-{
-  unsigned long v;
-  int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
-  if (SWIG_IsOK(res) && val) *val = (size_t)(v);
-  return res;
-}
-
-SWIGINTERN intarray *new_intarray(size_t nelements){
-    return (int *)malloc((nelements)*sizeof(int));
-  }
-SWIGINTERN void delete_intarray(intarray *self){
-    free((char*)self);
-  }
-SWIGINTERN int intarray___getitem__(intarray *self,size_t index){
-    return self[index];
-  }
-
-SWIGINTERNINLINE PyObject*
-  SWIG_From_int  (int value)
-{
-  return PyInt_FromLong((long) value);
-}
-
-
-#include <limits.h>
-#if !defined(SWIG_NO_LLONG_MAX)
-# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
-#   define LLONG_MAX __LONG_LONG_MAX__
-#   define LLONG_MIN (-LLONG_MAX - 1LL)
-#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
-# endif
-#endif
-
-
-SWIGINTERN int
-SWIG_AsVal_long (PyObject *obj, long* val)
-{
-  if (PyInt_Check(obj)) {
-    if (val) *val = PyInt_AsLong(obj);
-    return SWIG_OK;
-  } else if (PyLong_Check(obj)) {
-    long v = PyLong_AsLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_OK;
-    } else {
-      PyErr_Clear();
-    }
-  }
-#ifdef SWIG_PYTHON_CAST_MODE
-  {
-    int dispatch = 0;
-    long v = PyInt_AsLong(obj);
-    if (!PyErr_Occurred()) {
-      if (val) *val = v;
-      return SWIG_AddCast(SWIG_OK);
-    } else {
-      PyErr_Clear();
-    }
-    if (!dispatch) {
-      double d;
-      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
-      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
-	if (val) *val = (long)(d);
-	return res;
-      }
-    }
-  }
-#endif
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_int (PyObject * obj, int *val)
-{
-  long v;
-  int res = SWIG_AsVal_long (obj, &v);
-  if (SWIG_IsOK(res)) {
-    if ((v < INT_MIN || v > INT_MAX)) {
-      return SWIG_OverflowError;
-    } else {
-      if (val) *val = (int)(v);
-    }
-  }  
-  return res;
-}
-
-SWIGINTERN void intarray___setitem__(intarray *self,size_t index,int value){
-    self[index] = value;
-  }
-SWIGINTERN int *intarray_cast(intarray *self){
-    return self;
-  }
-SWIGINTERN intarray *intarray_frompointer(int *t){
-    return (intarray *)(t);
-  }
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
-    unsigned char *data;
-    int size;
-    int owns_data;
-} gdBuffer;
-
-#ifdef __cplusplus
-}
-#endif
-
-
-PyObject *MSExc_MapServerError;
-PyObject *MSExc_MapServerChildError;
-
-
-
-static void _raise_ms_exception( void );
-
-static void _raise_ms_exception() {
-    int errcode;
-    errorObj *ms_error;
-    char *errmsg;
-    ms_error = msGetErrorObj();
-    errcode = ms_error->code;
-    errmsg = msGetErrorString("\n");
-    
-    switch (errcode) {
-        case MS_IOERR:
-            PyErr_SetString(PyExc_IOError, errmsg);
-            break;
-        case MS_MEMERR:
-            PyErr_SetString(PyExc_MemoryError, errmsg);
-            break;
-        case MS_TYPEERR:
-            PyErr_SetString(PyExc_TypeError, errmsg);
-            break;
-        case MS_EOFERR:
-            PyErr_SetString(PyExc_EOFError, errmsg);
-            break;
-        case MS_CHILDERR:
-            PyErr_SetString(MSExc_MapServerChildError, errmsg);
-            break;
-        default:
-            PyErr_SetString(MSExc_MapServerError, errmsg);
-            break;
-    }
-
-    free(errmsg);
-}
-  
-
-
-SWIGINTERN swig_type_info*
-SWIG_pchar_descriptor(void)
-{
-  static int init = 0;
-  static swig_type_info* info = 0;
-  if (!init) {
-    info = SWIG_TypeQuery("_p_char");
-    init = 1;
-  }
-  return info;
-}
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_FromCharPtrAndSize(const char* carray, size_t size)
-{
-  if (carray) {
-    if (size > INT_MAX) {
-      swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
-      return pchar_descriptor ? 
-	SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
-    } else {
-#if PY_VERSION_HEX >= 0x03000000
-      return PyUnicode_FromStringAndSize(carray, (int)(size));
-#else
-      return PyString_FromStringAndSize(carray, (int)(size));
-#endif
-    }
-  } else {
-    return SWIG_Py_Void();
-  }
-}
-
-
-SWIGINTERNINLINE PyObject * 
-SWIG_FromCharPtr(const char *cptr)
-{ 
-  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
-}
-
-
-  #define SWIG_From_double   PyFloat_FromDouble 
-
-
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
-{
-#if PY_VERSION_HEX>=0x03000000
-  if (PyUnicode_Check(obj))
-#else  
-  if (PyString_Check(obj))
-#endif
-  {
-    char *cstr; Py_ssize_t len;
-#if PY_VERSION_HEX>=0x03000000
-    if (!alloc && cptr) {
-        /* We can't allow converting without allocation, since the internal
-           representation of string in Python 3 is UCS-2/UCS-4 but we require
-           a UTF-8 representation.
-           TODO(bhy) More detailed explanation */
-        return SWIG_RuntimeError;
-    }
-    obj = PyUnicode_AsUTF8String(obj);
-    PyBytes_AsStringAndSize(obj, &cstr, &len);
-    if(alloc) *alloc = SWIG_NEWOBJ;
-#else
-    PyString_AsStringAndSize(obj, &cstr, &len);
-#endif
-    if (cptr) {
-      if (alloc) {
-	/* 
-	   In python the user should not be able to modify the inner
-	   string representation. To warranty that, if you define
-	   SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
-	   buffer is always returned.
-
-	   The default behavior is just to return the pointer value,
-	   so, be careful.
-	*/ 
-#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
-	if (*alloc != SWIG_OLDOBJ) 
-#else
-	if (*alloc == SWIG_NEWOBJ) 
-#endif
-	  {
-	    *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
-	    *alloc = SWIG_NEWOBJ;
-	  }
-	else {
-	  *cptr = cstr;
-	  *alloc = SWIG_OLDOBJ;
-	}
-      } else {
-        #if PY_VERSION_HEX>=0x03000000
-        assert(0); /* Should never reach here in Python 3 */
-        #endif
-	*cptr = SWIG_Python_str_AsChar(obj);
-      }
-    }
-    if (psize) *psize = len + 1;
-#if PY_VERSION_HEX>=0x03000000
-    Py_XDECREF(obj);
-#endif
-    return SWIG_OK;
-  } else {
-    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
-    if (pchar_descriptor) {
-      void* vptr = 0;
-      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
-	if (cptr) *cptr = (char *) vptr;
-	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
-	if (alloc) *alloc = SWIG_OLDOBJ;
-	return SWIG_OK;
-      }
-    }
-  }
-  return SWIG_TypeError;
-}
-
-
-
-
-SWIGINTERN int clusterObj_updateFromString(clusterObj *self,char *snippet){
-    return msUpdateClusterFromString(self, snippet);
-  }
-SWIGINTERN char *clusterObj_convertToString(clusterObj *self){
-    return msWriteClusterToString(self);
-  }
-SWIGINTERN int clusterObj_setGroup(clusterObj *self,char *group){
-    if (!group || strlen(group) == 0) {
-       freeExpression(&self->group);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->group, group);
-  }
-SWIGINTERN char *clusterObj_getGroupString(clusterObj *self){
-    return msGetExpressionString(&(self->group));
-  }
-SWIGINTERN int clusterObj_setFilter(clusterObj *self,char *filter){
-    if (!filter || strlen(filter) == 0) {
-      freeExpression(&self->filter);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->filter, filter);
-  }
-SWIGINTERN char *clusterObj_getFilterString(clusterObj *self){
-    return msGetExpressionString(&(self->filter));
-  }
-SWIGINTERN outputFormatObj *new_outputFormatObj(char const *driver,char *name){
-        outputFormatObj *format;
-
-        format = msCreateDefaultOutputFormat(NULL, driver, name);
-
-        /* in the case of unsupported formats, msCreateDefaultOutputFormat
-           should return NULL */
-        if (!format)
-        {
-            msSetError(12, "Unsupported format driver: %s",
-                       "outputFormatObj()", driver);
-            return NULL;
-        }
-        
-        msInitializeRendererVTable(format);
-
-        MS_REFCNT_INIT(format);
-	format->inmapfile = 1;
-
-        return format;
-    }
-SWIGINTERN void delete_outputFormatObj(outputFormatObj *self){
-        msFreeOutputFormat( self );
-    }
-SWIGINTERN void outputFormatObj_setExtension(outputFormatObj *self,char const *extension){
-        msFree( self->extension );
-        self->extension = strdup(extension);
-    }
-SWIGINTERN void outputFormatObj_setMimetype(outputFormatObj *self,char const *mimetype){
-        msFree( self->mimetype );
-        self->mimetype = strdup(mimetype);
-    }
-SWIGINTERN void outputFormatObj_setOption(outputFormatObj *self,char const *key,char const *value){
-        msSetOutputFormatOption( self, key, value );
-    }
-SWIGINTERN int outputFormatObj_validate(outputFormatObj *self){
-       	return msOutputFormatValidate( self, 0 );
-    }
-SWIGINTERN char *outputFormatObj_getOption(outputFormatObj *self,char const *key,char const *value){
-        return strdup(msGetOutputFormatOption(self, key, value));
-    }
-SWIGINTERN char *outputFormatObj_getOptionAt(outputFormatObj *self,int i){
-       if( i >= 0 && i < self->numformatoptions ) {
-          return strdup(self->formatoptions[i]);
-       }
-       return NULL;
-    }
-SWIGINTERN void outputFormatObj_attachDevice(outputFormatObj *self,void *device){
-        self->device = device;
-    }
-SWIGINTERN int queryMapObj_updateFromString(queryMapObj *self,char *snippet){
-    return msUpdateQueryMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *queryMapObj_convertToString(queryMapObj *self){
-    return msWriteQueryMapToString(self);
-  }
-SWIGINTERN webObj *new_webObj(){
-        webObj *web;
-        web = (webObj *) malloc(sizeof(webObj));
-        initWeb(web);
-        return web;
-    }
-SWIGINTERN void delete_webObj(webObj *self){
-        if (!self) return;
-	freeWeb(self);
-        free(self);
-    }
-SWIGINTERN int webObj_updateFromString(webObj *self,char *snippet){
-        return msUpdateWebFromString(self, snippet, 0);
-    }
-SWIGINTERN char *webObj_convertToString(webObj *self){
-        return msWriteWebToString(self);
-    }
-SWIGINTERN struct styleObj *new_styleObj(classObj *parent_class){
-    
-        styleObj *style = NULL;
-        
-        if (parent_class!=NULL) {
-            if ((style = msGrowClassStyles(parent_class)) == NULL)
-                return NULL;
-
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-            }
-            parent_class->numstyles++;
-            MS_REFCNT_INCR(style);
-        }
-        else {
-            style = (styleObj *) malloc(sizeof(styleObj));
-            if (!style) { 
-                msSetError(2, "Failed to allocate memory for new styleObj instance",
-                                       "styleObj()");
-                return NULL;
-            }
-            if ( initStyle(style) == MS_FAILURE ) {
-                msSetError(12, "Failed to init new styleObj instance",
-                                       "initStyle()");
-                msFree(style);
-                return NULL;
-	    }
-        }
-        return style;
-    }
-SWIGINTERN void delete_styleObj(struct styleObj *self){
-        if (self) { 
-		if ( freeStyle(self) == MS_SUCCESS ) {
-            		free(self);
-			self=NULL;
-		}
-	}
-    }
-SWIGINTERN int styleObj_updateFromString(struct styleObj *self,char *snippet){
-        return msUpdateStyleFromString(self, snippet, 0);
-    }
-SWIGINTERN char *styleObj_convertToString(struct styleObj *self){
-        return msWriteStyleToString(self);
-    }
-SWIGINTERN styleObj *styleObj_clone(struct styleObj *self){
-        styleObj *style;
-
-        style = (styleObj *) malloc(sizeof(styleObj));
-        if (!style)
-        {
-            msSetError(2,
-                "Could not allocate memory for new styleObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initStyle(style) == -1)
-        {
-            msSetError(2, "Failed to initialize Style",
-                                  "clone()");
-            return NULL;
-        }
-
-        if (msCopyStyle(style, self) != MS_SUCCESS)
-        {
-            free(style);
-            return NULL;
-        }
-        
-        return style;
-    }
-SWIGINTERN int styleObj_setSymbolByName(struct styleObj *self,mapObj *map,char *symbolname){
-        self->symbol = msGetSymbolIndex(&map->symbolset, symbolname, 1);
-        if (self->symbolname) free((char*)self->symbolname);
-        if (symbolname) self->symbolname = strdup(symbolname);
-        else self->symbolname = 0;
-        return self->symbol;
-    }
-SWIGINTERN int styleObj_removeBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int styleObj_setBinding(struct styleObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 12) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item);
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *styleObj_getBinding(struct styleObj *self,int binding){
-    if(binding < 0 || binding >= 12) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN char *styleObj_getGeomTransform(struct styleObj *self){
-    return self->_geomtransform.string;
-  }
-SWIGINTERN void styleObj_setGeomTransform(struct styleObj *self,char *transform){
-    msStyleSetGeomTransform(self, transform);
-  }
-
-SWIGINTERN int
-SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
-{ 
-  char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
-  int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
-  if (SWIG_IsOK(res)) {
-    if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
-    if (csize <= size) {
-      if (val) {
-	if (csize) memcpy(val, cptr, csize*sizeof(char));
-	if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
-      }
-      if (alloc == SWIG_NEWOBJ) {
-	free((char*)cptr);
-	res = SWIG_DelNewMask(res);
-      }      
-      return res;
-    }
-    if (alloc == SWIG_NEWOBJ) free((char*)cptr);
-  }
-  return SWIG_TypeError;
-}
-
-
-SWIGINTERN int
-SWIG_AsVal_char (PyObject * obj, char *val)
-{    
-  int res = SWIG_AsCharArray(obj, val, 1);
-  if (!SWIG_IsOK(res)) {
-    long v;
-    res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
-    if (SWIG_IsOK(res)) {
-      if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
-	if (val) *val = (char)(v);
-      } else {
-	res = SWIG_OverflowError;
-      }
-    }
-  }
-  return res;
-}
-
-
-SWIGINTERNINLINE PyObject *
-SWIG_From_char  (char c) 
-{ 
-  return SWIG_FromCharPtrAndSize(&c,1);
-}
-
-SWIGINTERN struct labelObj *new_labelObj(){
-      labelObj *label;
-        
-      label = (labelObj *)calloc(1, sizeof(labelObj));
-      if (!label)
-        return(NULL);
-    
-      initLabel(label);
-      
-      return(label);    	
-    }
-SWIGINTERN void delete_labelObj(struct labelObj *self){
-      freeLabel(self);
-    }
-SWIGINTERN int labelObj_updateFromString(struct labelObj *self,char *snippet){
-    return msUpdateLabelFromString(self, snippet,0);
-  }
-SWIGINTERN char *labelObj_convertToString(struct labelObj *self){
-    return msWriteLabelToString(self);
-  }
-SWIGINTERN int labelObj_removeBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL;
-      self->bindings[binding].index = -1; 
-      self->numbindings--;
-    }
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *labelObj_getBinding(struct labelObj *self,int binding){
-    if(binding < 0 || binding >= 9) return NULL;
-
-    return self->bindings[binding].item;
-  }
-SWIGINTERN int labelObj_setBinding(struct labelObj *self,int binding,char *item){
-    if(!item) return MS_FAILURE;
-    if(binding < 0 || binding >= 9) return MS_FAILURE;
-
-    if(self->bindings[binding].item) {
-      free(self->bindings[binding].item);
-      self->bindings[binding].item = NULL; 
-      self->bindings[binding].index = -1;
-      self->numbindings--;
-    }
-
-    self->bindings[binding].item = strdup(item); 
-    self->numbindings++;
-
-    return MS_SUCCESS;
-  }
-SWIGINTERN int labelObj_setExpression(struct labelObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *labelObj_getExpressionString(struct labelObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int labelObj_setText(struct labelObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *labelObj_getTextString(struct labelObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN styleObj *labelObj_getStyle(struct labelObj *self,int i){
-      if (i >= 0 && i < self->numstyles) {
-          MS_REFCNT_INCR(self->styles[i]);
-          return self->styles[i];
-      } else {
-          msSetError(31, "Invalid index: %d", "getStyle()", i);
-          return NULL;
-      }
-  }
-SWIGINTERN int labelObj_insertStyle(struct labelObj *self,styleObj *style,int index){
-        return msInsertLabelStyle(self, style, index);
-    }
-SWIGINTERN styleObj *labelObj_removeStyle(struct labelObj *self,int index){
-	styleObj* style = (styleObj *) msRemoveLabelStyle(self, index);
-	if (style)
-		MS_REFCNT_INCR(style);
-        return style;
-    }
-SWIGINTERN int labelObj_moveStyleUp(struct labelObj *self,int index){
-        return msMoveLabelStyleUp(self, index);
-    }
-SWIGINTERN int labelObj_moveStyleDown(struct labelObj *self,int index){
-       return msMoveLabelStyleDown(self, index);
-    }
-SWIGINTERN struct classObj *new_classObj(layerObj *layer){
-        classObj *new_class=NULL;
-        
-        if (!layer)
-        {
-            new_class = (classObj *) malloc(sizeof(classObj));
-            if (!new_class)
-            {
-                msSetError(2,
-                    "Could not allocate memory for new classObj instance",
-                    "classObj()");
-                return NULL;
-            }
-            if (initClass(new_class) == -1) return NULL;
-            new_class->layer = NULL;
-            return new_class;
-        }
-        else
-        {
-            if(msGrowLayerClasses(layer) == NULL)
-                return NULL;
-            if (initClass(layer->class[layer->numclasses]) == -1)
-                return NULL;
-            layer->class[layer->numclasses]->type = layer->type;
-            layer->class[layer->numclasses]->layer = layer;
-	    MS_REFCNT_INCR(layer->class[layer->numclasses]);
-            layer->numclasses++;
-            return (layer->class[layer->numclasses-1]);
-        }
-
-        return NULL;
-    }
-SWIGINTERN void delete_classObj(struct classObj *self){
-        if (self)
-        {
-            if (freeClass(self)==MS_SUCCESS) {
-            	free(self);
-		self=NULL;
-	    }
-        }
-    }
-SWIGINTERN int classObj_updateFromString(struct classObj *self,char *snippet){
-        return msUpdateClassFromString(self, snippet, 0);
-    }
-SWIGINTERN char *classObj_convertToString(struct classObj *self){
-        return msWriteClassToString(self);
-    }
-SWIGINTERN classObj *classObj_clone(struct classObj *self){
-        classObj *new_class;
-
-        new_class = (classObj *) malloc(sizeof(classObj));
-        if (!new_class)
-        {
-            msSetError(2,
-                "Could not allocate memory for new classObj instance",
-                "clone()");
-            return NULL;
-        }
-        if (initClass(new_class) == -1)
-        {
-            msSetError(2, "Failed to initialize Class",
-                                  "clone()");
-            return NULL;
-        }
-        new_class->layer = NULL;
-
-        if (msCopyClass(new_class, self, self->layer) != MS_SUCCESS) {
-            freeClass(new_class);
-            free(new_class);
-            new_class = NULL;
-        }
-        
-        return new_class;
-    }
-SWIGINTERN int classObj_setExpression(struct classObj *self,char *expression){
-    if (!expression || strlen(expression) == 0) {
-       freeExpression(&self->expression);
-       return MS_SUCCESS;
-    }
-    else return msLoadExpressionString(&self->expression, expression);
-  }
-SWIGINTERN char *classObj_getExpressionString(struct classObj *self){
-    return msGetExpressionString(&(self->expression));
-  }
-SWIGINTERN int classObj_setText(struct classObj *self,char *text){
-    if (!text || strlen(text) == 0) {
-      freeExpression(&self->text);
-      return MS_SUCCESS;
-    }	
-    else return msLoadExpressionString(&self->text, text);
-  }
-SWIGINTERN char *classObj_getTextString(struct classObj *self){
-    return msGetExpressionString(&(self->text));
-  }
-SWIGINTERN char *classObj_getMetaData(struct classObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int classObj_setMetaData(struct classObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN char *classObj_getFirstMetaDataKey(struct classObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->metadata));
-  }
-SWIGINTERN char *classObj_getNextMetaDataKey(struct classObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-  }
-SWIGINTERN int classObj_drawLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height,imageObj *dstImage,int dstX,int dstY){
-    return msDrawLegendIcon(map, layer, self, width, height, dstImage, dstX, dstY, 1, NULL);
-  }
-SWIGINTERN imageObj *classObj_createLegendIcon(struct classObj *self,mapObj *map,layerObj *layer,int width,int height){
-    return msCreateLegendIcon(map, layer, self, width, height, 1);
-  }
-SWIGINTERN labelObj *classObj_getLabel(struct classObj *self,int i){
-    if (i >= 0 && i < self->numlabels) {
-      MS_REFCNT_INCR(self->labels[i]);
-      return self->labels[i];
-    } else {
-      msSetError(31, "Invalid index: %d.", "getLabel()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_addLabel(struct classObj *self,labelObj *label){
-    return msAddLabelToClass(self, label);
-  }
-SWIGINTERN labelObj *classObj_removeLabel(struct classObj *self,int index){
-    labelObj* label = (labelObj *) msRemoveLabelFromClass(self, index);
-    if (label) MS_REFCNT_INCR(label);
-    return label;
-  }
-SWIGINTERN styleObj *classObj_getStyle(struct classObj *self,int i){
-    if (i >= 0 && i < self->numstyles) {
-      MS_REFCNT_INCR(self->styles[i]);
-      return self->styles[i];
-    } else {
-      msSetError(31, "Invalid index: %d", "getStyle()", i);
-      return NULL;
-    }
-  }
-SWIGINTERN int classObj_insertStyle(struct classObj *self,styleObj *style,int index){
-    return msInsertStyle(self, style, index);
-  }
-SWIGINTERN styleObj *classObj_removeStyle(struct classObj *self,int index){
-    styleObj* style = (styleObj *) msRemoveStyle(self, index);
-    if (style) MS_REFCNT_INCR(style);
-    return style;
-  }
-SWIGINTERN int classObj_moveStyleUp(struct classObj *self,int index){
-    return msMoveStyleUp(self, index);
-  }
-SWIGINTERN int classObj_moveStyleDown(struct classObj *self,int index){
-    return msMoveStyleDown(self, index);
-  }
-SWIGINTERN void labelCacheObj_freeCache(labelCacheObj *self){
-        msFreeLabelCache(self);    
-    }
-
-  #define SWIG_From_long   PyLong_FromLong 
-
-SWIGINTERN resultObj *new_resultObj(long shapeindex){
-        resultObj *result = (resultObj *) msSmallMalloc(sizeof(resultObj));
-
-        result->tileindex = -1;
-        result->resultindex = -1; 
-        result->shapeindex = shapeindex;
-        
-        return result;
-    }
-SWIGINTERN void delete_resultObj(resultObj *self){
-        free(self);		
-    }
-SWIGINTERN resultObj *resultCacheObj_getResult(resultCacheObj *self,int i){
-        if (i >= 0 && i < self->numresults) {
-            return &self->results[i];
-        }
-        return NULL;
-    }
-SWIGINTERN symbolSetObj *new_symbolSetObj(char const *symbolfile){
-        symbolSetObj *symbolset;
-        mapObj *temp_map=NULL;
-        symbolset = (symbolSetObj *) malloc(sizeof(symbolSetObj));
-        msInitSymbolSet(symbolset);
-        if (symbolfile) {
-            symbolset->filename = strdup(symbolfile);
-            temp_map = msNewMapObj();
-            msLoadSymbolSet(symbolset, temp_map);
-            symbolset->map = NULL;
-            msFreeMap(temp_map);
-        }
-        return symbolset;
-    }
-SWIGINTERN void delete_symbolSetObj(symbolSetObj *self){
-        msFreeSymbolSet(self);
-        if (self->filename) free(self->filename);
-        free(self);
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbol(symbolSetObj *self,int i){
-        if (i >= 0 && i < self->numsymbols) {
-			symbolObj *s=self->symbol[i];
-			MS_REFCNT_INCR(s);
-            return s;
-        } else
-            return NULL;
-    }
-SWIGINTERN symbolObj *symbolSetObj_getSymbolByName(symbolSetObj *self,char *symbolname){
-        int i;
-
-        if (!symbolname) return NULL;
-
-        i = msGetSymbolIndex(self, symbolname, 1);
-        if (i == -1)
-            return NULL;
-		else {
-			MS_REFCNT_INCR(self->symbol[i]);
-            return self->symbol[i];
-		}
-    }
-SWIGINTERN int symbolSetObj_index(symbolSetObj *self,char *symbolname){
-        return msGetSymbolIndex(self, symbolname, 1);
-    }
-SWIGINTERN int symbolSetObj_appendSymbol(symbolSetObj *self,symbolObj *symbol){
-        return msAppendSymbol(self, symbol);
-    }
-SWIGINTERN symbolObj *symbolSetObj_removeSymbol(symbolSetObj *self,int index){
-        symbolObj *s=msRemoveSymbol(self, index);
-		if (s!=NULL) {
-			MS_REFCNT_INCR(s);
-		}
-        return s;
-    }
-SWIGINTERN int symbolSetObj_save(symbolSetObj *self,char const *filename){
-        return msSaveSymbolSet(self, filename);
-    }
-SWIGINTERN int referenceMapObj_updateFromString(referenceMapObj *self,char *snippet){
-    return msUpdateReferenceMapFromString(self, snippet, 0);
-  }
-SWIGINTERN char *referenceMapObj_convertToString(referenceMapObj *self){
-    return msWriteReferenceMapToString(self);
-  }
-SWIGINTERN int scalebarObj_updateFromString(scalebarObj *self,char *snippet){
-    return msUpdateScalebarFromString(self, snippet, 0);
-  }
-SWIGINTERN char *scalebarObj_convertToString(scalebarObj *self){
-    return msWriteScalebarToString(self);
-  }
-SWIGINTERN int legendObj_updateFromString(legendObj *self,char *snippet){
-    return msUpdateLegendFromString(self, snippet, 0);
-  }
-SWIGINTERN char *legendObj_convertToString(legendObj *self){
-    return msWriteLegendToString(self);
-  }
-SWIGINTERN void delete_imageObj(struct imageObj *self){
-        msFreeImage(self);    
-    }
-SWIGINTERN void imageObj_save(struct imageObj *self,char *filename,mapObj *map){
-        msSaveImage(map, self, filename );
-    }
-SWIGINTERN gdBuffer imageObj_getBytes(struct imageObj *self){
-        gdBuffer buffer;
-        
-        buffer.owns_data = 1;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-            
-        if( buffer.data == NULL || buffer.size == 0 )
-        {
-            buffer.data = NULL;
-            msSetError(12, "Failed to get image buffer", "getBytes");
-            return buffer;
-        }
-
-        return buffer;
-    }
-SWIGINTERN int imageObj_getSize(struct imageObj *self){
-        gdBuffer buffer;
-	int size=0;
-        
-        buffer.data = msSaveImageBuffer(self, &buffer.size, self->format);
-	size = buffer.size;
-            
-        if( buffer.data == NULL || buffer.size == 0 ) {
-            buffer.data = NULL;
-            msSetError(12, "Failed to get image buffer size", "getSize");
-        }
-	free(buffer.data);
-        return size;
-    }
-SWIGINTERN struct imageObj *new_imageObj(PyObject *arg1,PyObject *arg2,PyObject *input_format,PyObject *input_resolution,PyObject *input_defresolution){
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-         msSetError(15, "imageObj() is severely broken and should not be used","imageObj()");
-         return NULL;
-
-    }
-SWIGINTERN int imageObj_write(struct imageObj *self,PyObject *file){
-        unsigned char *imgbuffer=NULL;
-        int imgsize;
-        PyObject *noerr;
-        int retval=MS_FAILURE;
-        rendererVTableObj *renderer = NULL;
-
-        /* Return immediately if image driver is not GD */
-        if ( !MS_RENDERER_PLUGIN(self->format) )
-        {
-            msSetError(15, "Writing of %s format not implemented",
-                       "imageObj::write", self->format->driver);
-            return MS_FAILURE;
-        }
-
-        if (file == Py_None) /* write to stdout */
-            retval = msSaveImage(NULL, self, NULL);
-
-        else if (PyFile_Check(file)) /* a Python (C) file */
-        {
-            renderer = self->format->vtable;
-            /* FIXME? as an improvement, pass a map argument instead of the NULL (see #4216) */
-            retval = renderer->saveImage(self, NULL, PyFile_AsFile(file), self->format);
-        }
-        else /* presume a Python file-like object */
-        {
-            imgbuffer = msSaveImageBuffer(self, &imgsize,
-                                          self->format);
-            if (imgsize == 0)
-            {
-                msSetError(15, "failed to get image buffer", "write()");
-                return MS_FAILURE;
-            }
-                
-            noerr = PyObject_CallMethod(file, "write", "s#", imgbuffer,
-                                        imgsize);
-            free(imgbuffer);
-            if (noerr == NULL)
-                return MS_FAILURE;
-            else
-                Py_DECREF(noerr);
-            retval = MS_SUCCESS;
-        }
-
-        return retval;
-    }
-SWIGINTERN PyObject *imageObj_saveToString(struct imageObj *self){
-        int size=0;
-        unsigned char *imgbytes;
-        PyObject *imgstring; 
-
-        imgbytes = msSaveImageBuffer(self, &size, self->format);
-        if (size == 0)
-        {
-            msSetError(15, "failed to get image buffer", "saveToString()");
-            return NULL;
-        }
-        imgstring = PyString_FromStringAndSize((const char*) imgbytes, size); 
-        free(imgbytes);
-        return imgstring;
-    }
-SWIGINTERN struct layerObj *new_layerObj(mapObj *map){
-        layerObj *layer;
-        int result;
-        
-        if (!map) {
-            layer = (layerObj *) malloc(sizeof(layerObj));
-            if (!layer) {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            } 
-            result = initLayer(layer, NULL);
-            if (result == MS_SUCCESS) {
-                layer->index = -1;
-                return layer;
-            }
-            else {
-                msSetError(2, "Failed to initialize Layer",
-                                       "layerObj()");
-                return NULL;
-            }
-        }
-        else {
-            if(msGrowMapLayers(map) == NULL)
-                return(NULL);
-
-            if (initLayer((map->layers[map->numlayers]), map) == -1)
-                return(NULL);
-
-            map->layers[map->numlayers]->index = map->numlayers;
-            map->layerorder[map->numlayers] = map->numlayers;
-            map->numlayers++;
-	    MS_REFCNT_INCR(map->layers[map->numlayers-1]);
-
-            return (map->layers[map->numlayers-1]);
-        }
-    }
-SWIGINTERN void delete_layerObj(struct layerObj *self){
-        /*if (!self->map) {*/
-        if (self) {
-            if(freeLayer(self)==MS_SUCCESS) {
-            	free(self);
-	    }
-        }
-    }
-SWIGINTERN layerObj *layerObj_clone(struct layerObj *self){
-        layerObj *layer;
-        int result;
-
-        layer = (layerObj *) malloc(sizeof(layerObj));
-        if (!layer) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        } 
-        result = initLayer(layer, NULL);
-        if (result != MS_SUCCESS) {
-            msSetError(2, "Failed to initialize Layer",
-                                  "layerObj()");
-            return NULL;
-        }
-
-        if (msCopyLayer(layer, self) != MS_SUCCESS) {
-            freeLayer(layer);
-            free(layer);
-            layer = NULL;
-        }
-        layer->map = NULL;
-        layer->index = -1;
-        
-        return layer;
-    }
-SWIGINTERN int layerObj_updateFromString(struct layerObj *self,char *snippet){
-        return msUpdateLayerFromString(self, snippet, 0);
-    }
-SWIGINTERN char *layerObj_convertToString(struct layerObj *self){
-        return msWriteLayerToString(self);
-    }
-SWIGINTERN int layerObj_insertClass(struct layerObj *self,classObj *classobj,int index){
-        return msInsertClass(self, classobj, index);
-    }
-SWIGINTERN classObj *layerObj_removeClass(struct layerObj *self,int index){
-        classObj* c = msRemoveClass(self, index);
-	if (c != NULL) {
-		MS_REFCNT_INCR(c);
-	}
-	return c;
-    }
-SWIGINTERN int layerObj_open(struct layerObj *self){
-        int status;
-        status =  msLayerOpen(self);
-        if (status == MS_SUCCESS) {
-            return msLayerGetItems(self);
-        }
-        return status;
-    }
-SWIGINTERN int layerObj_whichShapes(struct layerObj *self,rectObj rect){
-        int oldconnectiontype = self->connectiontype;
-        self->connectiontype = MS_INLINE;
-
-        if(msLayerWhichItems(self, 1, NULL) != MS_SUCCESS) {
-            self->connectiontype = oldconnectiontype;
-            return MS_FAILURE;
-        }
-        self->connectiontype = oldconnectiontype;
-
-        return msLayerWhichShapes(self, rect, 0);
-    }
-SWIGINTERN shapeObj *layerObj_nextShape(struct layerObj *self){
-       int status;
-       shapeObj *shape;
-
-       shape = (shapeObj *)malloc(sizeof(shapeObj));
-       if (!shape) return NULL;
-       msInitShape(shape);
-
-       status = msLayerNextShape(self, shape);
-       if(status != MS_SUCCESS) {
-         msFreeShape(shape);
-	 free(shape);
-	 return NULL;
-       } else
-         return shape;
-    }
-SWIGINTERN void layerObj_close(struct layerObj *self){
-        msLayerClose(self);
-    }
-SWIGINTERN shapeObj *layerObj_getShape(struct layerObj *self,resultObj *record){
-        int retval;
-        shapeObj *shape;
-
-        if (!record) return NULL;
-    
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape) return NULL;
-
-        msInitShape(shape);
-        shape->type = self->type; /* is this right? */
-
-        retval = msLayerGetShape(self, shape, record);
-        return shape;
-    }
-SWIGINTERN int layerObj_getNumResults(struct layerObj *self){
-        if (!self->resultcache) return 0;
-        return self->resultcache->numresults;
-    }
-SWIGINTERN rectObj *layerObj_getResultsBounds(struct layerObj *self){
-        rectObj *bounds;
-        if (!self->resultcache) return NULL;
-        bounds = (rectObj *) malloc(sizeof(rectObj));
-        MS_COPYRECT(bounds, &self->resultcache->bounds);
-        return bounds;
-    }
-SWIGINTERN resultObj *layerObj_getResult(struct layerObj *self,int i){
-        if (!self->resultcache) return NULL;
-        if (i >= 0 && i < self->resultcache->numresults)
-            return &self->resultcache->results[i]; 
-        else
-            return NULL;
-    }
-SWIGINTERN classObj *layerObj_getClass(struct layerObj *self,int i){
-	classObj *result=NULL;
-        if (i >= 0 && i < self->numclasses) {
-            result=self->class[i]; 
-	    MS_REFCNT_INCR(result);
-	}
-	return result;
-    }
-SWIGINTERN char *layerObj_getItem(struct layerObj *self,int i){
-  
-        if (i >= 0 && i < self->numitems)
-            return (char *) (self->items[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int layerObj_setItems(struct layerObj *self,char **items,int numitems){
-        return msLayerSetItems(self, items, numitems);
-    }
-SWIGINTERN int layerObj_draw(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_drawQuery(struct layerObj *self,mapObj *map,imageObj *image){
-        return msDrawQueryLayer(map, self, image);    
-    }
-SWIGINTERN int layerObj_queryByFilter(struct layerObj *self,mapObj *map,char *string){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_FILTER;
-
-        map->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-        map->query.filter->string = strdup(string);
-	map->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-        map->query.filter->compiled = 0;
-        map->query.filter->flags = 0;
-        map->query.filter->tokens = map->query.filter->curtoken = NULL;
-        
-        map->query.layer = self->index;
-     	map->query.rect = map->extent;
-
-	status = self->status;
-	self->status = 1;
-        retval = msQueryByFilter(map);
-        self->status = status;
-	return retval;
-    }
-SWIGINTERN int layerObj_queryByAttributes(struct layerObj *self,mapObj *map,char *qitem,char *qstring,int mode){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-        
-        map->query.type = MS_QUERY_BY_ATTRIBUTE;
-        map->query.mode = mode;
-        if(qitem) map->query.item = strdup(qitem);
-        if(qstring) map->query.str = strdup(qstring);
-        map->query.layer = self->index;
-        map->query.rect = map->extent;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByAttributes(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByPoint(struct layerObj *self,mapObj *map,pointObj *point,int mode,double buffer){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_POINT;
-        map->query.mode = mode;
-        map->query.point = *point;
-        map->query.buffer = buffer;
-        map->query.layer = self->index;
-        
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByPoint(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByRect(struct layerObj *self,mapObj *map,rectObj rect){
-        int status;
-        int retval;
-
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_RECT;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.rect = rect; 
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByRect(map);
-        self->status = status;
-
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByFeatures(struct layerObj *self,mapObj *map,int slayer){
-        int status;
-        int retval;
-
-        map->query.slayer = slayer;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByFeatures(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByShape(struct layerObj *self,mapObj *map,shapeObj *shape){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_SHAPE;
-        map->query.mode = MS_QUERY_MULTIPLE;
-        map->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-        msInitShape(map->query.shape);
-        msCopyShape(shape, map->query.shape);
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByShape(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN int layerObj_queryByIndex(struct layerObj *self,mapObj *map,int tileindex,int shapeindex,int bAddToQuery){
-        int status;
-        int retval;
-        
-        msInitQuery(&(map->query));
-
-        map->query.type = MS_QUERY_BY_INDEX;
-        map->query.mode = MS_QUERY_SINGLE;
-        map->query.tileindex = tileindex;
-        map->query.shapeindex = shapeindex;
-        map->query.clear_resultcache = !bAddToQuery;
-        map->query.layer = self->index;
-
-        status = self->status;
-        self->status = 1;
-        retval = msQueryByIndex(map);
-        self->status = status;
-        return retval;
-    }
-SWIGINTERN resultCacheObj *layerObj_getResults(struct layerObj *self){
-        return self->resultcache;
-    }
-SWIGINTERN int layerObj_setFilter(struct layerObj *self,char *filter){
-        if (!filter || strlen(filter) == 0) {
-            freeExpression(&self->filter);
-            return MS_SUCCESS;
-        }
-        else return msLoadExpressionString(&self->filter, filter);
-    }
-SWIGINTERN char *layerObj_getFilterString(struct layerObj *self){
-        return msGetExpressionString(&(self->filter));
-    }
-SWIGINTERN int layerObj_setWKTProjection(struct layerObj *self,char *wkt){
-        self->project = 1;
-        return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-    }
-SWIGINTERN char *layerObj_getProjection(struct layerObj *self){    
-        return (char *) msGetProjectionString(&(self->projection));
-    }
-SWIGINTERN int layerObj_setProjection(struct layerObj *self,char *proj4){
-        self->project = 1;
-        return msLoadProjectionString(&(self->projection), proj4);
-    }
-SWIGINTERN int layerObj_addFeature(struct layerObj *self,shapeObj *shape){    
-        self->connectiontype = MS_INLINE;
-        if(self->features != NULL && self->features->tailifhead != NULL) 
-            shape->index = self->features->tailifhead->shape.index + 1;
-        else 
-            shape->index = 0;
-        if (insertFeatureList(&(self->features), shape) == NULL) 
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_getNumFeatures(struct layerObj *self){
-        return msLayerGetNumFeatures(self);
-    }
-SWIGINTERN rectObj *layerObj_getExtent(struct layerObj *self){
-        rectObj *extent;
-        extent = (rectObj *) malloc(sizeof(rectObj));
-        msLayerGetExtent(self, extent);
-        return extent;
-    }
-SWIGINTERN int layerObj_setExtent(struct layerObj *self,double minx,double miny,double maxx,double maxy){
-        if (minx > maxx || miny > maxy) {
-            msSetError(34,
-                "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                "layerObj::setExtent()", minx, miny, maxx, maxy);
-            return MS_FAILURE;
-        }
-
-        return msLayerSetExtent(self, minx, miny, maxx, maxy);
-    }
-SWIGINTERN char *layerObj_getMetaData(struct layerObj *self,char *name){
-        char *value = NULL;
-        if (!name) {
-            msSetError(16, "NULL key", "getMetaData");
-        }
-     
-        value = (char *) msLookupHashTable(&(self->metadata), name);
-	/*
-	Umberto, 05/17/2006
-	Exceptions should be reserved for situations when a serious error occurred
-	and normal program flow must be interrupted.
-	In this case returning null should be more that enough.
-	*/
-
-        if (!value) {
-            msSetError(16, "Key %s does not exist", "getMetaData", name);
-            return NULL;
-        }
-
-        return value;
-    }
-SWIGINTERN int layerObj_setMetaData(struct layerObj *self,char *name,char *value){
-        if (msInsertHashTable(&(self->metadata), name, value) == NULL)
-        return MS_FAILURE;
-        return MS_SUCCESS;
-    }
-SWIGINTERN int layerObj_removeMetaData(struct layerObj *self,char *name){
-        return(msRemoveHashTable(&(self->metadata), name));
-    }
-SWIGINTERN char *layerObj_getFirstMetaDataKey(struct layerObj *self){
-        return (char *) msFirstKeyFromHashTable(&(self->metadata));
-    }
-SWIGINTERN char *layerObj_getNextMetaDataKey(struct layerObj *self,char *lastkey){
-        return (char *) msNextKeyFromHashTable(&(self->metadata), lastkey);
-    }
-SWIGINTERN char *layerObj_getWMSFeatureInfoURL(struct layerObj *self,mapObj *map,int click_x,int click_y,int feature_count,char *info_format){
-        return (char *) msWMSGetFeatureInfoURL(map, self, click_x, click_y,
-               feature_count, info_format);
-    }
-SWIGINTERN char *layerObj_executeWFSGetFeature(struct layerObj *self,layerObj *layer){
-        return (char *) msWFSExecuteGetFeature(layer);
-    }
-SWIGINTERN int layerObj_applySLD(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLD(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN int layerObj_applySLDURL(struct layerObj *self,char *sld,char *stylelayer){
-      return msSLDApplySLDURL(self->map, sld, self->index, stylelayer, NULL);
-    }
-SWIGINTERN char *layerObj_generateSLD(struct layerObj *self){
-        return (char *) msSLDGenerateSLD(self->map, self->index, NULL);
-    }
-SWIGINTERN int layerObj_isVisible(struct layerObj *self){
-        if (!self->map)
-        {
-            msSetError(12,
-                "visibility has no meaning outside of a map context",
-                "isVisible()");
-            return MS_FAILURE;
-        }
-        return msLayerIsVisible(self->map, self);
-    }
-SWIGINTERN int layerObj_moveClassUp(struct layerObj *self,int index){
-        return msMoveClassUp(self, index);
-    }
-SWIGINTERN int layerObj_moveClassDown(struct layerObj *self,int index){
-        return msMoveClassDown(self, index);
-    }
-SWIGINTERN void layerObj_setProcessingKey(struct layerObj *self,char const *key,char const *value){
-	   msLayerSetProcessingKey( self, key, value );
-    }
-SWIGINTERN void layerObj_setProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN void layerObj_addProcessing(struct layerObj *self,char const *directive){
-        msLayerAddProcessing( self, directive );
-    }
-SWIGINTERN char *layerObj_getProcessing(struct layerObj *self,int index){
-        return (char *) msLayerGetProcessing(self, index);
-    }
-SWIGINTERN char *layerObj_getProcessingKey(struct layerObj *self,char const *key){
-      return (char *) msLayerGetProcessingKey(self, key);
-    }
-SWIGINTERN int layerObj_clearProcessing(struct layerObj *self){
-        return msLayerClearProcessing(self);
-    }
-SWIGINTERN int layerObj_setConnectionType(struct layerObj *self,int connectiontype,char const *library_str){    
-        /* Caller is responsible to close previous layer correctly before
-         * calling msConnectLayer() 
-         */
-        if (msLayerIsOpen(self))
-          msLayerClose(self);
-        return msConnectLayer(self, connectiontype, library_str);
-    }
-SWIGINTERN int layerObj_getClassIndex(struct layerObj *self,mapObj *map,shapeObj *shape,int *classgroup,int numclasses){
-        return msShapeGetClass(self, map, shape, classgroup, numclasses);
-    }
-SWIGINTERN char *layerObj_getGeomTransform(struct layerObj *self){
-      return self->_geomtransform.string;
-    }
-SWIGINTERN void layerObj_setGeomTransform(struct layerObj *self,char *transform){
-      msFree(self->_geomtransform.string);
-      if (!transform || strlen(transform) > 0) {
-        self->_geomtransform.string = msStrdup(transform);
-        self->_geomtransform.type = MS_GEOMTRANSFORM_EXPRESSION;
-      }
-      else {
-        self->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
-        self->_geomtransform.string = NULL;
-      }
-    }
-SWIGINTERN struct mapObj *new_mapObj(char *filename){
-        if (filename && strlen(filename))
-            return msLoadMap(filename, NULL);
-        else { /* create an empty map, no layers etc... */
-            return msNewMapObj();
-        }      
-    }
-SWIGINTERN void delete_mapObj(struct mapObj *self){
-        msFreeMap(self);
-    }
-SWIGINTERN mapObj *mapObj_clone(struct mapObj *self){
-        mapObj *dstMap;
-        dstMap = msNewMapObj();
-        if (msCopyMap(dstMap, self) != MS_SUCCESS) {
-            msFreeMap(dstMap);
-            dstMap = NULL;
-        }
-        return dstMap;
-    }
-SWIGINTERN int mapObj_insertLayer(struct mapObj *self,layerObj *layer,int index){
-        return msInsertLayer(self, layer, index);  
-    }
-SWIGINTERN layerObj *mapObj_removeLayer(struct mapObj *self,int index){
-    	layerObj *layer=msRemoveLayer(self, index);
-	MS_REFCNT_INCR(layer);
-        return layer;
-    }
-SWIGINTERN int mapObj_setExtent(struct mapObj *self,double minx,double miny,double maxx,double maxy){	
-	return msMapSetExtent( self, minx, miny, maxx, maxy );
-    }
-SWIGINTERN int mapObj_offsetExtent(struct mapObj *self,double x,double y){	
-	return msMapOffsetExtent( self, x, y );
-    }
-SWIGINTERN int mapObj_scaleExtent(struct mapObj *self,double zoomfactor,double minscaledenom,double maxscaledenom){	
-	return msMapScaleExtent( self, zoomfactor, minscaledenom, maxscaledenom );
-    }
-SWIGINTERN int mapObj_setCenter(struct mapObj *self,pointObj *center){	
-	return msMapSetCenter( self, center );
-    }
-SWIGINTERN int mapObj_setSize(struct mapObj *self,int width,int height){
-        return msMapSetSize(self, width, height);
-    }
-SWIGINTERN int mapObj_setRotation(struct mapObj *self,double rotation_angle){
-        return msMapSetRotation( self, rotation_angle );
-    }
-SWIGINTERN layerObj *mapObj_getLayer(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numlayers) {
-    	MS_REFCNT_INCR(self->layers[i]);
-      	return (self->layers[i]); /* returns an EXISTING layer */
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN layerObj *mapObj_getLayerByName(struct mapObj *self,char *name){
-    int i;
-
-    i = msGetLayerIndex(self, name);
-
-    if(i != -1) {
-      MS_REFCNT_INCR(self->layers[i]);
-      return (self->layers[i]); /* returns an EXISTING layer */
-    }
-    else
-      return NULL;
-  }
-SWIGINTERN int mapObj_getSymbolByName(struct mapObj *self,char *name){
-    return msGetSymbolIndex(&self->symbolset, name, 1);
-  }
-SWIGINTERN void mapObj_prepareQuery(struct mapObj *self){
-    int status;
-
-    status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scaledenom);
-    if(status != MS_SUCCESS) self->scaledenom = -1;
-  }
-SWIGINTERN imageObj *mapObj_prepareImage(struct mapObj *self){
-    return msPrepareImage(self, 0);
-  }
-SWIGINTERN void mapObj_setImageType(struct mapObj *self,char *imagetype){
-      outputFormatObj *format;
-
-      format = msSelectOutputFormat( self, imagetype );
-      if( format == NULL )
-	  msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		     "setImageType()", imagetype );
-      else
-      {  
-          msFree( self->imagetype );
-          self->imagetype = strdup(imagetype);
-          msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                               -1111, -1111 );
-      }
-  }
-SWIGINTERN void mapObj_selectOutputFormat(struct mapObj *self,char *imagetype){
-        outputFormatObj *format;
-
-        format = msSelectOutputFormat( self, imagetype );
-        if ( format == NULL )
-	        msSetError(12, "Unable to find IMAGETYPE '%s'.", 
-		               "setImageType()", imagetype );
-        else
-        {   
-            msFree( self->imagetype );
-            self->imagetype = strdup(imagetype);
-            msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                                 -1111, -1111 );
-        }
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormat(struct mapObj *self,int i){
-    if(i >= 0 && i < self->numoutputformats) {
-    	MS_REFCNT_INCR(self->outputformatlist[i]);
-        return (self->outputformatlist[i]); 
-    } else {
-      return NULL;
-    }
-  }
-SWIGINTERN void mapObj_setOutputFormat(struct mapObj *self,outputFormatObj *format){
-      msApplyOutputFormat( &(self->outputformat), format, -1111, 
-                           -1111, -1111 );
-  }
-SWIGINTERN imageObj *mapObj_draw(struct mapObj *self){
-    return msDrawMap(self, 0);
-  }
-SWIGINTERN imageObj *mapObj_drawQuery(struct mapObj *self){
-    return msDrawMap(self, 1);
-  }
-SWIGINTERN imageObj *mapObj_drawLegend(struct mapObj *self){
-    return msDrawLegend(self, 0, NULL);
-  }
-SWIGINTERN imageObj *mapObj_drawScalebar(struct mapObj *self){
-    return msDrawScalebar(self);
-  }
-SWIGINTERN imageObj *mapObj_drawReferenceMap(struct mapObj *self){
-    return msDrawReferenceMap(self);
-  }
-SWIGINTERN int mapObj_embedScalebar(struct mapObj *self,imageObj *image){	
-    return msEmbedScalebar(self, image);
-  }
-SWIGINTERN int mapObj_embedLegend(struct mapObj *self,imageObj *image){	
-    return msEmbedLegend(self, image);
-  }
-SWIGINTERN int mapObj_drawLabelCache(struct mapObj *self,imageObj *image){
-    return msDrawLabelCache(image, self);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_getLabel(struct mapObj *self,int i){
-    return msGetLabelCacheMember(&(self->labelcache), i);
-  }
-SWIGINTERN labelCacheMemberObj *mapObj_nextLabel(struct mapObj *self){
-    static int i=0;
-
-    if(i<self->labelcache.numlabels)
-      return msGetLabelCacheMember(&(self->labelcache), i++);
-    else
-      return NULL;	
-  }
-SWIGINTERN int mapObj_queryByFilter(struct mapObj *self,char *string){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_FILTER;
-
-    self->query.filter = (expressionObj *) malloc(sizeof(expressionObj));
-    self->query.filter->string = strdup(string);
-    self->query.filter->type = 2000; /* MS_EXPRESSION: lot's of conflicts in mapfile.h */
-    self->query.filter->compiled = 0;
-    self->query.filter->flags = 0;
-    self->query.filter->tokens = self->query.filter->curtoken = NULL;
-    
-    self->query.rect = self->extent;
-
-    return msQueryByFilter(self);
-  }
-SWIGINTERN int mapObj_queryByPoint(struct mapObj *self,pointObj *point,int mode,double buffer){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_POINT;
-    self->query.mode = mode;
-    self->query.point = *point;
-    self->query.buffer = buffer;
-
-    return msQueryByPoint(self);
-  }
-SWIGINTERN int mapObj_queryByRect(struct mapObj *self,rectObj rect){
-    msInitQuery(&(self->query));
-
-    self->query.type = MS_QUERY_BY_RECT;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.rect = rect;
-
-    return msQueryByRect(self);
-  }
-SWIGINTERN int mapObj_queryByFeatures(struct mapObj *self,int slayer){
-    self->query.slayer = slayer;
-    return msQueryByFeatures(self);
-  }
-SWIGINTERN int mapObj_queryByShape(struct mapObj *self,shapeObj *shape){
-    msInitQuery(&(self->query));
-    
-    self->query.type = MS_QUERY_BY_SHAPE;
-    self->query.mode = MS_QUERY_MULTIPLE;
-    self->query.shape = (shapeObj *) malloc(sizeof(shapeObj));
-    msInitShape(self->query.shape);
-    msCopyShape(shape, self->query.shape);
-
-    return msQueryByShape(self);
-  }
-SWIGINTERN int mapObj_setWKTProjection(struct mapObj *self,char *wkt){
-    return msOGCWKT2ProjectionObj(wkt, &(self->projection), self->debug);
-  }
-SWIGINTERN char *mapObj_getProjection(struct mapObj *self){
-    return msGetProjectionString(&(self->projection));
-  }
-SWIGINTERN int mapObj_setProjection(struct mapObj *self,char *proj4){
-    return msLoadProjectionString(&(self->projection), proj4);
-  }
-SWIGINTERN int mapObj_save(struct mapObj *self,char *filename){
-    return msSaveMap(self, filename);
-  }
-SWIGINTERN int mapObj_saveQuery(struct mapObj *self,char *filename,int results){
-    return msSaveQuery(self, filename, results);
-  }
-SWIGINTERN int mapObj_loadQuery(struct mapObj *self,char *filename){
-    return msLoadQuery(self, filename);
-  }
-SWIGINTERN void mapObj_freeQuery(struct mapObj *self,int qlayer){
-    msQueryFree(self, qlayer);
-  }
-SWIGINTERN int mapObj_saveQueryAsGML(struct mapObj *self,char *filename,char const *ns){
-    return msGMLWriteQuery(self, filename, ns);
-  }
-SWIGINTERN char *mapObj_getMetaData(struct mapObj *self,char *name){
-    char *value = NULL;
-    if (!name) {
-      msSetError(16, "NULL key", "getMetaData");
-    }
-     
-    value = (char *) msLookupHashTable(&(self->web.metadata), name);
-    if (!value) {
-      msSetError(16, "Key %s does not exist", "getMetaData", name);
-      return NULL;
-    }
-    return value;
-  }
-SWIGINTERN int mapObj_setMetaData(struct mapObj *self,char *name,char *value){
-    if (msInsertHashTable(&(self->web.metadata), name, value) == NULL)
-	return MS_FAILURE;
-    return MS_SUCCESS;
-  }
-SWIGINTERN int mapObj_removeMetaData(struct mapObj *self,char *name){
-    return(msRemoveHashTable(&(self->web.metadata), name));
-  }
-SWIGINTERN char *mapObj_getFirstMetaDataKey(struct mapObj *self){
-    return (char *) msFirstKeyFromHashTable(&(self->web.metadata));
-  }
-SWIGINTERN char *mapObj_getNextMetaDataKey(struct mapObj *self,char *lastkey){
-    return (char *) msNextKeyFromHashTable(&(self->web.metadata), lastkey);
-  }
-SWIGINTERN int mapObj_setSymbolSet(struct mapObj *self,char *szFileName){
-    msFreeSymbolSet(&self->symbolset);
-    msInitSymbolSet(&self->symbolset);
-   
-    self->symbolset.filename = strdup(szFileName);
-
-    /* Symbolset shares same fontset as main mapfile */
-    self->symbolset.fontset = &(self->fontset);
-
-    return msLoadSymbolSet(&self->symbolset, self);
-  }
-SWIGINTERN int mapObj_getNumSymbols(struct mapObj *self){
-    return self->symbolset.numsymbols;
-  }
-SWIGINTERN int mapObj_setFontSet(struct mapObj *self,char *filename){
-    msFreeFontSet(&(self->fontset));
-    msInitFontSet(&(self->fontset));
-   
-    self->fontset.filename = strdup(filename);
-
-    return msLoadFontSet(&(self->fontset), self);
-  }
-SWIGINTERN int mapObj_saveMapContext(struct mapObj *self,char *szFileName){
-    return msSaveMapContext(self, szFileName);
-  }
-SWIGINTERN int mapObj_loadMapContext(struct mapObj *self,char *szFileName,int useUniqueNames){
-    return msLoadMapContext(self, szFileName, useUniqueNames);
-  }
-SWIGINTERN int mapObj_moveLayerUp(struct mapObj *self,int layerindex){
-    return msMoveLayerUp(self, layerindex);
-  }
-SWIGINTERN int mapObj_moveLayerDown(struct mapObj *self,int layerindex){
-    return msMoveLayerDown(self, layerindex);
-  }
-SWIGINTERN intarray *mapObj_getLayersDrawingOrder(struct mapObj *self){
-    int i;
-    intarray *order;
-    order = new_intarray(self->numlayers);
-    for (i=0; i<self->numlayers; i++)
-        
-        intarray___setitem__(order, i, self->layerorder[i]);
-        
-
-
-    return order;
-  }
-SWIGINTERN int mapObj_setLayersDrawingOrder(struct mapObj *self,int *panIndexes){
-    return  msSetLayersdrawingOrder(self, panIndexes); 
-  }
-SWIGINTERN void mapObj_setConfigOption(struct mapObj *self,char *key,char *value){
-    msSetConfigOption(self,key,value);
-  }
-SWIGINTERN char *mapObj_getConfigOption(struct mapObj *self,char *key){
-    return (char *) msGetConfigOption(self,key);
-  }
-SWIGINTERN void mapObj_applyConfigOptions(struct mapObj *self){
-    msApplyMapConfigOptions( self );
-  }
-SWIGINTERN int mapObj_applySLD(struct mapObj *self,char *sld){
-      return msSLDApplySLD(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN int mapObj_applySLDURL(struct mapObj *self,char *sld){
-      return msSLDApplySLDURL(self, sld, -1, NULL, NULL);
-    }
-SWIGINTERN char *mapObj_generateSLD(struct mapObj *self){
-        return (char *) msSLDGenerateSLD(self, -1, NULL);
-    }
-SWIGINTERN char *mapObj_processTemplate(struct mapObj *self,int bGenerateImages,char **names,char **values,int numentries){
-        return msProcessTemplate(self, bGenerateImages, names, values,
-                                 numentries);
-    }
-SWIGINTERN char *mapObj_processLegendTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessLegendTemplate(self, names, values, numentries);
-    }
-SWIGINTERN char *mapObj_processQueryTemplate(struct mapObj *self,char **names,char **values,int numentries){
-        return msProcessQueryTemplate(self, 1, names, values, numentries);
-    }
-SWIGINTERN outputFormatObj *mapObj_getOutputFormatByName(struct mapObj *self,char *name){
-        return msSelectOutputFormat(self, name); 
-    }
-SWIGINTERN int mapObj_appendOutputFormat(struct mapObj *self,outputFormatObj *format){
-        return msAppendOutputFormat(self, format);
-    }
-SWIGINTERN int mapObj_removeOutputFormat(struct mapObj *self,char *name){
-        return msRemoveOutputFormat(self, name);
-    }
-SWIGINTERN int mapObj_loadOWSParameters(struct mapObj *self,cgiRequestObj *request,char *wmtver_string){
-        return msMapLoadOWSParameters(self, request, wmtver_string);
-    }
-SWIGINTERN int mapObj_OWSDispatch(struct mapObj *self,cgiRequestObj *req){
-	return msOWSDispatch( self, req, 1 );
-    }
-SWIGINTERN char *mapObj_convertToString(struct mapObj *self){
-        return msWriteMapToString(self);
-    }
-SWIGINTERN int mapObj_zoomPoint(struct mapObj *self,int zoomfactor,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        int         bMaxExtSet;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (zoomfactor == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx)  {
-            msSetError(12, "Georeferenced coordinates minx >= maxx",  "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy)  {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomPoint()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomPoint()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* --- -------------------------------------------------------- */
-        /*      zoom in                                                 */
-        /* ------------------------------------------------------------ */
-        if (zoomfactor > 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/(2*zoomfactor));        
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/(2*zoomfactor));        
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/(2*zoomfactor));
-        }
-
-        if (zoomfactor < 0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2)*(abs(zoomfactor));    
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2)*(abs(zoomfactor));
-        }
-
-        if (zoomfactor == 1) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaX/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaY/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaX/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaY/2);
-        }
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before zooming.                           */
-        /* ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-    
-        if (self->web.maxscaledenom > 0) {
-            if (zoomfactor < 0 && dfNewScale > self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /*  we do a spcial case for zoom in : we try to zoom as much as */
-        /*  possible using the mincale set in the .map.                 */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale < self->web.minscaledenom && zoomfactor > 1) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfGeoPosY, 
-                                                   self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger than 
-             * max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        /* ------------------------------------------------------------ */
-        /*      set the map extents with new values.                    */
-        /* ------------------------------------------------------------ */
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);      
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-    
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomRectangle(struct mapObj *self,rectObj *poPixRect,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale;
-        double      dfDeltaExt;
-        double dfMiddleX, dfMiddleY;
-        double dX, dY;
-        int bMaxExtSet;
-        
-        bMaxExtSet = 0;
-        dfNewScale = 0.0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) bMaxExtSet = 1;
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (poPixRect == 0 || width <= 0 || height <= 0 || poGeorefExt == NULL) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomRectangle");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min <= max.   */
-        /* ----------------------------------------------------------- */
-        if (poPixRect->minx >= poPixRect->maxx) {
-            msSetError(12, "image rectangle minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        /* This is not a typo: "maxx >= minx". For historical reason, we
-         * keep this as it is. See documentation for more info about this check. */
-        if (poPixRect->maxy >= poPixRect->miny) {
-            msSetError(12, "image rectangle maxy >= miny", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12,  "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12, "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomRectangle()");
-                return MS_FAILURE;
-            }
-        }
-
-  
-        /* ----------------------------------------------------------- */
-        /*   Convert pixel rectangle to georeferenced rectangle        */
-        /* ----------------------------------------------------------- */
-        
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-
-        oNewGeorefExt.minx = Pix2Georef((int)poPixRect->minx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.maxx = Pix2Georef((int)poPixRect->maxx, 0, width, poGeorefExt->minx, poGeorefExt->maxx, 0); 
-        oNewGeorefExt.miny = Pix2Georef((int)poPixRect->miny, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-        oNewGeorefExt.maxy = Pix2Georef((int)poPixRect->maxy, 0, height, poGeorefExt->miny, poGeorefExt->maxy, 1); 
-
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-
-        /* ------------------------------------------------------------ */
-        /*   if the min and max scale are set in the map file, we will  */
-        /*   use them to test before setting extents.                   */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0 &&  dfNewScale > self->web.maxscaledenom)
-            return MS_FAILURE;
-
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom) {
-            dfMiddleX = oNewGeorefExt.minx + ((oNewGeorefExt.maxx - oNewGeorefExt.minx)/2);
-            dfMiddleY = oNewGeorefExt.miny + ((oNewGeorefExt.maxy - oNewGeorefExt.miny)/2);
-
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(self->web.minscaledenom, self->units, dfMiddleY, self->width, self->resolution);
-
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfMiddleX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfMiddleY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfMiddleX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfMiddleY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width,  self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int mapObj_zoomScale(struct mapObj *self,double scale,pointObj *poPixPos,int width,int height,rectObj *poGeorefExt,rectObj *poMaxGeorefExt){
-        double      dfGeoPosX, dfGeoPosY;
-        double      dfDeltaX, dfDeltaY;
-        rectObj     oNewGeorefExt;    
-        double      dfNewScale, dfCurrentScale;
-        int         bMaxExtSet;
-        int nTmp;
-        double      dfDeltaExt;
-        double dX, dY;
-        
-        dfNewScale = 0.0;
-        dfCurrentScale = 0.0;
-        nTmp = 0;
-        bMaxExtSet = 0;
-        dfDeltaExt = -1.0;
-
-        if (poMaxGeorefExt != NULL) { bMaxExtSet = 1; }
-
-        /* ----------------------------------------------------------- */
-        /*      check the validity of the parameters.                  */
-        /* ----------------------------------------------------------- */
-        if (scale <= 0.0 || width <= 0 || height <= 0 || poGeorefExt == NULL || poPixPos == NULL ) {
-            msSetError(12, "Incorrect arguments", "mapscript::mapObj::zoomScale");
-            return MS_FAILURE;
-        }
-
-        /* ----------------------------------------------------------- */
-        /*      check if the values passed are consistent min > max.   */
-        /* ----------------------------------------------------------- */
-        if (poGeorefExt->minx >= poGeorefExt->maxx) {
-            msSetError(12, "Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-        if (poGeorefExt->miny >= poGeorefExt->maxy) {
-            msSetError(12, "Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            return MS_FAILURE;
-        }
-
-        if (bMaxExtSet == 1) {
-            if (poMaxGeorefExt->minx >= poMaxGeorefExt->maxx) {
-                msSetError(12, "Max Georeferenced coordinates minx >= maxx", "mapscript::mapObj::zoomScale()");
-                return MS_FAILURE;
-            }
-            if (poMaxGeorefExt->miny >= poMaxGeorefExt->maxy) {
-                msSetError(12,  "Max Georeferenced coordinates miny >= maxy", "mapscript::mapObj::zoomScale()");
-            }
-        }
-   
-        dfDeltaX = poGeorefExt->maxx - poGeorefExt->minx;
-        dfDeltaY = poGeorefExt->maxy - poGeorefExt->miny;
-        dX = dfDeltaX/((double)width);
-        dY = dfDeltaY/((double)height);
-        dfGeoPosX = poGeorefExt->minx + dX * (double)poPixPos->x;
-        dfGeoPosY = poGeorefExt->maxy - dY * (double)poPixPos->y;
-        
-        /* ------------------------------------------------------------ */
-        /*  Calculate new extents based on the scale.                   */
-        /* ------------------------------------------------------------ */
-
-        /* ============================================================ */
-        /*  make sure to take the smallest size because this is the one */
-        /*  that will be used to ajust the scale.                       */
-        /* ============================================================ */
-
-        if (self->width <  self->height)
-            nTmp = self->width;
-        else
-            nTmp = self->height;
-
-        /* To be consistent in swig mapscript and PHP mapscript, 
-           use the same function to calculate the delta extents. */
-        dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-
-        if (dfDeltaExt > 0.0) {
-            oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-            oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-            oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-            oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-        } else
-            return MS_FAILURE;
-
-        /* ------------------------------------------------------------ */
-        /*   get current scale.                                         */
-        /* ------------------------------------------------------------ */
-        msCalculateScale(*poGeorefExt, self->units, self->width, self->height, self->resolution, &dfCurrentScale);
-
-        /* ------------------------------------------------------------ *
-         *   if the min and max scale are set in the map file, we will  *
-         *   use them to test before zooming.                           *
-         *                                                              *
-         *   This function has the same effect as zoomin or zoom out.
-         *   If the current scale is > newscale we zoom in; else it is
-         *   a zoom out.
-         * ------------------------------------------------------------ */
-        msAdjustExtent(&oNewGeorefExt, self->width, self->height);
-        msCalculateScale(oNewGeorefExt, self->units, self->width, self->height, self->resolution, &dfNewScale);
-
-        if (self->web.maxscaledenom > 0) {
-            if (dfCurrentScale < dfNewScale && dfNewScale >  self->web.maxscaledenom) {
-                return MS_FAILURE;
-            }
-        }
-
-        /* ============================================================ */
-        /* we do a special case for zoom in : we try to zoom as much as */
-        /* possible using the mincale set in the .map.                  */
-        /* ============================================================ */
-        if (self->web.minscaledenom > 0 && dfNewScale <  self->web.minscaledenom && dfCurrentScale > dfNewScale) {
-            /* To be consistent in swig mapscript and PHP mapscript, 
-               use the same function to calculate the delta extents. */
-            dfDeltaExt = GetDeltaExtentsUsingScale(scale, self->units, dfGeoPosY, nTmp, self->resolution);
-            if (dfDeltaExt > 0.0) {
-                oNewGeorefExt.minx = dfGeoPosX - (dfDeltaExt/2);
-                oNewGeorefExt.miny = dfGeoPosY - (dfDeltaExt/2);
-                oNewGeorefExt.maxx = dfGeoPosX + (dfDeltaExt/2);
-                oNewGeorefExt.maxy = dfGeoPosY + (dfDeltaExt/2);
-            } else
-                return MS_FAILURE;
-        }
-
-        /* ------------------------------------------------------------ */
-        /*  If the buffer is set, make sure that the extents do not go  */
-        /*  beyond the buffer.                                          */
-        /* ------------------------------------------------------------ */
-        if (bMaxExtSet) {
-            dfDeltaX = oNewGeorefExt.maxx - oNewGeorefExt.minx;
-            dfDeltaY = oNewGeorefExt.maxy - oNewGeorefExt.miny;
-        
-            /* Make sure Current georef extents is not bigger 
-             * than max extents */
-            if (dfDeltaX > (poMaxGeorefExt->maxx-poMaxGeorefExt->minx))
-                dfDeltaX = poMaxGeorefExt->maxx-poMaxGeorefExt->minx;
-            if (dfDeltaY > (poMaxGeorefExt->maxy-poMaxGeorefExt->miny))
-                dfDeltaY = poMaxGeorefExt->maxy-poMaxGeorefExt->miny;
-
-            if (oNewGeorefExt.minx < poMaxGeorefExt->minx) {
-                oNewGeorefExt.minx = poMaxGeorefExt->minx;
-                oNewGeorefExt.maxx =  oNewGeorefExt.minx + dfDeltaX;
-            }
-            if (oNewGeorefExt.maxx > poMaxGeorefExt->maxx) {
-                oNewGeorefExt.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (oNewGeorefExt.miny < poMaxGeorefExt->miny) {
-                oNewGeorefExt.miny = poMaxGeorefExt->miny;
-                oNewGeorefExt.maxy =  oNewGeorefExt.miny + dfDeltaY;
-            }
-            if (oNewGeorefExt.maxy > poMaxGeorefExt->maxy) {
-                oNewGeorefExt.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        self->extent.minx = oNewGeorefExt.minx;
-        self->extent.miny = oNewGeorefExt.miny;
-        self->extent.maxx = oNewGeorefExt.maxx;
-        self->extent.maxy = oNewGeorefExt.maxy;
-    
-        self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height);    
-        dfDeltaX = self->extent.maxx - self->extent.minx;
-        dfDeltaY = self->extent.maxy - self->extent.miny; 
-
-        if (bMaxExtSet) {
-            if (self->extent.minx < poMaxGeorefExt->minx) {
-                self->extent.minx = poMaxGeorefExt->minx;
-                self->extent.maxx = self->extent.minx + dfDeltaX;
-            }
-            if (self->extent.maxx > poMaxGeorefExt->maxx) {
-                self->extent.maxx = poMaxGeorefExt->maxx;
-                oNewGeorefExt.minx = oNewGeorefExt.maxx - dfDeltaX;
-            }
-            if (self->extent.miny < poMaxGeorefExt->miny) {
-                self->extent.miny = poMaxGeorefExt->miny;
-                self->extent.maxy =  self->extent.miny + dfDeltaY;
-            }
-            if (self->extent.maxy > poMaxGeorefExt->maxy) {
-                self->extent.maxy = poMaxGeorefExt->maxy;
-                oNewGeorefExt.miny = oNewGeorefExt.maxy - dfDeltaY;
-            }
-        }
-
-        msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &(self->scaledenom));
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN PyObject *mapObj_getLayerOrder(struct mapObj *self){
-        int i;
-        PyObject *order;
-        order = PyTuple_New(self->numlayers);
-        for (i = 0; i < self->numlayers; i++) {
-            PyTuple_SetItem(order,i,PyInt_FromLong((long)self->layerorder[i]));
-        }
-        return order;
-    }
-SWIGINTERN int mapObj_setLayerOrder(struct mapObj *self,PyObject *order){
-        int i, size;
-        size = PyTuple_Size(order);
-        for (i = 0; i < size; i++) {
-            self->layerorder[i] = (int)PyInt_AsLong(PyTuple_GetItem(order, i));
-        }
-        return MS_SUCCESS;
-    }
-SWIGINTERN PyObject *mapObj_getSize(struct mapObj *self){
-        PyObject* output ;
-        output = PyTuple_New(2);
-        PyTuple_SetItem(output,0,PyInt_FromLong((long)self->width));
-        PyTuple_SetItem(output,1,PyInt_FromLong((long)self->height));
-        return output;
-    }
-SWIGINTERN rectObj *new_rectObj(double minx,double miny,double maxx,double maxy,int imageunits){	
-        rectObj *rect;
-    
-        if (imageunits == 0)
-        { 
-            if (minx > maxx || miny > maxy)
-            {
-                msSetError(34,
-                    "{ 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-        else 
-        {
-            if (minx > maxx || maxy > miny) 
-            {
-                msSetError(34,
-                    "image (pixel/line) units { 'minx': %f , 'miny': %f , 'maxx': %f , 'maxy': %f }",
-                    "rectObj()", minx, miny, maxx, maxy);
-                return NULL;
-            }
-        }
-    
-        rect = (rectObj *)calloc(1, sizeof(rectObj));
-        if (!rect)
-            return(NULL);
-    
-        rect->minx = minx;
-        rect->miny = miny;
-        rect->maxx = maxx;
-        rect->maxy = maxy;
-
-        return(rect);    	
-    }
-SWIGINTERN void delete_rectObj(rectObj *self){
-        free(self);
-    }
-SWIGINTERN int rectObj_project(rectObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectRect(projin, projout, self);
-    }
-SWIGINTERN double rectObj_fit(rectObj *self,int width,int height){
-        return  msAdjustExtent(self, width, height);
-    }
-SWIGINTERN int rectObj_draw(rectObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        shapeObj shape;
-
-        msInitShape(&shape);
-        msRectToPolygon(*self, &shape);
-        shape.classindex = classindex;
-        if(text && layer->class[classindex]->numlabels > 0) {
-          shape.text = strdup(text);
-          msShapeGetAnnotation(layer,&shape);
-        }
-        
-        msDrawShape(map, layer, &shape, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-
-        msFreeShape(&shape);
-    
-        return MS_SUCCESS;
-    }
-SWIGINTERN pointObj *rectObj_getCenter(rectObj *self){
-		pointObj *center;
-        center = (pointObj *)calloc(1, sizeof(pointObj));
-        if (!center) {
-            msSetError(2, "Failed to allocate memory for point", "getCenter()");
-            return NULL;
-        }
-        center->x = (self->minx + self->maxx)/2;
-        center->y = (self->miny + self->maxy)/2;
-        
-        return center;
-    }
-SWIGINTERN shapeObj *rectObj_toPolygon(rectObj *self){
-        lineObj line = {0,NULL};
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = MS_SHAPE_POLYGON;
-  
-        line.point = (pointObj *)malloc(sizeof(pointObj)*5);
-        line.point[0].x = self->minx;
-        line.point[0].y = self->miny;
-        line.point[1].x = self->minx;
-        line.point[1].y = self->maxy;
-        line.point[2].x = self->maxx;
-        line.point[2].y = self->maxy;
-        line.point[3].x = self->maxx;
-        line.point[3].y = self->miny;
-        line.point[4].x = line.point[0].x;
-        line.point[4].y = line.point[0].y;
-  
-        line.numpoints = 5;
-  
-        msAddLine(shape, &line);
-        msComputeBounds(shape);
-        
-        free(line.point);
-
-        return shape;
-    }
-SWIGINTERN char *rectObj_toString(rectObj *self){
-        char buffer[256];
-        char fmt[]="{ 'minx': %.16g , 'miny': %.16g , 'maxx': %.16g , 'maxy': %.16g }";
-        msRectToFormattedString(self, (char *) &fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN pointObj *new_pointObj(double x,double y,double z,double m){
-        pointObj *p;
-        p = (pointObj *)calloc(1,sizeof(pointObj));
-        if (!p) return NULL;
-        p->x = x;
-        p->y = y;
-
-
-
-
-        return p;
-    }
-SWIGINTERN void delete_pointObj(pointObj *self){
-        free(self);
-    }
-SWIGINTERN int pointObj_project(pointObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectPoint(projin, projout, self);
-    }
-SWIGINTERN int pointObj_draw(pointObj *self,mapObj *map,layerObj *layer,imageObj *image,int classindex,char *text){
-        return msDrawPoint(map, layer, self, image, classindex, text);
-    }
-SWIGINTERN double pointObj_distanceToPoint(pointObj *self,pointObj *point){
-        return msDistancePointToPoint(self, point);
-    }
-SWIGINTERN double pointObj_distanceToSegment(pointObj *self,pointObj *a,pointObj *b){
-        return msDistancePointToSegment(self, a, b);
-    }
-SWIGINTERN double pointObj_distanceToShape(pointObj *self,shapeObj *shape){
-        return msDistancePointToShape(self, shape);
-    }
-SWIGINTERN int pointObj_setXY(pointObj *self,double x,double y,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-	
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZ(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int pointObj_setXYZM(pointObj *self,double x,double y,double z,double m){
-        self->x = x;
-        self->y = y;
-
-
-
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *pointObj_toString(pointObj *self){
-        char buffer[256];
-        const char *fmt;
-
-
-
-
-
-
-
-        fmt = "{ 'x': %.16g, 'y': %.16g }";
-
-	
-        msPointToFormattedString(self, fmt, (char *) &buffer, 256);
-        return strdup(buffer);
-    }
-SWIGINTERN shapeObj *pointObj_toShape(pointObj *self){
-      shapeObj *shape;
-
-      shape = (shapeObj *) malloc(sizeof(shapeObj));
-      msInitShape(shape);
-    
-      shape->type = MS_SHAPE_POINT;
-      shape->line = (lineObj *) malloc(sizeof(lineObj));
-      shape->numlines = 1;
-      shape->line[0].point = (pointObj *) malloc(sizeof(pointObj));
-      shape->line[0].numpoints = 1;
-
-      shape->line[0].point[0].x = self->x;
-      shape->line[0].point[0].y = self->y;
-
-
-
-
-
-      return shape;
-    }
-SWIGINTERN lineObj *new_lineObj(){
-        lineObj *line;
-
-        line = (lineObj *)malloc(sizeof(lineObj));
-        if (!line)
-            return(NULL);
-
-        line->numpoints=0;
-        line->point=NULL;
-
-        return line;
-    }
-SWIGINTERN void delete_lineObj(lineObj *self){
-        free(self->point);
-        free(self);		
-    }
-SWIGINTERN int lineObj_project(lineObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectLine(projin, projout, self);
-    }
-SWIGINTERN pointObj *lineObj_get(lineObj *self,int i){
-        if (i<0 || i>=self->numpoints)
-            return NULL;
-        else
-            return &(self->point[i]);
-    }
-SWIGINTERN int lineObj_add(lineObj *self,pointObj *p){
-        if (self->numpoints == 0) { /* new */	
-        self->point = (pointObj *)malloc(sizeof(pointObj));      
-        if (!self->point)
-	        return MS_FAILURE;
-        } else { /* extend array */
-            self->point = (pointObj *)realloc(self->point, 
-                                      sizeof(pointObj)*(self->numpoints+1));
-        if (!self->point)
-	        return MS_FAILURE;
-        }
-
-        self->point[self->numpoints].x = p->x;
-        self->point[self->numpoints].y = p->y;
-        self->numpoints++;
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN int lineObj_set(lineObj *self,int i,pointObj *p){
-        if (i<0 || i>=self->numpoints)
-            return MS_FAILURE;
-
-        self->point[i].x = p->x;
-        self->point[i].y = p->y;
-        return MS_SUCCESS;    
-    }
-SWIGINTERN shapeObj *new_shapeObj(int type){
-        shapeObj *shape;
-
-	shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-
-        msInitShape(shape);
-        if(type >= 0) shape->type = type;
-        
-        return shape;
-    }
-SWIGINTERN void delete_shapeObj(shapeObj *self){
-        msFreeShape(self);
-        free(self);		
-    }
-SWIGINTERN shapeObj *shapeObj_fromWKT(char *wkt){
-	shapeObj *shape;
-        
-        if(!wkt) return NULL;
-
-        shape = msShapeFromWKT(wkt);
-	if(!shape) return NULL;
-
-	return shape;
-    }
-SWIGINTERN int shapeObj_project(shapeObj *self,projectionObj *projin,projectionObj *projout){
-        return msProjectShape(projin, projout, self);
-    }
-SWIGINTERN lineObj *shapeObj_get(shapeObj *self,int i){
-        if (i<0 || i>=self->numlines)
-            return NULL;
-        else
-            return &(self->line[i]);
-    }
-SWIGINTERN int shapeObj_add(shapeObj *self,lineObj *line){
-        return msAddLine(self, line);
-    }
-SWIGINTERN int shapeObj_draw(shapeObj *self,mapObj *map,layerObj *layer,imageObj *image){
-        return msDrawShape(map, layer, self, image, -1, MS_DRAWMODE_FEATURES|MS_DRAWMODE_LABELS);
-    }
-SWIGINTERN void shapeObj_setBounds(shapeObj *self){    
-        msComputeBounds(self);
-        return;
-    }
-SWIGINTERN shapeObj *shapeObj_clone(shapeObj *self){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msCopyShape(self, shape);
-        return shape;
-    }
-SWIGINTERN int shapeObj_copy(shapeObj *self,shapeObj *dest){
-        return(msCopyShape(self, dest));
-    }
-SWIGINTERN char *shapeObj_toWKT(shapeObj *self){
-        return msShapeToWKT(self);
-    }
-SWIGINTERN shapeObj *shapeObj_buffer(shapeObj *self,double width){ return msGEOSBuffer(self, width); }
-SWIGINTERN shapeObj *shapeObj_simplify(shapeObj *self,double tolerance){ return msGEOSSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_topologyPreservingSimplify(shapeObj *self,double tolerance){ return msGEOSTopologyPreservingSimplify(self, tolerance); }
-SWIGINTERN shapeObj *shapeObj_convexHull(shapeObj *self){ return msGEOSConvexHull(self); }
-SWIGINTERN shapeObj *shapeObj_boundary(shapeObj *self){ return msGEOSBoundary(self); }
-SWIGINTERN pointObj *shapeObj_getCentroid(shapeObj *self){ return msGEOSGetCentroid(self); }
-SWIGINTERN shapeObj *shapeObj_Union(shapeObj *self,shapeObj *shape){ return msGEOSUnion(self, shape); }
-SWIGINTERN shapeObj *shapeObj_intersection(shapeObj *self,shapeObj *shape){ return msGEOSIntersection(self, shape); }
-SWIGINTERN shapeObj *shapeObj_difference(shapeObj *self,shapeObj *shape){ return msGEOSDifference(self, shape); }
-SWIGINTERN shapeObj *shapeObj_symDifference(shapeObj *self,shapeObj *shape){ return msGEOSSymDifference(self, shape); }
-SWIGINTERN int shapeObj_contains__SWIG_0(shapeObj *self,shapeObj *shape){ return msGEOSContains(self, shape); }
-SWIGINTERN int shapeObj_overlaps(shapeObj *self,shapeObj *shape){ return msGEOSOverlaps(self, shape); }
-SWIGINTERN int shapeObj_within(shapeObj *self,shapeObj *shape){ return msGEOSWithin(self, shape); }
-SWIGINTERN int shapeObj_crosses(shapeObj *self,shapeObj *shape){ return msGEOSCrosses(self, shape); }
-SWIGINTERN int shapeObj_intersects(shapeObj *self,shapeObj *shape){ return msGEOSIntersects(self, shape); }
-SWIGINTERN int shapeObj_touches(shapeObj *self,shapeObj *shape){ return msGEOSTouches(self, shape); }
-SWIGINTERN int shapeObj_equals(shapeObj *self,shapeObj *shape){ return msGEOSEquals(self, shape); }
-SWIGINTERN int shapeObj_disjoint(shapeObj *self,shapeObj *shape){ return msGEOSDisjoint(self, shape); }
-SWIGINTERN double shapeObj_getArea(shapeObj *self){ return msGEOSArea(self); }
-SWIGINTERN double shapeObj_getLength(shapeObj *self){ return msGEOSLength(self); }
-SWIGINTERN char *shapeObj_getValue(shapeObj *self,int i){
-        if (i >= 0 && i < self->numvalues && self->values)
-            return (self->values[i]);
-        else
-            return NULL;
-    }
-SWIGINTERN int shapeObj_contains__SWIG_1(shapeObj *self,pointObj *point){
-        if (self->type == MS_SHAPE_POLYGON)
-            return msIntersectPointPolygon(point, self);
-        
-        return -1;
-    }
-SWIGINTERN double shapeObj_distanceToPoint(shapeObj *self,pointObj *point){
-        return msDistancePointToShape(point, self); /* should there be a GEOS version of this? */
-    }
-SWIGINTERN double shapeObj_distanceToShape(shapeObj *self,shapeObj *shape){
-	return msGEOSDistance(self, shape); /* note this calls msDistanceShapeToShape() if GEOS support is not present */
-    }
-SWIGINTERN pointObj *shapeObj_getLabelPoint(shapeObj *self){
-        pointObj *point = (pointObj *)calloc(1, sizeof(pointObj));
-        if (point == NULL) {
-            msSetError(2, "Failed to allocate memory for point", "labelPoint()");
-            return NULL;
-        }
-
-        if(self->type == MS_SHAPE_POLYGON && msPolygonLabelPoint(self, point, -1) == MS_SUCCESS)
-            return point;
-
-        free(point);
-        return NULL;
-    }
-SWIGINTERN int shapeObj_setValue(shapeObj *self,int i,char *value){
-        if (!self->values || !value)
-        {
-            msSetError(19, "Can't set value", "setValue()");
-            return MS_FAILURE;
-        }
-        if (i >= 0 && i < self->numvalues)
-        {
-            msFree(self->values[i]);
-            self->values[i] = strdup(value);
-            if (!self->values[i])
-            {
-                return MS_FAILURE;
-            }
-            else return MS_SUCCESS;
-        }
-        else
-        {
-            msSetError(19, "Invalid value index", 
-                                  "setValue()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN void shapeObj_initValues(shapeObj *self,int numvalues){
-        int i;
-        
-        if(self->values) msFreeCharArray(self->values, self->numvalues);
-        self->values = NULL;
-        self->numvalues = 0;
-        
-        /* Allocate memory for the values */
-        if (numvalues > 0) {
-            if ((self->values = (char **)malloc(sizeof(char *)*numvalues)) == NULL) {
-                msSetError(2, "Failed to allocate memory for values", "shapeObj()");
-                return;
-            } else {
-                for (i=0; i<numvalues; i++) self->values[i] = strdup("");
-            }
-            self->numvalues = numvalues;
-        }
-    }
-
-SWIGINTERNINLINE PyObject*
-  SWIG_From_unsigned_SS_int  (unsigned int value)
-{
-  return PyInt_FromSize_t((size_t) value);
-}
-
-SWIGINTERN char *DBFInfo_getFieldName(DBFInfo *self,int iField){
-        static char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, 
-                          &pnDecimals);
-	    return pszFieldName;
-    }
-SWIGINTERN int DBFInfo_getFieldWidth(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnWidth;
-    }
-SWIGINTERN int DBFInfo_getFieldDecimals(DBFInfo *self,int iField){
-        char pszFieldName[1000];
-	    int pnWidth;
-	    int pnDecimals;
-	    msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth,
-                          &pnDecimals);
-	    return pnDecimals;
-    }
-SWIGINTERN int DBFInfo_getFieldType(DBFInfo *self,int iField){
-	    return msDBFGetFieldInfo(self, iField, NULL, NULL, NULL);
-    }
-SWIGINTERN shapefileObj *new_shapefileObj(char *filename,int type){    
-        shapefileObj *shapefile;
-        int status;
-
-        shapefile = (shapefileObj *)malloc(sizeof(shapefileObj));
-        if (!shapefile)
-            return NULL;
-
-        if (type == -1)
-            status = msShapefileOpen(shapefile, "rb", filename, 1);
-        else if (type == -2)
-            status = msShapefileOpen(shapefile, "rb+", filename, 1);
-        else
-            status = msShapefileCreate(shapefile, filename, type);
-
-        if (status == -1) {
-            msShapefileClose(shapefile);
-            free(shapefile);
-            return NULL;
-        }
- 
-        return(shapefile);
-    }
-SWIGINTERN void delete_shapefileObj(shapefileObj *self){
-        msShapefileClose(self);
-        free(self);  
-    }
-SWIGINTERN int shapefileObj_get(shapefileObj *self,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN shapeObj *shapefileObj_getShape(shapefileObj *self,int i){
-        shapeObj *shape;
-        shape = (shapeObj *)malloc(sizeof(shapeObj));
-        if (!shape)
-            return NULL;
-        msInitShape(shape);
-        shape->type = self->type;
-        msSHPReadShape(self->hSHP, i, shape);
-        return shape;
-
-    }
-SWIGINTERN int shapefileObj_getPoint(shapefileObj *self,int i,pointObj *point){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msSHPReadPoint(self->hSHP, i, point);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int shapefileObj_getTransformed(shapefileObj *self,mapObj *map,int i,shapeObj *shape){
-        if (i<0 || i>=self->numshapes)
-            return MS_FAILURE;
-
-        msFreeShape(shape); /* frees all lines and points before re-filling */
-        msSHPReadShape(self->hSHP, i, shape);
-        msTransformShapeSimplify(shape, map->extent, map->cellsize);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN void shapefileObj_getExtent(shapefileObj *self,int i,rectObj *rect){
-        msSHPReadBounds(self->hSHP, i, rect);
-    }
-SWIGINTERN int shapefileObj_add(shapefileObj *self,shapeObj *shape){
-        /* Trap NULL or empty shapes -- bug 1201 */
-        if (!shape) 
-        {
-            msSetError(19, "Can't add NULL shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-        else if (!shape->line)
-        {
-            msSetError(19, "Can't add empty shape", "shapefileObj::add");
-            return MS_FAILURE;
-        }
-
-        return msSHPWriteShape(self->hSHP, shape);	
-    }
-SWIGINTERN int shapefileObj_addPoint(shapefileObj *self,pointObj *point){    
-        return msSHPWritePoint(self->hSHP, point);	
-    }
-SWIGINTERN DBFInfo *shapefileObj_getDBF(shapefileObj *self){
-    	return self->hDBF;
-    }
-SWIGINTERN projectionObj *new_projectionObj(char *proj4){
-        int status;
-        projectionObj *proj=NULL;
-
-        proj = (projectionObj *)malloc(sizeof(projectionObj));
-        if (!proj) return NULL;
-        msInitProjection(proj);
-
-        status = msLoadProjectionString(proj, proj4);
-        if (status == -1) {
-            msFreeProjection(proj);
-            free(proj);
-            return NULL;
-        }
-
-        return proj;
-    }
-SWIGINTERN void delete_projectionObj(projectionObj *self){
-        msFreeProjection(self);
-        free(self);		
-    }
-SWIGINTERN int projectionObj_setWKTProjection(projectionObj *self,char *wkt){
-        /* no debug output here */
-        return msOGCWKT2ProjectionObj(wkt, self, 0);
-    }
-SWIGINTERN int projectionObj_getUnits(projectionObj *self){
-      return GetMapserverUnitUsingProj(self);
-    }
-SWIGINTERN colorObj *new_colorObj(int red,int green,int blue,int pen){
-        colorObj *color;
-        
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "colorObj()");
-            return NULL;
-        }
-    
-        color = (colorObj *)calloc(1, sizeof(colorObj));
-        if (!color)
-            return(NULL);
-    
-        MS_INIT_COLOR(*color, red, green, blue, 255);
-
-        return(color);    	
-    }
-SWIGINTERN void delete_colorObj(colorObj *self){
-        free(self);
-    }
-SWIGINTERN int colorObj_setRGB(colorObj *self,int red,int green,int blue){
-        /* Check colors */
-        if (red > 255 || green > 255 || blue > 255) {
-            msSetError(12, "Invalid color index.", "setRGB()");
-            return MS_FAILURE;
-        }
-    
-        MS_INIT_COLOR(*self, red, green, blue, 255);
-        return MS_SUCCESS;
-    }
-SWIGINTERN int colorObj_setHex(colorObj *self,char *psHexColor){
-        int red, green, blue;
-        if (psHexColor && strlen(psHexColor)== 7 && psHexColor[0] == '#') {
-            red = msHexToInt(psHexColor+1);
-            green = msHexToInt(psHexColor+3);
-            blue= msHexToInt(psHexColor+5);
-            if (red > 255 || green > 255 || blue > 255) {
-                msSetError(12, "Invalid color index.", "setHex()");
-                return MS_FAILURE;
-            }
-
-            MS_INIT_COLOR(*self, red, green, blue, 255);
-            return MS_SUCCESS;
-        }
-        else {
-            msSetError(12, "Invalid hex color.", "setHex()");
-            return MS_FAILURE;
-        }
-    }
-SWIGINTERN char *colorObj_toHex(colorObj *self){
-        char hexcolor[8] = "";
-
-        if (!self) 
-        {
-            msSetError(12, "Can't express NULL color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        if (self->red < 0 || self->green < 0 || self->blue < 0) 
-        {
-            msSetError(12, "Can't express invalid color as hex",
-                       "toHex()");
-            return NULL;
-        }
-        snprintf(hexcolor, 8, "#%02x%02x%02x",
-                 self->red, self->green, self->blue);
-        return strdup(hexcolor);
-    }
-SWIGINTERN struct symbolObj *new_symbolObj(char *symbolname,char const *imagefile){
-        symbolObj *symbol;
-        symbol = (symbolObj *) malloc(sizeof(symbolObj));
-        initSymbol(symbol);
-        symbol->name = strdup(symbolname);
-        if (imagefile) {
-            msLoadImageSymbol(symbol, imagefile);
-        }
-        return symbol;
-    }
-SWIGINTERN void delete_symbolObj(struct symbolObj *self){
-		if (self) {
-            if (msFreeSymbol(self)==MS_SUCCESS) {
-            	free(self);
-				self=NULL;
-			}
-        }
-    }
-SWIGINTERN int symbolObj_setImagepath(struct symbolObj *self,char const *imagefile){
-	return msLoadImageSymbol(self, imagefile);
-    }
-SWIGINTERN int symbolObj_setPoints(struct symbolObj *self,lineObj *line){
-        int i;
-	self->sizex = 0;
-	self->sizey = 0;
-        for (i=0; i<line->numpoints; i++) {
-            MS_COPYPOINT(&(self->points[i]), &(line->point[i]));
-	    self->sizex = MS_MAX(self->sizex, self->points[i].x);
-	    self->sizey = MS_MAX(self->sizey, self->points[i].y);
-        }
-        self->numpoints = line->numpoints;
-        return self->numpoints;
-    }
-SWIGINTERN lineObj *symbolObj_getPoints(struct symbolObj *self){
-        int i;
-        lineObj *line;
-        line = (lineObj *) malloc(sizeof(lineObj));
-        line->point = (pointObj *) malloc(sizeof(pointObj)*(self->numpoints));
-        for (i=0; i<self->numpoints; i++) {
-            line->point[i].x = self->points[i].x;
-            line->point[i].y = self->points[i].y;
-        }
-        line->numpoints = self->numpoints;
-        return line;
-    }
-SWIGINTERN imageObj *symbolObj_getImage(struct symbolObj *self,outputFormatObj *input_format){
-        imageObj *image = NULL;
-        outputFormatObj *format = NULL;
-        rendererVTableObj *renderer = NULL;
-
-        if (self->type != MS_SYMBOL_PIXMAP)
-        {
-            msSetError(4, "Can't return image from non-pixmap symbol",
-                       "getImage()");
-            return NULL;
-        }
-    
-        if (input_format)
-        {
-            format = input_format;
-        }
-        else 
-        {
-            format = msCreateDefaultOutputFormat(NULL, "GD/GIF", "gdgif");
-            if (format == NULL)
-                format = msCreateDefaultOutputFormat(NULL, "GD/PNG", "gdpng");
-
-            if (format)
-                msInitializeRendererVTable(format);
-        }
-        
-        if (format == NULL) 
-        {
-            msSetError(15, "Could not create output format",
-                       "getImage()");
-            return NULL;
-        }
-
-        renderer = format->vtable;
-        msPreloadImageSymbol(renderer, self);
-        if (self->pixmap_buffer) 
-        {
-            image = msImageCreate(self->pixmap_buffer->width, self->pixmap_buffer->height, format, NULL, NULL,
-                                  MS_DEFAULT_RESOLUTION, MS_DEFAULT_RESOLUTION, NULL);
-            renderer->mergeRasterBuffer(image, self->pixmap_buffer, 1.0, 0, 0, 0, 0, 
-                                        self->pixmap_buffer->width, self->pixmap_buffer->height);
-        }
-
-        return image;
-    }
-SWIGINTERN int symbolObj_setImage(struct symbolObj *self,imageObj *image){
-        rendererVTableObj *renderer = NULL;
-        
-        renderer = image->format->vtable;
-        
-        if (self->pixmap_buffer) {
-            msFreeRasterBuffer(self->pixmap_buffer);
-            free(self->pixmap_buffer);
-        }
-        
-        self->pixmap_buffer = (rasterBufferObj*)malloc(sizeof(rasterBufferObj));
-        if (!self->pixmap_buffer) {
-            msSetError(2, NULL, "setImage()");
-            return MS_FAILURE;
-        }
-        self->type = MS_SYMBOL_PIXMAP;
-        renderer->getRasterBufferCopy(image, self->pixmap_buffer);
-
-        return MS_SUCCESS;
-    }
-SWIGINTERN struct errorObj *new_errorObj(){    
-        return msGetErrorObj();
-    }
-SWIGINTERN void delete_errorObj(struct errorObj *self){}
-SWIGINTERN errorObj *errorObj_next(struct errorObj *self){
-        errorObj *ep;	
-
-        if (self == NULL || self->next == NULL) return NULL;
-
-        ep = msGetErrorObj();
-        while (ep != self) {
-            /* We reached end of list of active errorObj and 
-               didn't find the errorObj... this is bad! */
-            if (ep->next == NULL) return NULL;
-            ep = ep->next;
-        }
-    
-        return ep->next;
-    }
-
-#include "../../mapserver.h"
-
-
-#include "../../maphash.h"
-
-SWIGINTERN hashTableObj *new_hashTableObj(){
-
-        return msCreateHashTable();
-    }
-SWIGINTERN void delete_hashTableObj(hashTableObj *self){
-        msFreeHashTable(self);
-    }
-SWIGINTERN int hashTableObj_set(hashTableObj *self,char *key,char *value){
-        if (msInsertHashTable(self, key, value) == NULL) {
-	        return MS_FAILURE;
-        }
-        return MS_SUCCESS;
-    }
-SWIGINTERN char *hashTableObj_get(hashTableObj *self,char *key,char *default_value){
-        char *value = NULL;
-        if (!key) {
-            msSetError(16, "NULL key", "get");
-        }
-     
-        value = (char *) msLookupHashTable(self, key);
-        if (!value) {
-            return default_value;
-        }
-        return value;
-    }
-SWIGINTERN int hashTableObj_remove(hashTableObj *self,char *key){
-        return msRemoveHashTable(self, key);
-    }
-SWIGINTERN void hashTableObj_clear(hashTableObj *self){
-        msFreeHashItems(self);
-        initHashTable(self);
-    }
-SWIGINTERN char const *hashTableObj_nextKey(hashTableObj *self,char *prevkey){
-        return msNextKeyFromHashTable(self, (const char *) prevkey);
-    }
-
-static char *msGetEnvURL( const char *key, void *thread_context )
-{
-    if( strcmp(key,"REQUEST_METHOD") == 0 )
-        return "GET";
-
-    if( strcmp(key,"QUERY_STRING") == 0 )
-        return (char *) thread_context;
-
-    return NULL;
-}
-
-SWIGINTERN cgiRequestObj *new_cgiRequestObj(){
-        cgiRequestObj *request;
-
-        request = msAllocCgiObj();
-        if (!request) {
-            msSetError(13, "Failed to initialize object","OWSRequest()");
-            return NULL;
-        }
-        
-        return request;
-    }
-SWIGINTERN void delete_cgiRequestObj(cgiRequestObj *self){
-        msFreeCgiObj(self);
-    }
-SWIGINTERN int cgiRequestObj_loadParams(cgiRequestObj *self){
-	self->NumParams = loadParams( self, NULL, NULL, 0, NULL);
-	return self->NumParams;
-    }
-SWIGINTERN int cgiRequestObj_loadParamsFromURL(cgiRequestObj *self,char const *url){
-	self->NumParams = loadParams( self, msGetEnvURL, NULL, 0, (void*)url );
-	return self->NumParams;
-    }
-SWIGINTERN void cgiRequestObj_setParameter(cgiRequestObj *self,char *name,char *value){
-        int i;
-        
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "setItem()", 100);
-        }
-        
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                free(self->ParamValues[i]);
-                self->ParamValues[i] = strdup(value);
-                break;
-            }
-        }
-        if (i == self->NumParams) {
-            self->ParamNames[self->NumParams] = strdup(name);
-            self->ParamValues[self->NumParams] = strdup(value);
-            self->NumParams++;
-        }
-    }
-SWIGINTERN void cgiRequestObj_addParameter(cgiRequestObj *self,char *name,char *value){
-        if (self->NumParams == 100) {
-            msSetError(31, "Maximum number of items, %d, has been reached", "addParameter()", 100);
-        }
-        self->ParamNames[self->NumParams] = strdup(name);
-        self->ParamValues[self->NumParams] = strdup(value);
-        self->NumParams++;
-    }
-SWIGINTERN char *cgiRequestObj_getName(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getName()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamNames[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValue(cgiRequestObj *self,int index){
-        if (index < 0 || index >= self->NumParams) {
-            msSetError(31, "Invalid index, valid range is [0, %d]", "getValue()", self->NumParams-1);
-            return NULL;
-        }
-        return self->ParamValues[index];
-    }
-SWIGINTERN char *cgiRequestObj_getValueByName(cgiRequestObj *self,char const *name){
-        int i;
-        for (i=0; i<self->NumParams; i++) {
-            if (strcasecmp(self->ParamNames[i], name) == 0) {
-                return self->ParamValues[i];
-            }
-        }
-        return NULL;
-    }
-
-
-const char *msIO_getStdoutBufferString() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	return "";
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    /* write one zero byte and backtrack if it isn't already there */
-    if( buf->data_len == 0 || buf->data[buf->data_offset] != '\0' ) {
-        msIO_bufferWrite( buf, "", 1 );
-	buf->data_offset--;
-    }
-
-    return (const char *) (buf->data);
-}
-
-gdBuffer msIO_getStdoutBufferBytes() {
-    msIOContext *ctx = msIO_getHandler( (FILE *) "stdout" );
-    msIOBuffer  *buf;
-    gdBuffer     gdBuf;
-
-    if( ctx == NULL || ctx->write_channel == MS_FALSE 
-        || strcmp(ctx->label,"buffer") != 0 )
-    {
-	msSetError( MS_MISCERR, "Can't identify msIO buffer.",
-                    "msIO_getStdoutBufferString" );
-	gdBuf.data = (unsigned char*)"";
-	gdBuf.size = 0;
-	gdBuf.owns_data = MS_FALSE;
-	return gdBuf;
-    }
-
-    buf = (msIOBuffer *) ctx->cbData;
-
-    gdBuf.data = buf->data;
-    gdBuf.size = buf->data_offset;
-    gdBuf.owns_data = MS_TRUE;
-
-    /* we are seizing ownership of the buffer contents */
-    buf->data_offset = 0;
-    buf->data_len = 0;
-    buf->data = NULL;
-
-    return gdBuf;
-}
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-SWIGINTERN PyObject *_wrap_new_intarray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  size_t arg1 ;
-  size_t val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  intarray *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:new_intarray",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_size_t(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_intarray" "', argument " "1"" of type '" "size_t""'");
-  } 
-  arg1 = (size_t)(val1);
-  result = (intarray *)new_intarray(arg1);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_intarray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  intarray *arg1 = (intarray *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_intarray",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intarray, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_intarray" "', argument " "1"" of type '" "intarray *""'"); 
-  }
-  arg1 = (intarray *)(argp1);
-  delete_intarray(arg1);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_intarray___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  intarray *arg1 = (intarray *) 0 ;
-  size_t arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  size_t val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:intarray___getitem__",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray___getitem__" "', argument " "1"" of type '" "intarray *""'"); 
-  }
-  arg1 = (intarray *)(argp1);
-  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intarray___getitem__" "', argument " "2"" of type '" "size_t""'");
-  } 
-  arg2 = (size_t)(val2);
-  result = (int)intarray___getitem__(arg1,arg2);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_intarray___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  intarray *arg1 = (intarray *) 0 ;
-  size_t arg2 ;
-  int arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  size_t val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:intarray___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray___setitem__" "', argument " "1"" of type '" "intarray *""'"); 
-  }
-  arg1 = (intarray *)(argp1);
-  ecode2 = SWIG_AsVal_size_t(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "intarray___setitem__" "', argument " "2"" of type '" "size_t""'");
-  } 
-  arg2 = (size_t)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "intarray___setitem__" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  intarray___setitem__(arg1,arg2,arg3);
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_intarray_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  intarray *arg1 = (intarray *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:intarray_cast",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_intarray, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_cast" "', argument " "1"" of type '" "intarray *""'"); 
-  }
-  arg1 = (intarray *)(argp1);
-  result = (int *)intarray_cast(arg1);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_intarray_frompointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int *arg1 = (int *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  intarray *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:intarray_frompointer",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "intarray_frompointer" "', argument " "1"" of type '" "int *""'"); 
-  }
-  arg1 = (int *)(argp1);
-  result = (intarray *)intarray_frompointer(arg1);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *intarray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_intarray, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_fontSetObj_filename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:fontSetObj_filename_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_filename_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-  }
-  arg1 = (fontSetObj *)(argp1);
-  result = (char *) ((arg1)->filename);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_fontSetObj_numfonts_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:fontSetObj_numfonts_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_numfonts_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-  }
-  arg1 = (fontSetObj *)(argp1);
-  result = (int) ((arg1)->numfonts);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_fontSetObj_fonts_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:fontSetObj_fonts_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_fontSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fontSetObj_fonts_get" "', argument " "1"" of type '" "fontSetObj *""'"); 
-  }
-  arg1 = (fontSetObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->fonts);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_fontSetObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  fontSetObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_fontSetObj")) SWIG_fail;
-  {
-    result = (fontSetObj *)calloc(1, sizeof(fontSetObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fontSetObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_fontSetObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  fontSetObj *arg1 = (fontSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_fontSetObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_fontSetObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_fontSetObj" "', argument " "1"" of type '" "fontSetObj *""'"); 
-  }
-  arg1 = (fontSetObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *fontSetObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_fontSetObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_clusterObj_maxdistance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:clusterObj_maxdistance_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_maxdistance_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "clusterObj_maxdistance_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxdistance = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_maxdistance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_maxdistance_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_maxdistance_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  result = (double) ((arg1)->maxdistance);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_buffer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:clusterObj_buffer_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_buffer_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "clusterObj_buffer_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->buffer = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_buffer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_buffer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_buffer_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  result = (double) ((arg1)->buffer);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_region_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:clusterObj_region_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_region_set" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    if (arg1->region) free((char*)arg1->region);
-    if (arg2) {
-      arg1->region = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->region,arg2);
-    } else {
-      arg1->region = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_region_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_region_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_region_get" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  result = (char *) ((arg1)->region);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:clusterObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_updateFromString" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (int)clusterObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_convertToString" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (char *)clusterObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_setGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:clusterObj_setGroup",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_setGroup" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (int)clusterObj_setGroup(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_getGroupString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_getGroupString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_getGroupString" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (char *)clusterObj_getGroupString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_setFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:clusterObj_setFilter",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_setFilter" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (int)clusterObj_setFilter(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_clusterObj_getFilterString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:clusterObj_getFilterString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "clusterObj_getFilterString" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    result = (char *)clusterObj_getFilterString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_clusterObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_clusterObj")) SWIG_fail;
-  {
-    result = (clusterObj *)calloc(1, sizeof(clusterObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_clusterObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_clusterObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  clusterObj *arg1 = (clusterObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_clusterObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_clusterObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_clusterObj" "', argument " "1"" of type '" "clusterObj *""'"); 
-  }
-  arg1 = (clusterObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *clusterObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_clusterObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_numformatoptions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_numformatoptions_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_numformatoptions_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->numformatoptions);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:outputFormatObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_name_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_name_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_mimetype_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:outputFormatObj_mimetype_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_mimetype_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    if (arg1->mimetype) free((char*)arg1->mimetype);
-    if (arg2) {
-      arg1->mimetype = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mimetype,arg2);
-    } else {
-      arg1->mimetype = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_mimetype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_mimetype_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_mimetype_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (char *) ((arg1)->mimetype);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_driver_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:outputFormatObj_driver_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_driver_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    if (arg1->driver) free((char*)arg1->driver);
-    if (arg2) {
-      arg1->driver = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->driver,arg2);
-    } else {
-      arg1->driver = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_driver_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_driver_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_driver_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (char *) ((arg1)->driver);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_extension_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:outputFormatObj_extension_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_extension_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    if (arg1->extension) free((char*)arg1->extension);
-    if (arg2) {
-      arg1->extension = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->extension,arg2);
-    } else {
-      arg1->extension = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_extension_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_extension_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_extension_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (char *) ((arg1)->extension);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_renderer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_renderer_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_renderer_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_renderer_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->renderer = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_renderer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_renderer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_renderer_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->renderer);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_imagemode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_imagemode_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_imagemode_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_imagemode_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->imagemode = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_imagemode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_imagemode_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_imagemode_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->imagemode);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_transparent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_transparent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_transparent_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_transparent_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->transparent = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_transparent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_transparent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_transparent_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->transparent);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_bands_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_bands_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_bands_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_bands_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->bands = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_bands_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_bands_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_bands_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->bands);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_inmapfile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_inmapfile_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_inmapfile_set" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_inmapfile_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->inmapfile = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_inmapfile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_inmapfile_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_inmapfile_get" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  result = (int) ((arg1)->inmapfile);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_outputFormatObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) NULL ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  PyObject * obj0 = 0 ;
-  outputFormatObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O|z:new_outputFormatObj",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_outputFormatObj" "', argument " "1"" of type '" "char const *""'");
-  }
-  arg1 = (char *)(buf1);
-  {
-    result = (outputFormatObj *)new_outputFormatObj((char const *)arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, SWIG_POINTER_NEW |  0 );
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_outputFormatObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_outputFormatObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_outputFormatObj" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    delete_outputFormatObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_setExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_setExtension",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setExtension" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setExtension" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    outputFormatObj_setExtension(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_setMimetype(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_setMimetype",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setMimetype" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setMimetype" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    outputFormatObj_setMimetype(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_setOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:outputFormatObj_setOption",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_setOption" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_setOption" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "outputFormatObj_setOption" "', argument " "3"" of type '" "char const *""'");
-  }
-  arg3 = (char *)(buf3);
-  {
-    outputFormatObj_setOption(arg1,(char const *)arg2,(char const *)arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:outputFormatObj_validate",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_validate" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  {
-    result = (int)outputFormatObj_validate(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_getOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) "" ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|O:outputFormatObj_getOption",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_getOption" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_getOption" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  if (obj2) {
-    res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "outputFormatObj_getOption" "', argument " "3"" of type '" "char const *""'");
-    }
-    arg3 = (char *)(buf3);
-  }
-  {
-    result = (char *)outputFormatObj_getOption(arg1,(char const *)arg2,(char const *)arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  free((char*)result);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_getOptionAt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_getOptionAt",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_getOptionAt" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "outputFormatObj_getOptionAt" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)outputFormatObj_getOptionAt(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_outputFormatObj_attachDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  outputFormatObj *arg1 = (outputFormatObj *) 0 ;
-  void *arg2 = (void *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:outputFormatObj_attachDevice",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "outputFormatObj_attachDevice" "', argument " "1"" of type '" "outputFormatObj *""'"); 
-  }
-  arg1 = (outputFormatObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "outputFormatObj_attachDevice" "', argument " "2"" of type '" "void *""'"); 
-  }
-  {
-    outputFormatObj_attachDevice(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *outputFormatObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_outputFormatObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_queryMapObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:queryMapObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_height_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_height_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:queryMapObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_width_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_width_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:queryMapObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_status_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_status_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_style_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:queryMapObj_style_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_style_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "queryMapObj_style_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->style = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_style_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_style_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_style_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  result = (int) ((arg1)->style);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:queryMapObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_color_set" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "queryMapObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_color_get" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:queryMapObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_updateFromString" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  {
-    result = (int)queryMapObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_queryMapObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:queryMapObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "queryMapObj_convertToString" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  {
-    result = (char *)queryMapObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_queryMapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_queryMapObj")) SWIG_fail;
-  {
-    result = (queryMapObj *)calloc(1, sizeof(queryMapObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_queryMapObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_queryMapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  queryMapObj *arg1 = (queryMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_queryMapObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_queryMapObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_queryMapObj" "', argument " "1"" of type '" "queryMapObj *""'"); 
-  }
-  arg1 = (queryMapObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *queryMapObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_queryMapObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_webObj_log_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_log_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_log_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->log) free((char*)arg1->log);
-    if (arg2) {
-      arg1->log = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->log,arg2);
-    } else {
-      arg1->log = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_log_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_log_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_log_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->log);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_imagepath_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_imagepath_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imagepath_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->imagepath) free((char*)arg1->imagepath);
-    if (arg2) {
-      arg1->imagepath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->imagepath,arg2);
-    } else {
-      arg1->imagepath = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_imagepath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_imagepath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imagepath_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->imagepath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_imageurl_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_imageurl_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imageurl_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->imageurl) free((char*)arg1->imageurl);
-    if (arg2) {
-      arg1->imageurl = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->imageurl,arg2);
-    } else {
-      arg1->imageurl = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_imageurl_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_imageurl_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_imageurl_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->imageurl);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_temppath_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_temppath_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_temppath_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->temppath) free((char*)arg1->temppath);
-    if (arg2) {
-      arg1->temppath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->temppath,arg2);
-    } else {
-      arg1->temppath = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_temppath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_temppath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_temppath_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->temppath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_map_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_map_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (struct mapObj *) ((arg1)->map);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_template_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_template_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_template_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_template_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_template_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_template_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->template);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_header_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_header_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_header_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->header) free((char*)arg1->header);
-    if (arg2) {
-      arg1->header = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->header,arg2);
-    } else {
-      arg1->header = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_header_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_header_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_header_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->header);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_footer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_footer_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_footer_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->footer) free((char*)arg1->footer);
-    if (arg2) {
-      arg1->footer = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->footer,arg2);
-    } else {
-      arg1->footer = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_footer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_footer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_footer_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->footer);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_empty_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_empty_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_empty_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->empty) free((char*)arg1->empty);
-    if (arg2) {
-      arg1->empty = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->empty,arg2);
-    } else {
-      arg1->empty = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_empty_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_empty_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_empty_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->empty);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_error_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_error_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->error) free((char*)arg1->error);
-    if (arg2) {
-      arg1->error = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->error,arg2);
-    } else {
-      arg1->error = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_error_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_error_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->error);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_extent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:webObj_extent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_extent_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "webObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-  }
-  arg2 = (rectObj *)(argp2);
-  if (arg1) (arg1)->extent = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_extent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_extent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_extent_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (rectObj *)& ((arg1)->extent);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_minscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:webObj_minscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_minscaledenom_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_minscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_minscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_minscaledenom_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (double) ((arg1)->minscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_maxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:webObj_maxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxscaledenom_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "webObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_maxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_maxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxscaledenom_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (double) ((arg1)->maxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_mintemplate_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_mintemplate_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_mintemplate_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->mintemplate) free((char*)arg1->mintemplate);
-    if (arg2) {
-      arg1->mintemplate = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mintemplate,arg2);
-    } else {
-      arg1->mintemplate = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_mintemplate_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_mintemplate_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_mintemplate_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->mintemplate);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_maxtemplate_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_maxtemplate_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxtemplate_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->maxtemplate) free((char*)arg1->maxtemplate);
-    if (arg2) {
-      arg1->maxtemplate = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->maxtemplate,arg2);
-    } else {
-      arg1->maxtemplate = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_maxtemplate_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_maxtemplate_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_maxtemplate_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->maxtemplate);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_queryformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_queryformat_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_queryformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->queryformat) free((char*)arg1->queryformat);
-    if (arg2) {
-      arg1->queryformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->queryformat,arg2);
-    } else {
-      arg1->queryformat = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_queryformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_queryformat_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_queryformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->queryformat);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_legendformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_legendformat_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_legendformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->legendformat) free((char*)arg1->legendformat);
-    if (arg2) {
-      arg1->legendformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->legendformat,arg2);
-    } else {
-      arg1->legendformat = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_legendformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_legendformat_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_legendformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->legendformat);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_browseformat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_browseformat_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_browseformat_set" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    if (arg1->browseformat) free((char*)arg1->browseformat);
-    if (arg2) {
-      arg1->browseformat = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->browseformat,arg2);
-    } else {
-      arg1->browseformat = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_browseformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_browseformat_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_browseformat_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (char *) ((arg1)->browseformat);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_metadata_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_metadata_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_metadata_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->metadata);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_validation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_validation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_validation_get" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->validation);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_webObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_webObj")) SWIG_fail;
-  {
-    result = (webObj *)new_webObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_webObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_webObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_webObj" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    delete_webObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:webObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_updateFromString" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    result = (int)webObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_webObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  webObj *arg1 = (webObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:webObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_webObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "webObj_convertToString" "', argument " "1"" of type '" "webObj *""'"); 
-  }
-  arg1 = (webObj *)(argp1);
-  {
-    result = (char *)webObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *webObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_webObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_styleObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_refcount_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_autoangle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_autoangle_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_autoangle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_autoangle_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->autoangle = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_autoangle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_autoangle_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_autoangle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->autoangle);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_color_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_color_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_backgroundcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_backgroundcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_backgroundcolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_backgroundcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_backgroundcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_backgroundcolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinecolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinecolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_opacity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_opacity_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_opacity_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_opacity_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->opacity = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_opacity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_opacity_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_opacity_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->opacity);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_mincolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_mincolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_mincolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_mincolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->mincolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_mincolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_mincolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_mincolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (colorObj *)& ((arg1)->mincolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_maxcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxcolor_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_maxcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->maxcolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_maxcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxcolor_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (colorObj *)& ((arg1)->maxcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minvalue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_minvalue_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minvalue_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minvalue_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minvalue = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minvalue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_minvalue_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minvalue_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->minvalue);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxvalue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_maxvalue_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxvalue_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxvalue_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxvalue = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxvalue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_maxvalue_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxvalue_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->maxvalue);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_rangeitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:styleObj_rangeitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitem_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    if (arg1->rangeitem) free((char*)arg1->rangeitem);
-    if (arg2) {
-      arg1->rangeitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->rangeitem,arg2);
-    } else {
-      arg1->rangeitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_rangeitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_rangeitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitem_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (char *) ((arg1)->rangeitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_rangeitemindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_rangeitemindex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitemindex_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_rangeitemindex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->rangeitemindex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_rangeitemindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_rangeitemindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_rangeitemindex_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->rangeitemindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_symbol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_symbol_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbol_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_symbol_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->symbol = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_symbol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_symbol_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbol_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->symbol);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_symbolname_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:styleObj_symbolname_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbolname_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    if (arg1->symbolname) free((char*)arg1->symbolname);
-    if (arg2) {
-      arg1->symbolname = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->symbolname,arg2);
-    } else {
-      arg1->symbolname = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_symbolname_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_symbolname_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_symbolname_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (char *) ((arg1)->symbolname);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_size_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_size_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_size_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->size = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_size_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_size_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->size);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_minsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_minsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->minsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_maxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_maxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->maxsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_patternlength_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_patternlength_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_patternlength_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_patternlength_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->patternlength = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_patternlength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_patternlength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_patternlength_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->patternlength);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_pattern_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double *arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_pattern_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_pattern_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_pattern_set" "', argument " "2"" of type '" "double [MS_MAXPATTERNLENGTH]""'"); 
-  } 
-  arg2 = (double *)(argp2);
-  {
-    if (arg2) {
-      size_t ii = 0;
-      for (; ii < (size_t)MS_MAXPATTERNLENGTH; ++ii) arg1->pattern[ii] = arg2[ii];
-    } else {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""pattern""' of type '""double [MS_MAXPATTERNLENGTH]""'");
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_pattern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_pattern_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_pattern_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double *)(double *) ((arg1)->pattern);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_gap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_gap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_gap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_gap_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->gap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_gap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_gap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_gap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->gap);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_initialgap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_initialgap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_initialgap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_initialgap_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->initialgap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_initialgap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_initialgap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_initialgap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->initialgap);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_position_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_position_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_position_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->position = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_position_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_position_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->position);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linecap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_linecap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linecap_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linecap_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->linecap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linecap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_linecap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linecap_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->linecap);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linejoin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_linejoin_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoin_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linejoin_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->linejoin = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linejoin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_linejoin_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoin_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->linejoin);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linejoinmaxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_linejoinmaxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoinmaxsize_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_linejoinmaxsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->linejoinmaxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_linejoinmaxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_linejoinmaxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_linejoinmaxsize_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->linejoinmaxsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_width_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_width_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_width_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->width);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_outlinewidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_outlinewidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinewidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->outlinewidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_outlinewidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_outlinewidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_outlinewidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->outlinewidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minwidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_minwidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minwidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minwidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minwidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minwidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_minwidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minwidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->minwidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxwidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_maxwidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxwidth_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxwidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxwidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxwidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_maxwidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxwidth_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->maxwidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_offsetx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_offsetx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsetx_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_offsetx_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->offsetx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_offsetx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_offsetx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsetx_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->offsetx);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_offsety_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_offsety_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsety_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_offsety_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->offsety = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_offsety_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_offsety_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_offsety_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->offsety);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_polaroffsetpixel_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_polaroffsetpixel_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetpixel_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_polaroffsetpixel_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->polaroffsetpixel = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_polaroffsetpixel_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_polaroffsetpixel_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetpixel_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->polaroffsetpixel);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_polaroffsetangle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_polaroffsetangle_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetangle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_polaroffsetangle_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->polaroffsetangle = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_polaroffsetangle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_polaroffsetangle_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_polaroffsetangle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->polaroffsetangle);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_angle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_angle_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_angle_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_angle_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->angle = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_angle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_angle_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_angle_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->angle);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_antialias_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_antialias_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_antialias_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_antialias_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->antialias = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_antialias_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_antialias_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_antialias_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (int) ((arg1)->antialias);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_minscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minscaledenom_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_minscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_minscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_minscaledenom_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->minscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_maxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxscaledenom_set" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_maxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_maxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_maxscaledenom_get" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  result = (double) ((arg1)->maxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_styleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  classObj *arg1 = (classObj *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|O:new_styleObj",&obj0)) SWIG_fail;
-  if (obj0) {
-    res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_styleObj" "', argument " "1"" of type '" "classObj *""'"); 
-    }
-    arg1 = (classObj *)(argp1);
-  }
-  {
-    result = (struct styleObj *)new_styleObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_styleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_styleObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_styleObj" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    delete_styleObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:styleObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_updateFromString" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    result = (int)styleObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_convertToString" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    result = (char *)styleObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_clone",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_clone" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    result = (styleObj *)styleObj_clone(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_setSymbolByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:styleObj_setSymbolByName",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setSymbolByName" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "styleObj_setSymbolByName" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  {
-    result = (int)styleObj_setSymbolByName(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_removeBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_removeBinding",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_removeBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_removeBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)styleObj_removeBinding(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_setBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:styleObj_setBinding",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_setBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)styleObj_setBinding(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_getBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:styleObj_getBinding",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_getBinding" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "styleObj_getBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)styleObj_getBinding(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_getGeomTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:styleObj_getGeomTransform",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_getGeomTransform" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    result = (char *)styleObj_getGeomTransform(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_styleObj_setGeomTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct styleObj *arg1 = (struct styleObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:styleObj_setGeomTransform",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "styleObj_setGeomTransform" "', argument " "1"" of type '" "struct styleObj *""'"); 
-  }
-  arg1 = (struct styleObj *)(argp1);
-  {
-    styleObj_setGeomTransform(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *styleObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_styleObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelLeaderObj_maxdistance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelLeaderObj_maxdistance_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_maxdistance_set" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelLeaderObj_maxdistance_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->maxdistance = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelLeaderObj_maxdistance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelLeaderObj_maxdistance_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_maxdistance_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  result = (int) ((arg1)->maxdistance);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelLeaderObj_gridstep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelLeaderObj_gridstep_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_gridstep_set" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelLeaderObj_gridstep_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->gridstep = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelLeaderObj_gridstep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelLeaderObj_gridstep_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_gridstep_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  result = (int) ((arg1)->gridstep);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelLeaderObj_numstyles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelLeaderObj_numstyles_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelLeaderObj_numstyles_get" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  result = (int) ((arg1)->numstyles);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelLeaderObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelLeaderObj")) SWIG_fail;
-  {
-    result = (labelLeaderObj *)calloc(1, sizeof(labelLeaderObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelLeaderObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelLeaderObj *arg1 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelLeaderObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelLeaderObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelLeaderObj" "', argument " "1"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg1 = (labelLeaderObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelLeaderObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelLeaderObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_refcount_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_font_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_font_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_font_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    if (arg1->font) free((char*)arg1->font);
-    if (arg2) {
-      arg1->font = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->font,arg2);
-    } else {
-      arg1->font = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_font_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_font_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_font_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (char *) ((arg1)->font);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  enum MS_FONT_TYPE arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_type_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_type_set" "', argument " "2"" of type '" "enum MS_FONT_TYPE""'");
-  } 
-  arg2 = (enum MS_FONT_TYPE)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum MS_FONT_TYPE result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_type_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (enum MS_FONT_TYPE) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_color_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_color_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinecolor_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinecolor_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_outlinewidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_outlinewidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinewidth_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_outlinewidth_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->outlinewidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_outlinewidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_outlinewidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_outlinewidth_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->outlinewidth);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_shadowcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowcolor_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_shadowcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->shadowcolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_shadowcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowcolor_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (colorObj *)& ((arg1)->shadowcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowsizex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_shadowsizex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizex_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_shadowsizex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->shadowsizex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowsizex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_shadowsizex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizex_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->shadowsizex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowsizey_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_shadowsizey_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizey_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_shadowsizey_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->shadowsizey = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_shadowsizey_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_shadowsizey_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_shadowsizey_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->shadowsizey);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_size_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_size_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_size_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->size = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_size_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_size_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->size);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_minsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minsize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_minsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minsize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->minsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_maxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxsize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_maxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxsize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->maxsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_position_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_position_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_position_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->position = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_position_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_position_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->position);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_offsetx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_offsetx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsetx_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_offsetx_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->offsetx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_offsetx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_offsetx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsetx_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->offsetx);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_offsety_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_offsety_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsety_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_offsety_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->offsety = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_offsety_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_offsety_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_offsety_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->offsety);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_angle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_angle_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_angle_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_angle_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->angle = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_angle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_angle_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_angle_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->angle);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_anglemode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_anglemode_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_anglemode_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_anglemode_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->anglemode = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_anglemode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_anglemode_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_anglemode_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->anglemode);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_buffer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_buffer_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_buffer_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_buffer_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->buffer = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_buffer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_buffer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_buffer_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->buffer);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_antialias_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_antialias_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_antialias_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_antialias_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->antialias = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_antialias_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_antialias_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_antialias_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->antialias);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_align_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_align_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_align_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_align_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->align = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_align_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_align_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_align_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->align);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_wrap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  char val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_wrap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_wrap_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_char(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_wrap_set" "', argument " "2"" of type '" "char""'");
-  } 
-  arg2 = (char)(val2);
-  if (arg1) (arg1)->wrap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_wrap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_wrap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_wrap_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (char) ((arg1)->wrap);
-  resultobj = SWIG_From_char((char)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxlength_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_maxlength_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxlength_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxlength_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->maxlength = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxlength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_maxlength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxlength_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->maxlength);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minlength_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_minlength_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minlength_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minlength_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->minlength = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minlength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_minlength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minlength_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->minlength);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_space_size_10_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_space_size_10_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_space_size_10_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_space_size_10_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->space_size_10 = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_space_size_10_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_space_size_10_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_space_size_10_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->space_size_10);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minfeaturesize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_minfeaturesize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minfeaturesize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->minfeaturesize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minfeaturesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_minfeaturesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minfeaturesize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->minfeaturesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_autominfeaturesize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_autominfeaturesize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_autominfeaturesize_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_autominfeaturesize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->autominfeaturesize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_autominfeaturesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_autominfeaturesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_autominfeaturesize_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->autominfeaturesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_minscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minscaledenom_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_minscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_minscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_minscaledenom_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->minscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_maxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxscaledenom_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_maxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxscaledenom_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->maxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_mindistance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_mindistance_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_mindistance_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_mindistance_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->mindistance = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_mindistance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_mindistance_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_mindistance_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->mindistance);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_repeatdistance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_repeatdistance_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_repeatdistance_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_repeatdistance_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->repeatdistance = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_repeatdistance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_repeatdistance_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_repeatdistance_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->repeatdistance);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxoverlapangle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_maxoverlapangle_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxoverlapangle_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_maxoverlapangle_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxoverlapangle = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_maxoverlapangle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_maxoverlapangle_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_maxoverlapangle_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (double) ((arg1)->maxoverlapangle);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_partials_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_partials_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_partials_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_partials_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->partials = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_partials_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_partials_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_partials_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->partials);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_force_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_force_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_force_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_force_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->force = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_force_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_force_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_force_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->force);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_encoding_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_encoding_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    if (arg1->encoding) free((char*)arg1->encoding);
-    if (arg2) {
-      arg1->encoding = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->encoding,arg2);
-    } else {
-      arg1->encoding = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_encoding_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_encoding_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (char *) ((arg1)->encoding);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_priority_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_priority_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_priority_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_priority_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->priority = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_priority_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_priority_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_priority_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->priority);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_status_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_status_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_numstyles_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_numstyles_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_numstyles_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_numstyles_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->numstyles = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_numstyles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_numstyles_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_numstyles_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (int) ((arg1)->numstyles);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annotext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_annotext_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annotext_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    if (arg1->annotext) free((char*)arg1->annotext);
-    if (arg2) {
-      arg1->annotext = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->annotext,arg2);
-    } else {
-      arg1->annotext = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annotext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_annotext_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annotext_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (char *) ((arg1)->annotext);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annopoint_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_annopoint_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoint_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_annopoint_set" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  if (arg1) (arg1)->annopoint = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annopoint_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_annopoint_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoint_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (pointObj *)& ((arg1)->annopoint);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annopoly_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_annopoly_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoly_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_annopoly_set" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  if (arg1) (arg1)->annopoly = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_annopoly_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_annopoly_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_annopoly_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (shapeObj *) ((arg1)->annopoly);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_leader_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_leader_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_leader_set" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_leader_set" "', argument " "2"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg2 = (labelLeaderObj *)(argp2);
-  if (arg1) (arg1)->leader = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_leader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelLeaderObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_leader_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_leader_get" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  result = (labelLeaderObj *)& ((arg1)->leader);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelObj")) SWIG_fail;
-  {
-    result = (struct labelObj *)new_labelObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelObj" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    delete_labelObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_updateFromString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (int)labelObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_convertToString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (char *)labelObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_removeBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_removeBinding",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_removeBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_removeBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)labelObj_removeBinding(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_getBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_getBinding",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_getBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)labelObj_getBinding(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_setBinding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:labelObj_setBinding",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setBinding" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_setBinding" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)labelObj_setBinding(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_setExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_setExpression",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setExpression" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (int)labelObj_setExpression(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_getExpressionString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_getExpressionString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getExpressionString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (char *)labelObj_getExpressionString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:labelObj_setText",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_setText" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (int)labelObj_setText(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_getTextString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelObj_getTextString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getTextString" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  {
-    result = (char *)labelObj_getTextString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_getStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_getStyle",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_getStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_getStyle" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (styleObj *)labelObj_getStyle(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_insertStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  int arg3 = (int) -1 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|O:labelObj_insertStyle",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_insertStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelObj_insertStyle" "', argument " "2"" of type '" "styleObj *""'"); 
-  }
-  arg2 = (styleObj *)(argp2);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "labelObj_insertStyle" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)labelObj_insertStyle(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_removeStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_removeStyle",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_removeStyle" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_removeStyle" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (styleObj *)labelObj_removeStyle(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_moveStyleUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_moveStyleUp",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_moveStyleUp" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_moveStyleUp" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)labelObj_moveStyleUp(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelObj_moveStyleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct labelObj *arg1 = (struct labelObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelObj_moveStyleDown",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelObj_moveStyleDown" "', argument " "1"" of type '" "struct labelObj *""'"); 
-  }
-  arg1 = (struct labelObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelObj_moveStyleDown" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)labelObj_moveStyleDown(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_classObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_status_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_status_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_numstyles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_numstyles_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numstyles_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->numstyles);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_numlabels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_numlabels_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numlabels_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_numlabels_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->numlabels = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_numlabels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_numlabels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_numlabels_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->numlabels);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_name_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_name_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_title_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_title_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_title_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    if (arg1->title) free((char*)arg1->title);
-    if (arg2) {
-      arg1->title = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->title,arg2);
-    } else {
-      arg1->title = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_title_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_title_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_title_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (char *) ((arg1)->title);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_template_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_template_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_template_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_template_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_template_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_template_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (char *) ((arg1)->template);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_type_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_type_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_type_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_metadata_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_metadata_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_metadata_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->metadata);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_validation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_validation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_validation_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->validation);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_minscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_minscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minscaledenom_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_minscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_minscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minscaledenom_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (double) ((arg1)->minscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_maxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_maxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_maxscaledenom_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_maxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_maxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_maxscaledenom_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (double) ((arg1)->maxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_minfeaturesize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_minfeaturesize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minfeaturesize_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->minfeaturesize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_minfeaturesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_minfeaturesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_minfeaturesize_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->minfeaturesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_refcount_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_layer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_layer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_layer_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (struct layerObj *) ((arg1)->layer);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_debug_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_debug_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_debug_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->debug = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_debug_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_debug_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (int) ((arg1)->debug);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_keyimage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_keyimage_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_keyimage_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    if (arg1->keyimage) free((char*)arg1->keyimage);
-    if (arg2) {
-      arg1->keyimage = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->keyimage,arg2);
-    } else {
-      arg1->keyimage = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_keyimage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_keyimage_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_keyimage_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (char *) ((arg1)->keyimage);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_group_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_group_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_group_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    if (arg1->group) free((char*)arg1->group);
-    if (arg2) {
-      arg1->group = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->group,arg2);
-    } else {
-      arg1->group = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_group_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_group_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_group_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (char *) ((arg1)->group);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_leader_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  labelLeaderObj *arg2 = (labelLeaderObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_leader_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_leader_set" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_leader_set" "', argument " "2"" of type '" "labelLeaderObj *""'"); 
-  }
-  arg2 = (labelLeaderObj *)(argp2);
-  if (arg1) (arg1)->leader = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_leader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelLeaderObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_leader_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_leader_get" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  result = (labelLeaderObj *)& ((arg1)->leader);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelLeaderObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_classObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  layerObj *arg1 = (layerObj *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct classObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|O:new_classObj",&obj0)) SWIG_fail;
-  if (obj0) {
-    res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_classObj" "', argument " "1"" of type '" "layerObj *""'"); 
-    }
-    arg1 = (layerObj *)(argp1);
-  }
-  {
-    result = (struct classObj *)new_classObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_classObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_classObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_classObj" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    delete_classObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_updateFromString" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (int)classObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_convertToString" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  classObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_clone",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_clone" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (classObj *)classObj_clone(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_setExpression(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_setExpression",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setExpression" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (int)classObj_setExpression(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getExpressionString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_getExpressionString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getExpressionString" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_getExpressionString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_setText",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setText" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (int)classObj_setText(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getTextString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_getTextString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getTextString" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_getTextString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_getMetaData",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getMetaData" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_getMetaData(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_setMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:classObj_setMetaData",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_setMetaData" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (int)classObj_setMetaData(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getFirstMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:classObj_getFirstMetaDataKey",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_getFirstMetaDataKey(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getNextMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:classObj_getNextMetaDataKey",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  {
-    result = (char *)classObj_getNextMetaDataKey(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_drawLegendIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  imageObj *arg6 = (imageObj *) 0 ;
-  int arg7 ;
-  int arg8 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  void *argp6 = 0 ;
-  int res6 = 0 ;
-  int val7 ;
-  int ecode7 = 0 ;
-  int val8 ;
-  int ecode8 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  PyObject * obj6 = 0 ;
-  PyObject * obj7 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:classObj_drawLegendIcon",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_drawLegendIcon" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_drawLegendIcon" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "classObj_drawLegendIcon" "', argument " "3"" of type '" "layerObj *""'"); 
-  }
-  arg3 = (layerObj *)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "classObj_drawLegendIcon" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "classObj_drawLegendIcon" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "classObj_drawLegendIcon" "', argument " "6"" of type '" "imageObj *""'"); 
-  }
-  arg6 = (imageObj *)(argp6);
-  ecode7 = SWIG_AsVal_int(obj6, &val7);
-  if (!SWIG_IsOK(ecode7)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "classObj_drawLegendIcon" "', argument " "7"" of type '" "int""'");
-  } 
-  arg7 = (int)(val7);
-  ecode8 = SWIG_AsVal_int(obj7, &val8);
-  if (!SWIG_IsOK(ecode8)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "classObj_drawLegendIcon" "', argument " "8"" of type '" "int""'");
-  } 
-  arg8 = (int)(val8);
-  {
-    result = (int)classObj_drawLegendIcon(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_createLegendIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:classObj_createLegendIcon",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_createLegendIcon" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_createLegendIcon" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "classObj_createLegendIcon" "', argument " "3"" of type '" "layerObj *""'"); 
-  }
-  arg3 = (layerObj *)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "classObj_createLegendIcon" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "classObj_createLegendIcon" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (imageObj *)classObj_createLegendIcon(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  labelObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_getLabel",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_getLabel" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (labelObj *)classObj_getLabel(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_addLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  labelObj *arg2 = (labelObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_addLabel",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_addLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_labelObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_addLabel" "', argument " "2"" of type '" "labelObj *""'"); 
-  }
-  arg2 = (labelObj *)(argp2);
-  {
-    result = (int)classObj_addLabel(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_removeLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  labelObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_removeLabel",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_removeLabel" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_removeLabel" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (labelObj *)classObj_removeLabel(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_getStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_getStyle",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_getStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_getStyle" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (styleObj *)classObj_getStyle(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_insertStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  int arg3 = (int) -1 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|O:classObj_insertStyle",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_insertStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_styleObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "classObj_insertStyle" "', argument " "2"" of type '" "styleObj *""'"); 
-  }
-  arg2 = (styleObj *)(argp2);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "classObj_insertStyle" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)classObj_insertStyle(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_removeStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_removeStyle",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_removeStyle" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_removeStyle" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (styleObj *)classObj_removeStyle(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_moveStyleUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_moveStyleUp",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_moveStyleUp" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_moveStyleUp" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)classObj_moveStyleUp(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_classObj_moveStyleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct classObj *arg1 = (struct classObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:classObj_moveStyleDown",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "classObj_moveStyleDown" "', argument " "1"" of type '" "struct classObj *""'"); 
-  }
-  arg1 = (struct classObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "classObj_moveStyleDown" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)classObj_moveStyleDown(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *classObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_classObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_featuresize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_featuresize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_featuresize_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (double) ((arg1)->featuresize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_styles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_styles_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_styles_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (styleObj *) ((arg1)->styles);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_numstyles_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_numstyles_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_numstyles_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->numstyles);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_labels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_labels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_labels_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (labelObj *) ((arg1)->labels);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_numlabels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_numlabels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_numlabels_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->numlabels);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_layerindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_layerindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_layerindex_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->layerindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_classindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_classindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_classindex_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->classindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_shapetype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_shapetype_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_shapetype_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->shapetype);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_point_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_point_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_point_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (pointObj *)& ((arg1)->point);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_poly_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_poly_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_poly_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (shapeObj *) ((arg1)->poly);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_status_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_markerid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_markerid_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_markerid_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->markerid);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_leaderline_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  lineObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_leaderline_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_leaderline_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (lineObj *) ((arg1)->leaderline);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheMemberObj_leaderbbox_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheMemberObj_leaderbbox_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheMemberObj_leaderbbox_get" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  result = (rectObj *) ((arg1)->leaderbbox);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelCacheMemberObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelCacheMemberObj")) SWIG_fail;
-  {
-    result = (labelCacheMemberObj *)calloc(1, sizeof(labelCacheMemberObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelCacheMemberObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheMemberObj *arg1 = (labelCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelCacheMemberObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheMemberObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheMemberObj" "', argument " "1"" of type '" "labelCacheMemberObj *""'"); 
-  }
-  arg1 = (labelCacheMemberObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelCacheMemberObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelCacheMemberObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_markerCacheMemberObj_id_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:markerCacheMemberObj_id_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_markerCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "markerCacheMemberObj_id_get" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-  }
-  arg1 = (markerCacheMemberObj *)(argp1);
-  result = (int) ((arg1)->id);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_markerCacheMemberObj_poly_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:markerCacheMemberObj_poly_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_markerCacheMemberObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "markerCacheMemberObj_poly_get" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-  }
-  arg1 = (markerCacheMemberObj *)(argp1);
-  result = (shapeObj *) ((arg1)->poly);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_markerCacheMemberObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  markerCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_markerCacheMemberObj")) SWIG_fail;
-  {
-    result = (markerCacheMemberObj *)calloc(1, sizeof(markerCacheMemberObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_markerCacheMemberObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_markerCacheMemberObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  markerCacheMemberObj *arg1 = (markerCacheMemberObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_markerCacheMemberObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_markerCacheMemberObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_markerCacheMemberObj" "', argument " "1"" of type '" "markerCacheMemberObj *""'"); 
-  }
-  arg1 = (markerCacheMemberObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *markerCacheMemberObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_markerCacheMemberObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_labels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_labels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_labels_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (labelCacheMemberObj *) ((arg1)->labels);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_numlabels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_numlabels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_numlabels_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (int) ((arg1)->numlabels);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_cachesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_cachesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_cachesize_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (int) ((arg1)->cachesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_markers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  markerCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_markers_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_markers_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (markerCacheMemberObj *) ((arg1)->markers);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_markerCacheMemberObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_nummarkers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_nummarkers_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_nummarkers_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (int) ((arg1)->nummarkers);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheSlotObj_markercachesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheSlotObj_markercachesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheSlotObj_markercachesize_get" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  result = (int) ((arg1)->markercachesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelCacheSlotObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelCacheSlotObj")) SWIG_fail;
-  {
-    result = (labelCacheSlotObj *)calloc(1, sizeof(labelCacheSlotObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheSlotObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelCacheSlotObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheSlotObj *arg1 = (labelCacheSlotObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelCacheSlotObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheSlotObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheSlotObj" "', argument " "1"" of type '" "labelCacheSlotObj *""'"); 
-  }
-  arg1 = (labelCacheSlotObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelCacheSlotObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelCacheSlotObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelCacheObj_slots_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelCacheSlotObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheObj_slots_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_slots_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-  }
-  arg1 = (labelCacheObj *)(argp1);
-  result = (labelCacheSlotObj *)(labelCacheSlotObj *) ((arg1)->slots);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheSlotObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheObj_numlabels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheObj_numlabels_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_numlabels_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-  }
-  arg1 = (labelCacheObj *)(argp1);
-  result = (int) ((arg1)->numlabels);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheObj_gutter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheObj_gutter_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_gutter_get" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-  }
-  arg1 = (labelCacheObj *)(argp1);
-  result = (int) ((arg1)->gutter);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelCacheObj_freeCache(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelCacheObj_freeCache",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelCacheObj_freeCache" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-  }
-  arg1 = (labelCacheObj *)(argp1);
-  {
-    labelCacheObj_freeCache(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelCacheObj")) SWIG_fail;
-  {
-    result = (labelCacheObj *)calloc(1, sizeof(labelCacheObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelCacheObj *arg1 = (labelCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelCacheObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelCacheObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelCacheObj" "', argument " "1"" of type '" "labelCacheObj *""'"); 
-  }
-  arg1 = (labelCacheObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelCacheObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelCacheObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_resultObj_shapeindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultObj *arg1 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  long result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultObj_shapeindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_shapeindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-  }
-  arg1 = (resultObj *)(argp1);
-  result = (long) ((arg1)->shapeindex);
-  resultobj = SWIG_From_long((long)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultObj_tileindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultObj *arg1 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultObj_tileindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_tileindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-  }
-  arg1 = (resultObj *)(argp1);
-  result = (int) ((arg1)->tileindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultObj_resultindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultObj *arg1 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultObj_resultindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_resultindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-  }
-  arg1 = (resultObj *)(argp1);
-  result = (int) ((arg1)->resultindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultObj_classindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultObj *arg1 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultObj_classindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultObj_classindex_get" "', argument " "1"" of type '" "resultObj *""'"); 
-  }
-  arg1 = (resultObj *)(argp1);
-  result = (int) ((arg1)->classindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_resultObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  long arg1 ;
-  long val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  resultObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:new_resultObj",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_long(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_resultObj" "', argument " "1"" of type '" "long""'");
-  } 
-  arg1 = (long)(val1);
-  {
-    result = (resultObj *)new_resultObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_resultObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultObj *arg1 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_resultObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_resultObj" "', argument " "1"" of type '" "resultObj *""'"); 
-  }
-  arg1 = (resultObj *)(argp1);
-  {
-    delete_resultObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *resultObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_resultObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_resultCacheObj_numresults_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultCacheObj_numresults_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_numresults_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  result = (int) ((arg1)->numresults);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultCacheObj_bounds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultCacheObj_bounds_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_bounds_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  result = (rectObj *)& ((arg1)->bounds);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultCacheObj_usegetshape_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:resultCacheObj_usegetshape_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_set" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "resultCacheObj_usegetshape_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->usegetshape = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultCacheObj_usegetshape_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:resultCacheObj_usegetshape_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  result = (int) ((arg1)->usegetshape);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_resultCacheObj_getResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  resultObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:resultCacheObj_getResult",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_getResult" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "resultCacheObj_getResult" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (resultObj *)resultCacheObj_getResult(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_resultCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_resultCacheObj")) SWIG_fail;
-  {
-    result = (resultCacheObj *)calloc(1, sizeof(resultCacheObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultCacheObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_resultCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  resultCacheObj *arg1 = (resultCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_resultCacheObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_resultCacheObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_resultCacheObj" "', argument " "1"" of type '" "resultCacheObj *""'"); 
-  }
-  arg1 = (resultCacheObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *resultCacheObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_resultCacheObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_filename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolSetObj_filename_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_filename_set" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  {
-    if (arg1->filename) free((char*)arg1->filename);
-    if (arg2) {
-      arg1->filename = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->filename,arg2);
-    } else {
-      arg1->filename = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_filename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolSetObj_filename_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_filename_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  result = (char *) ((arg1)->filename);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_imagecachesize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolSetObj_imagecachesize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_imagecachesize_set" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_imagecachesize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->imagecachesize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_imagecachesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolSetObj_imagecachesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_imagecachesize_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  result = (int) ((arg1)->imagecachesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_numsymbols_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolSetObj_numsymbols_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_numsymbols_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  result = (int) ((arg1)->numsymbols);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_maxsymbols_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolSetObj_maxsymbols_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_maxsymbols_get" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  result = (int) ((arg1)->maxsymbols);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_symbolSetObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) NULL ;
-  int res1 ;
-  char *buf1 = 0 ;
-  int alloc1 = 0 ;
-  PyObject * obj0 = 0 ;
-  symbolSetObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|O:new_symbolSetObj",&obj0)) SWIG_fail;
-  if (obj0) {
-    res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_symbolSetObj" "', argument " "1"" of type '" "char const *""'");
-    }
-    arg1 = (char *)(buf1);
-  }
-  {
-    result = (symbolSetObj *)new_symbolSetObj((char const *)arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolSetObj, SWIG_POINTER_NEW |  0 );
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return resultobj;
-fail:
-  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_symbolSetObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_symbolSetObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolSetObj" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  {
-    delete_symbolSetObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_getSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  symbolObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolSetObj_getSymbol",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_getSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_getSymbol" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (symbolObj *)symbolSetObj_getSymbol(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_getSymbolByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  symbolObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolSetObj_getSymbolByName",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_getSymbolByName" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  {
-    result = (symbolObj *)symbolSetObj_getSymbolByName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolSetObj_index",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_index" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  {
-    result = (int)symbolSetObj_index(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_appendSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  symbolObj *arg2 = (symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolSetObj_appendSymbol",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_appendSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_appendSymbol" "', argument " "2"" of type '" "symbolObj *""'"); 
-  }
-  arg2 = (symbolObj *)(argp2);
-  {
-    result = (int)symbolSetObj_appendSymbol(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_removeSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  symbolObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolSetObj_removeSymbol",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_removeSymbol" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolSetObj_removeSymbol" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (symbolObj *)symbolSetObj_removeSymbol(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolSetObj_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolSetObj *arg1 = (symbolSetObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolSetObj_save",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolSetObj_save" "', argument " "1"" of type '" "symbolSetObj *""'"); 
-  }
-  arg1 = (symbolSetObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolSetObj_save" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    result = (int)symbolSetObj_save(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *symbolSetObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_symbolSetObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_extent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_extent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_extent_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-  }
-  arg2 = (rectObj *)(argp2);
-  if (arg1) (arg1)->extent = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_extent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_extent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_extent_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (rectObj *)& ((arg1)->extent);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_height_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_height_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_width_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_width_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_color_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_color_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_outlinecolor_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "referenceMapObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_outlinecolor_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:referenceMapObj_image_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_image_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  {
-    if (arg1->image) free((char*)arg1->image);
-    if (arg2) {
-      arg1->image = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->image,arg2);
-    } else {
-      arg1->image = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_image_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_image_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (char *) ((arg1)->image);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_status_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_status_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_marker_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_marker_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_marker_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_marker_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->marker = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_marker_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_marker_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_marker_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->marker);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_markername_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:referenceMapObj_markername_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markername_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  {
-    if (arg1->markername) free((char*)arg1->markername);
-    if (arg2) {
-      arg1->markername = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->markername,arg2);
-    } else {
-      arg1->markername = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_markername_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_markername_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markername_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (char *) ((arg1)->markername);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_markersize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_markersize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markersize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_markersize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->markersize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_markersize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_markersize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_markersize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->markersize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_minboxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_minboxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_minboxsize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_minboxsize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->minboxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_minboxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_minboxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_minboxsize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->minboxsize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_maxboxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:referenceMapObj_maxboxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_maxboxsize_set" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "referenceMapObj_maxboxsize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->maxboxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_maxboxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_maxboxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_maxboxsize_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (int) ((arg1)->maxboxsize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_map_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_map_get" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  result = (struct mapObj *) ((arg1)->map);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:referenceMapObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_updateFromString" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  {
-    result = (int)referenceMapObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_referenceMapObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:referenceMapObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "referenceMapObj_convertToString" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  {
-    result = (char *)referenceMapObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_referenceMapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_referenceMapObj")) SWIG_fail;
-  {
-    result = (referenceMapObj *)calloc(1, sizeof(referenceMapObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_referenceMapObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_referenceMapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  referenceMapObj *arg1 = (referenceMapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_referenceMapObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_referenceMapObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_referenceMapObj" "', argument " "1"" of type '" "referenceMapObj *""'"); 
-  }
-  arg1 = (referenceMapObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *referenceMapObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_referenceMapObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_scalebarObj_imagecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_imagecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_imagecolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->imagecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_imagecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_imagecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_imagecolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (colorObj *)& ((arg1)->imagecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_height_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_height_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_width_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_width_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_style_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_style_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_style_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_style_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->style = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_style_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_style_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_style_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->style);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_intervals_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_intervals_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_intervals_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_intervals_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->intervals = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_intervals_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_intervals_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_intervals_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->intervals);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_label_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  labelObj arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_label_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_label_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  {
-    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_labelObj,  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_label_set" "', argument " "2"" of type '" "labelObj""'"); 
-    }  
-    if (!argp2) {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "scalebarObj_label_set" "', argument " "2"" of type '" "labelObj""'");
-    } else {
-      arg2 = *((labelObj *)(argp2));
-    }
-  }
-  if (arg1) (arg1)->label = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_label_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelObj result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_label_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_label_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result =  ((arg1)->label);
-  resultobj = SWIG_NewPointerObj((labelObj *)memcpy((labelObj *)malloc(sizeof(labelObj)),&result,sizeof(labelObj)), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_color_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_color_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_backgroundcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_backgroundcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_backgroundcolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_backgroundcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_backgroundcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_backgroundcolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_outlinecolor_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scalebarObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_outlinecolor_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_units_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_units_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_units_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_units_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->units = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_units_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_units_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_units_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->units);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_status_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_status_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_position_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_position_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_position_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->position = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_position_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_position_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->position);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_postlabelcache_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_postlabelcache_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_postlabelcache_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->postlabelcache = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_postlabelcache_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_postlabelcache_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_postlabelcache_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->postlabelcache);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_align_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scalebarObj_align_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_align_set" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scalebarObj_align_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->align = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_align_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_align_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_align_get" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  result = (int) ((arg1)->align);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:scalebarObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_updateFromString" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  {
-    result = (int)scalebarObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scalebarObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scalebarObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scalebarObj_convertToString" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  {
-    result = (char *)scalebarObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_scalebarObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_scalebarObj")) SWIG_fail;
-  {
-    result = (scalebarObj *)calloc(1, sizeof(scalebarObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scalebarObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_scalebarObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scalebarObj *arg1 = (scalebarObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_scalebarObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scalebarObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scalebarObj" "', argument " "1"" of type '" "scalebarObj *""'"); 
-  }
-  arg1 = (scalebarObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *scalebarObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_scalebarObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_legendObj_imagecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_imagecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_imagecolor_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->imagecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_imagecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_imagecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_imagecolor_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (colorObj *)& ((arg1)->imagecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_label_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelObj result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_label_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_label_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result =  ((arg1)->label);
-  resultobj = SWIG_NewPointerObj((labelObj *)memcpy((labelObj *)malloc(sizeof(labelObj)),&result,sizeof(labelObj)), SWIGTYPE_p_labelObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keysizex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_keysizex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizex_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keysizex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->keysizex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keysizex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_keysizex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizex_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->keysizex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keysizey_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_keysizey_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizey_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keysizey_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->keysizey = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keysizey_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_keysizey_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keysizey_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->keysizey);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keyspacingx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_keyspacingx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingx_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keyspacingx_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->keyspacingx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keyspacingx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_keyspacingx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingx_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->keyspacingx);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keyspacingy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_keyspacingy_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingy_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_keyspacingy_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->keyspacingy = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_keyspacingy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_keyspacingy_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_keyspacingy_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->keyspacingy);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_outlinecolor_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "legendObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_outlinecolor_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_status_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_status_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_height_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_height_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_width_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_width_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_position_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_position_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_position_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_position_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->position = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_position_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_position_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_position_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->position);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_postlabelcache_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:legendObj_postlabelcache_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_postlabelcache_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "legendObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->postlabelcache = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_postlabelcache_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_postlabelcache_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_postlabelcache_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (int) ((arg1)->postlabelcache);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_template_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:legendObj_template_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_template_set" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_template_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_template_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_template_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (char *) ((arg1)->template);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_map_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_map_get" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  result = (struct mapObj *) ((arg1)->map);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:legendObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_updateFromString" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  {
-    result = (int)legendObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_legendObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:legendObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "legendObj_convertToString" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  {
-    result = (char *)legendObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_legendObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_legendObj")) SWIG_fail;
-  {
-    result = (legendObj *)calloc(1, sizeof(legendObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_legendObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_legendObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  legendObj *arg1 = (legendObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_legendObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_legendObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_legendObj" "', argument " "1"" of type '" "legendObj *""'"); 
-  }
-  arg1 = (legendObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *legendObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_legendObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_imageObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_width_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_height_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_resolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_resolution_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_resolution_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (double) ((arg1)->resolution);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_resolutionfactor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_resolutionfactor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_resolutionfactor_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (double) ((arg1)->resolutionfactor);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_imagepath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_imagepath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_imagepath_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (char *) ((arg1)->imagepath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_imageurl_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_imageurl_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_imageurl_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (char *) ((arg1)->imageurl);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  outputFormatObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_format_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_format_get" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  result = (outputFormatObj *) ((arg1)->format);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_imageObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_imageObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_imageObj" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  {
-    delete_imageObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  mapObj *arg3 = (mapObj *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz|O:imageObj_save",&obj0,&arg2,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_save" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  if (obj2) {
-    res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "imageObj_save" "', argument " "3"" of type '" "mapObj *""'"); 
-    }
-    arg3 = (mapObj *)(argp3);
-  }
-  {
-    imageObj_save(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_getBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  gdBuffer result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_getBytes",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_getBytes" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  {
-    result = imageObj_getBytes(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  {
-    resultobj = PyString_FromStringAndSize((const char*)(&result)->data, (&result)->size); 
-    if( (&result)->owns_data )
-    msFree((&result)->data);
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_getSize",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_getSize" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  {
-    result = (int)imageObj_getSize(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_imageObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  PyObject *arg1 = (PyObject *) Py_None ;
-  PyObject *arg2 = (PyObject *) Py_None ;
-  PyObject *arg3 = (PyObject *) Py_None ;
-  PyObject *arg4 = (PyObject *) Py_None ;
-  PyObject *arg5 = (PyObject *) Py_None ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  struct imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|OOOOO:new_imageObj",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  if (obj0) {
-    arg1 = obj0;
-  }
-  if (obj1) {
-    arg2 = obj1;
-  }
-  if (obj2) {
-    arg3 = obj2;
-  }
-  if (obj3) {
-    arg4 = obj3;
-  }
-  if (obj4) {
-    arg5 = obj4;
-  }
-  {
-    result = (struct imageObj *)new_imageObj(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  PyObject *arg2 = (PyObject *) Py_None ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O|O:imageObj_write",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_write" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  if (obj1) {
-    arg2 = obj1;
-  }
-  {
-    result = (int)imageObj_write(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_imageObj_saveToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct imageObj *arg1 = (struct imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:imageObj_saveToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "imageObj_saveToString" "', argument " "1"" of type '" "struct imageObj *""'"); 
-  }
-  arg1 = (struct imageObj *)(argp1);
-  {
-    result = (PyObject *)imageObj_saveToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = result;
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *imageObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_imageObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_minscale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scaleTokenEntryObj_minscale_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_minscale_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenEntryObj_minscale_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscale = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_minscale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenEntryObj_minscale_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_minscale_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  result = (double) ((arg1)->minscale);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_maxscale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scaleTokenEntryObj_maxscale_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_maxscale_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenEntryObj_maxscale_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscale = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_maxscale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenEntryObj_maxscale_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_maxscale_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  result = (double) ((arg1)->maxscale);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:scaleTokenEntryObj_value_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_value_set" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  {
-    if (arg1->value) free((char*)arg1->value);
-    if (arg2) {
-      arg1->value = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->value,arg2);
-    } else {
-      arg1->value = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenEntryObj_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenEntryObj_value_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenEntryObj_value_get" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  result = (char *) ((arg1)->value);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_scaleTokenEntryObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_scaleTokenEntryObj")) SWIG_fail;
-  {
-    result = (scaleTokenEntryObj *)calloc(1, sizeof(scaleTokenEntryObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenEntryObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_scaleTokenEntryObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenEntryObj *arg1 = (scaleTokenEntryObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_scaleTokenEntryObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenEntryObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scaleTokenEntryObj" "', argument " "1"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg1 = (scaleTokenEntryObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *scaleTokenEntryObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_scaleTokenEntryObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:scaleTokenObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_name_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_name_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_n_entries_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scaleTokenObj_n_entries_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_n_entries_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "scaleTokenObj_n_entries_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->n_entries = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_n_entries_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenObj_n_entries_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_n_entries_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  result = (int) ((arg1)->n_entries);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_tokens_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  scaleTokenEntryObj *arg2 = (scaleTokenEntryObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:scaleTokenObj_tokens_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_tokens_set" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_scaleTokenEntryObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scaleTokenObj_tokens_set" "', argument " "2"" of type '" "scaleTokenEntryObj *""'"); 
-  }
-  arg2 = (scaleTokenEntryObj *)(argp2);
-  if (arg1) (arg1)->tokens = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_scaleTokenObj_tokens_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  scaleTokenEntryObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:scaleTokenObj_tokens_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scaleTokenObj_tokens_get" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  result = (scaleTokenEntryObj *) ((arg1)->tokens);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenEntryObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_scaleTokenObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_scaleTokenObj")) SWIG_fail;
-  {
-    result = (scaleTokenObj *)calloc(1, sizeof(scaleTokenObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scaleTokenObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_scaleTokenObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  scaleTokenObj *arg1 = (scaleTokenObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_scaleTokenObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_scaleTokenObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_scaleTokenObj" "', argument " "1"" of type '" "scaleTokenObj *""'"); 
-  }
-  arg1 = (scaleTokenObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *scaleTokenObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_scaleTokenObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_layerObj_classitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_classitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->classitem) free((char*)arg1->classitem);
-    if (arg2) {
-      arg1->classitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->classitem,arg2);
-    } else {
-      arg1->classitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_classitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_classitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->classitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_refcount_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_numclasses_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_numclasses_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numclasses_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->numclasses);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxclasses_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_maxclasses_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxclasses_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->maxclasses);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_index_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_index_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->index);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_map_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_map_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (struct mapObj *) ((arg1)->map);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_header_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_header_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_header_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->header) free((char*)arg1->header);
-    if (arg2) {
-      arg1->header = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->header,arg2);
-    } else {
-      arg1->header = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_header_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_header_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_header_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->header);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_footer_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_footer_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_footer_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->footer) free((char*)arg1->footer);
-    if (arg2) {
-      arg1->footer = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->footer,arg2);
-    } else {
-      arg1->footer = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_footer_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_footer_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_footer_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->footer);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_template_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_template_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_template_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->template) free((char*)arg1->template);
-    if (arg2) {
-      arg1->template = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->template,arg2);
-    } else {
-      arg1->template = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_template_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_template_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_template_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->template);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_name_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_name_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_group_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_group_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_group_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->group) free((char*)arg1->group);
-    if (arg2) {
-      arg1->group = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->group,arg2);
-    } else {
-      arg1->group = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_group_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_group_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_group_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->group);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_status_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_status_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_data_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_data_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->data) free((char*)arg1->data);
-    if (arg2) {
-      arg1->data = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->data,arg2);
-    } else {
-      arg1->data = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_data_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_data_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->data);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_LAYER_TYPE arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_type_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_type_set" "', argument " "2"" of type '" "enum MS_LAYER_TYPE""'");
-  } 
-  arg2 = (enum MS_LAYER_TYPE)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum MS_LAYER_TYPE result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_type_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (enum MS_LAYER_TYPE) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tolerance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_tolerance_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tolerance_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_tolerance_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->tolerance = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tolerance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_tolerance_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tolerance_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->tolerance);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_toleranceunits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_toleranceunits_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_toleranceunits_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_toleranceunits_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->toleranceunits = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_toleranceunits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_toleranceunits_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_toleranceunits_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->toleranceunits);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_symbolscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_symbolscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_symbolscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_symbolscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->symbolscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_symbolscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_symbolscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_symbolscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->symbolscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_minscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_minscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_minscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_minscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_minscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->minscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_maxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_maxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->maxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_minfeaturesize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_minfeaturesize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minfeaturesize_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_minfeaturesize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->minfeaturesize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_minfeaturesize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_minfeaturesize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_minfeaturesize_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->minfeaturesize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelminscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_labelminscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelminscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelminscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->labelminscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelminscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_labelminscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelminscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->labelminscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelmaxscaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_labelmaxscaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelmaxscaledenom_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelmaxscaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->labelmaxscaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelmaxscaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_labelmaxscaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelmaxscaledenom_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->labelmaxscaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_mingeowidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_mingeowidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mingeowidth_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_mingeowidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->mingeowidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_mingeowidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_mingeowidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mingeowidth_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->mingeowidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxgeowidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_maxgeowidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxgeowidth_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxgeowidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxgeowidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxgeowidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_maxgeowidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxgeowidth_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (double) ((arg1)->maxgeowidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_sizeunits_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_sizeunits_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_sizeunits_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_sizeunits_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->sizeunits = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_sizeunits_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_sizeunits_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_sizeunits_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->sizeunits);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxfeatures_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_maxfeatures_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxfeatures_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_maxfeatures_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->maxfeatures = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_maxfeatures_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_maxfeatures_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_maxfeatures_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->maxfeatures);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_startindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_startindex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_startindex_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_startindex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->startindex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_startindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_startindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_startindex_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->startindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_offsite_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_offsite_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_offsite_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_offsite_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->offsite = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_offsite_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_offsite_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_offsite_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (colorObj *)& ((arg1)->offsite);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_transform_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_transform_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_transform_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_transform_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->transform = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_transform_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_transform_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_transform_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->transform);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelcache_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_labelcache_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelcache_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_labelcache_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->labelcache = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelcache_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_labelcache_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelcache_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->labelcache);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_postlabelcache_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_postlabelcache_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_postlabelcache_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_postlabelcache_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->postlabelcache = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_postlabelcache_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_postlabelcache_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_postlabelcache_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->postlabelcache);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_labelitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->labelitem) free((char*)arg1->labelitem);
-    if (arg2) {
-      arg1->labelitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->labelitem,arg2);
-    } else {
-      arg1->labelitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_labelitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->labelitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tileitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_tileitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->tileitem) free((char*)arg1->tileitem);
-    if (arg2) {
-      arg1->tileitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tileitem,arg2);
-    } else {
-      arg1->tileitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tileitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_tileitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->tileitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tileindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_tileindex_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileindex_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->tileindex) free((char*)arg1->tileindex);
-    if (arg2) {
-      arg1->tileindex = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tileindex,arg2);
-    } else {
-      arg1->tileindex = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tileindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_tileindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tileindex_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->tileindex);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tilesrs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_tilesrs_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tilesrs_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->tilesrs) free((char*)arg1->tilesrs);
-    if (arg2) {
-      arg1->tilesrs = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->tilesrs,arg2);
-    } else {
-      arg1->tilesrs = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_tilesrs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_tilesrs_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_tilesrs_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->tilesrs);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_units_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_units_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_units_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_units_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->units = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_units_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_units_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_units_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->units);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_connection_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_connection_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connection_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->connection) free((char*)arg1->connection);
-    if (arg2) {
-      arg1->connection = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->connection,arg2);
-    } else {
-      arg1->connection = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_connection_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_connection_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connection_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->connection);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_plugin_library_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_plugin_library_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->plugin_library) free((char*)arg1->plugin_library);
-    if (arg2) {
-      arg1->plugin_library = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->plugin_library,arg2);
-    } else {
-      arg1->plugin_library = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_plugin_library_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_plugin_library_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->plugin_library);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_plugin_library_original_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_plugin_library_original_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_original_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->plugin_library_original) free((char*)arg1->plugin_library_original);
-    if (arg2) {
-      arg1->plugin_library_original = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->plugin_library_original,arg2);
-    } else {
-      arg1->plugin_library_original = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_plugin_library_original_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_plugin_library_original_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_plugin_library_original_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->plugin_library_original);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_connectiontype_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  enum MS_CONNECTION_TYPE arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_connectiontype_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connectiontype_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_connectiontype_set" "', argument " "2"" of type '" "enum MS_CONNECTION_TYPE""'");
-  } 
-  arg2 = (enum MS_CONNECTION_TYPE)(val2);
-  if (arg1) (arg1)->connectiontype = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_connectiontype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum MS_CONNECTION_TYPE result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_connectiontype_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_connectiontype_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (enum MS_CONNECTION_TYPE) ((arg1)->connectiontype);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_numitems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_numitems_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numitems_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->numitems);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_bandsitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_bandsitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bandsitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->bandsitem) free((char*)arg1->bandsitem);
-    if (arg2) {
-      arg1->bandsitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->bandsitem,arg2);
-    } else {
-      arg1->bandsitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_bandsitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_bandsitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bandsitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->bandsitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_filteritem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_filteritem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_filteritem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->filteritem) free((char*)arg1->filteritem);
-    if (arg2) {
-      arg1->filteritem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->filteritem,arg2);
-    } else {
-      arg1->filteritem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_filteritem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_filteritem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_filteritem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->filteritem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_styleitem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_styleitem_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_styleitem_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->styleitem) free((char*)arg1->styleitem);
-    if (arg2) {
-      arg1->styleitem = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->styleitem,arg2);
-    } else {
-      arg1->styleitem = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_styleitem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_styleitem_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_styleitem_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->styleitem);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_requires_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_requires_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_requires_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->requires) free((char*)arg1->requires);
-    if (arg2) {
-      arg1->requires = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->requires,arg2);
-    } else {
-      arg1->requires = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_requires_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_requires_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_requires_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->requires);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelrequires_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_labelrequires_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelrequires_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->labelrequires) free((char*)arg1->labelrequires);
-    if (arg2) {
-      arg1->labelrequires = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->labelrequires,arg2);
-    } else {
-      arg1->labelrequires = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_labelrequires_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_labelrequires_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_labelrequires_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->labelrequires);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_metadata_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_metadata_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_metadata_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->metadata);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_validation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_validation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_validation_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->validation);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_bindvals_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_bindvals_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_bindvals_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->bindvals);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_cluster_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  clusterObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_cluster_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_cluster_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (clusterObj *)& ((arg1)->cluster);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_clusterObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_opacity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_opacity_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_opacity_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_opacity_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->opacity = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_opacity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_opacity_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_opacity_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->opacity);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_dump_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_dump_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_dump_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_dump_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->dump = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_dump_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_dump_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_dump_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->dump);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_debug_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_debug_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_debug_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->debug = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_debug_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_debug_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->debug);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_extent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_extent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_extent_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (rectObj *)& ((arg1)->extent);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_numprocessing_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_numprocessing_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numprocessing_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->numprocessing);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_numjoins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_numjoins_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_numjoins_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (int) ((arg1)->numjoins);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_classgroup_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_classgroup_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classgroup_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->classgroup) free((char*)arg1->classgroup);
-    if (arg2) {
-      arg1->classgroup = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->classgroup,arg2);
-    } else {
-      arg1->classgroup = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_classgroup_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_classgroup_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_classgroup_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->classgroup);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_mask_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mask_set" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    if (arg1->mask) free((char*)arg1->mask);
-    if (arg2) {
-      arg1->mask = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mask,arg2);
-    } else {
-      arg1->mask = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_mask_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_mask_get" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  result = (char *) ((arg1)->mask);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_layerObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  mapObj *arg1 = (mapObj *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  struct layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|O:new_layerObj",&obj0)) SWIG_fail;
-  if (obj0) {
-    res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-    if (!SWIG_IsOK(res1)) {
-      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_layerObj" "', argument " "1"" of type '" "mapObj *""'"); 
-    }
-    arg1 = (mapObj *)(argp1);
-  }
-  {
-    result = (struct layerObj *)new_layerObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_layerObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_layerObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_layerObj" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    delete_layerObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_clone",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_clone" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (layerObj *)layerObj_clone(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_updateFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_updateFromString",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_updateFromString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_updateFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_convertToString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_insertClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  classObj *arg2 = (classObj *) 0 ;
-  int arg3 = (int) -1 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|O:layerObj_insertClass",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_insertClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_classObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_insertClass" "', argument " "2"" of type '" "classObj *""'"); 
-  }
-  arg2 = (classObj *)(argp2);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_insertClass" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)layerObj_insertClass(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_removeClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  classObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_removeClass",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_removeClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_removeClass" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (classObj *)layerObj_removeClass(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_open",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_open" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_open(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_whichShapes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  rectObj arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_whichShapes",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_whichShapes" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rectObj,  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_whichShapes" "', argument " "2"" of type '" "rectObj""'"); 
-    }  
-    if (!argp2) {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "layerObj_whichShapes" "', argument " "2"" of type '" "rectObj""'");
-    } else {
-      arg2 = *((rectObj *)(argp2));
-    }
-  }
-  {
-    result = (int)layerObj_whichShapes(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_nextShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_nextShape",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_nextShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (shapeObj *)layerObj_nextShape(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_close",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_close" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    layerObj_close(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  resultObj *arg2 = (resultObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getShape",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_resultObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getShape" "', argument " "2"" of type '" "resultObj *""'"); 
-  }
-  arg2 = (resultObj *)(argp2);
-  {
-    result = (shapeObj *)layerObj_getShape(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getNumResults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getNumResults",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNumResults" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_getNumResults(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getResultsBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getResultsBounds",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResultsBounds" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (rectObj *)layerObj_getResultsBounds(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  resultObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getResult",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResult" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getResult" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (resultObj *)layerObj_getResult(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  classObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getClass",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getClass" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getClass" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (classObj *)layerObj_getClass(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_classObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getItem",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getItem" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getItem" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)layerObj_getItem(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  int arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_setItems",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setItems" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setItems" "', argument " "2"" of type '" "char **""'"); 
-  }
-  arg2 = (char **)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_setItems" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  {
-    result = (int)layerObj_setItems(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  imageObj *arg3 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_draw",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_draw" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_draw" "', argument " "3"" of type '" "imageObj *""'"); 
-  }
-  arg3 = (imageObj *)(argp3);
-  {
-    result = (int)layerObj_draw(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_drawQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  imageObj *arg3 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_drawQuery",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_drawQuery" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_drawQuery" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_drawQuery" "', argument " "3"" of type '" "imageObj *""'"); 
-  }
-  arg3 = (imageObj *)(argp3);
-  {
-    result = (int)layerObj_drawQuery(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:layerObj_queryByFilter",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByFilter" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByFilter" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  {
-    result = (int)layerObj_queryByFilter(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  char *arg4 = (char *) 0 ;
-  int arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOzzO:layerObj_queryByAttributes",&obj0,&obj1,&arg3,&arg4,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByAttributes" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByAttributes" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByAttributes" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (int)layerObj_queryByAttributes(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  double arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  double val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:layerObj_queryByPoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByPoint" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByPoint" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_queryByPoint" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_double(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByPoint" "', argument " "5"" of type '" "double""'");
-  } 
-  arg5 = (double)(val5);
-  {
-    result = (int)layerObj_queryByPoint(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  rectObj arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_queryByRect",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByRect" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByRect" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  {
-    res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_rectObj,  0 );
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByRect" "', argument " "3"" of type '" "rectObj""'"); 
-    }  
-    if (!argp3) {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "layerObj_queryByRect" "', argument " "3"" of type '" "rectObj""'");
-    } else {
-      arg3 = *((rectObj *)(argp3));
-    }
-  }
-  {
-    result = (int)layerObj_queryByRect(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByFeatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_queryByFeatures",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByFeatures" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByFeatures" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_queryByFeatures" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  {
-    result = (int)layerObj_queryByFeatures(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_queryByShape",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByShape" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByShape" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_queryByShape" "', argument " "3"" of type '" "shapeObj *""'"); 
-  }
-  arg3 = (shapeObj *)(argp3);
-  {
-    result = (int)layerObj_queryByShape(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_queryByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  int arg5 = (int) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO|O:layerObj_queryByIndex",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_queryByIndex" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_queryByIndex" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_queryByIndex" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_queryByIndex" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  if (obj4) {
-    ecode5 = SWIG_AsVal_int(obj4, &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_queryByIndex" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-  }
-  {
-    result = (int)layerObj_queryByIndex(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getResults(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  resultCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getResults",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getResults" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (resultCacheObj *)layerObj_getResults(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_resultCacheObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_setFilter",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setFilter" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_setFilter(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getFilterString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getFilterString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getFilterString" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getFilterString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setWKTProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_setWKTProjection",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setWKTProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_setWKTProjection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getProjection",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getProjection(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_setProjection",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProjection" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_setProjection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_addFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_addFeature",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_addFeature" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_addFeature" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)layerObj_addFeature(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getNumFeatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getNumFeatures",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNumFeatures" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_getNumFeatures(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getExtent",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getExtent" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (rectObj *)layerObj_getExtent(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  double arg2 = (double) -1.0 ;
-  double arg3 = (double) -1.0 ;
-  double arg4 = (double) -1.0 ;
-  double arg5 = (double) -1.0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  double val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O|OOOO:layerObj_setExtent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setExtent" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  if (obj1) {
-    ecode2 = SWIG_AsVal_double(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_setExtent" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-  }
-  if (obj2) {
-    ecode3 = SWIG_AsVal_double(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_setExtent" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-  }
-  if (obj3) {
-    ecode4 = SWIG_AsVal_double(obj3, &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_setExtent" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-  }
-  if (obj4) {
-    ecode5 = SWIG_AsVal_double(obj4, &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_setExtent" "', argument " "5"" of type '" "double""'");
-    } 
-    arg5 = (double)(val5);
-  }
-  {
-    result = (int)layerObj_setExtent(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_getMetaData",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getMetaData(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:layerObj_setMetaData",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_setMetaData(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_removeMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_removeMetaData",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_removeMetaData" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_removeMetaData(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getFirstMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getFirstMetaDataKey",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getFirstMetaDataKey(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getNextMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_getNextMetaDataKey",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getNextMetaDataKey(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getWMSFeatureInfoURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOz:layerObj_getWMSFeatureInfoURL",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_getWMSFeatureInfoURL" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (char *)layerObj_getWMSFeatureInfoURL(arg1,arg2,arg3,arg4,arg5,arg6); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_executeWFSGetFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  layerObj *arg2 = (layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_executeWFSGetFeature",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_executeWFSGetFeature" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_executeWFSGetFeature" "', argument " "2"" of type '" "layerObj *""'"); 
-  }
-  arg2 = (layerObj *)(argp2);
-  {
-    result = (char *)layerObj_executeWFSGetFeature(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_applySLD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:layerObj_applySLD",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_applySLD" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_applySLD(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_applySLDURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:layerObj_applySLDURL",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_applySLDURL" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_applySLDURL(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_generateSLD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_generateSLD",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_generateSLD" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_generateSLD(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_isVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_isVisible",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_isVisible" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_isVisible(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_moveClassUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_moveClassUp",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_moveClassUp" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_moveClassUp" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)layerObj_moveClassUp(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_moveClassDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_moveClassDown",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_moveClassDown" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_moveClassDown" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)layerObj_moveClassDown(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setProcessingKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_setProcessingKey",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProcessingKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setProcessingKey" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_setProcessingKey" "', argument " "3"" of type '" "char const *""'");
-  }
-  arg3 = (char *)(buf3);
-  {
-    layerObj_setProcessingKey(arg1,(char const *)arg2,(char const *)arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setProcessing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_setProcessing",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_setProcessing" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    layerObj_setProcessing(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_addProcessing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_addProcessing",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_addProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_addProcessing" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    layerObj_addProcessing(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getProcessing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getProcessing",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_getProcessing" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)layerObj_getProcessing(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getProcessingKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:layerObj_getProcessingKey",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getProcessingKey" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getProcessingKey" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    result = (char *)layerObj_getProcessingKey(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_clearProcessing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_clearProcessing",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_clearProcessing" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (int)layerObj_clearProcessing(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setConnectionType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:layerObj_setConnectionType",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setConnectionType" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "layerObj_setConnectionType" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_setConnectionType" "', argument " "3"" of type '" "char const *""'");
-  }
-  arg3 = (char *)(buf3);
-  {
-    result = (int)layerObj_setConnectionType(arg1,arg2,(char const *)arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getClassIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  int *arg4 = (int *) NULL ;
-  int arg5 = (int) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO|OO:layerObj_getClassIndex",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getClassIndex" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "layerObj_getClassIndex" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "layerObj_getClassIndex" "', argument " "3"" of type '" "shapeObj *""'"); 
-  }
-  arg3 = (shapeObj *)(argp3);
-  if (obj3) {
-    res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 |  0 );
-    if (!SWIG_IsOK(res4)) {
-      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "layerObj_getClassIndex" "', argument " "4"" of type '" "int *""'"); 
-    }
-    arg4 = (int *)(argp4);
-  }
-  if (obj4) {
-    ecode5 = SWIG_AsVal_int(obj4, &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "layerObj_getClassIndex" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-  }
-  {
-    result = (int)layerObj_getClassIndex(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_getGeomTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:layerObj_getGeomTransform",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_getGeomTransform" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    result = (char *)layerObj_getGeomTransform(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_layerObj_setGeomTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct layerObj *arg1 = (struct layerObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:layerObj_setGeomTransform",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "layerObj_setGeomTransform" "', argument " "1"" of type '" "struct layerObj *""'"); 
-  }
-  arg1 = (struct layerObj *)(argp1);
-  {
-    layerObj_setGeomTransform(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *layerObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_layerObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_mapObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_name_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_name_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_status_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_status_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_status_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->status = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_status_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->status);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_height_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_height_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_width_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_width_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_maxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_maxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxsize_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_maxsize_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->maxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_maxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_maxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxsize_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->maxsize);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_refcount_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_numlayers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_numlayers_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_numlayers_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->numlayers);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_maxlayers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_maxlayers_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_maxlayers_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->maxlayers);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_symbolset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  symbolSetObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_symbolset_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_symbolset_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (symbolSetObj *)& ((arg1)->symbolset);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolSetObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_fontset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  fontSetObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_fontset_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_fontset_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (fontSetObj *)& ((arg1)->fontset);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_fontSetObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_labelcache_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_labelcache_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_labelcache_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (labelCacheObj *)& ((arg1)->labelcache);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_transparent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_transparent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_transparent_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_transparent_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->transparent = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_transparent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_transparent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_transparent_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->transparent);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_interlace_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_interlace_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_interlace_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_interlace_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->interlace = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_interlace_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_interlace_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_interlace_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->interlace);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_imagequality_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_imagequality_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagequality_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_imagequality_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->imagequality = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_imagequality_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_imagequality_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagequality_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->imagequality);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_extent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_extent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_extent_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_extent_set" "', argument " "2"" of type '" "rectObj *""'"); 
-  }
-  arg2 = (rectObj *)(argp2);
-  if (arg1) (arg1)->extent = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_extent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_extent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_extent_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (rectObj *)& ((arg1)->extent);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_cellsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_cellsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_cellsize_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_cellsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->cellsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_cellsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_cellsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_cellsize_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (double) ((arg1)->cellsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_units_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  enum MS_UNITS arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_units_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_units_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_units_set" "', argument " "2"" of type '" "enum MS_UNITS""'");
-  } 
-  arg2 = (enum MS_UNITS)(val2);
-  if (arg1) (arg1)->units = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_units_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum MS_UNITS result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_units_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_units_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (enum MS_UNITS) ((arg1)->units);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_scaledenom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_scaledenom_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaledenom_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_scaledenom_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->scaledenom = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_scaledenom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_scaledenom_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaledenom_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (double) ((arg1)->scaledenom);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_resolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_resolution_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_resolution_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_resolution_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->resolution = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_resolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_resolution_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_resolution_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (double) ((arg1)->resolution);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_defresolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_defresolution_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_defresolution_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_defresolution_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->defresolution = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_defresolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_defresolution_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_defresolution_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (double) ((arg1)->defresolution);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_shapepath_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_shapepath_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_shapepath_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    if (arg1->shapepath) free((char*)arg1->shapepath);
-    if (arg2) {
-      arg1->shapepath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->shapepath,arg2);
-    } else {
-      arg1->shapepath = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_shapepath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_shapepath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_shapepath_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->shapepath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_mappath_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_mappath_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_mappath_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    if (arg1->mappath) free((char*)arg1->mappath);
-    if (arg2) {
-      arg1->mappath = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->mappath,arg2);
-    } else {
-      arg1->mappath = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_mappath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_mappath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_mappath_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->mappath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_imagecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_imagecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagecolor_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_imagecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->imagecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_imagecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_imagecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagecolor_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (colorObj *)& ((arg1)->imagecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_numoutputformats_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_numoutputformats_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_numoutputformats_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->numoutputformats);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_outputformat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  outputFormatObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_outputformat_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_outputformat_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (outputFormatObj *) ((arg1)->outputformat);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_imagetype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_imagetype_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_imagetype_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->imagetype);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_reference_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  referenceMapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_reference_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_reference_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (referenceMapObj *)& ((arg1)->reference);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_referenceMapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_scalebar_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  scalebarObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_scalebar_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scalebar_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (scalebarObj *)& ((arg1)->scalebar);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_scalebarObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_legend_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  legendObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_legend_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_legend_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (legendObj *)& ((arg1)->legend);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_legendObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_querymap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  queryMapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_querymap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_querymap_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (queryMapObj *)& ((arg1)->querymap);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_queryMapObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_web_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  webObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_web_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_web_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (webObj *)& ((arg1)->web);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_webObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_layerorder_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int *arg2 = (int *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_layerorder_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_layerorder_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_layerorder_set" "', argument " "2"" of type '" "int *""'"); 
-  }
-  arg2 = (int *)(argp2);
-  if (arg1) (arg1)->layerorder = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_layerorder_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_layerorder_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_layerorder_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int *) ((arg1)->layerorder);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_debug_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_debug_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_debug_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->debug = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_debug_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_debug_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (int) ((arg1)->debug);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_datapattern_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_datapattern_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_datapattern_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    if (arg1->datapattern) free((char*)arg1->datapattern);
-    if (arg2) {
-      arg1->datapattern = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->datapattern,arg2);
-    } else {
-      arg1->datapattern = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_datapattern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_datapattern_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_datapattern_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->datapattern);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_templatepattern_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_templatepattern_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_templatepattern_set" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    if (arg1->templatepattern) free((char*)arg1->templatepattern);
-    if (arg2) {
-      arg1->templatepattern = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->templatepattern,arg2);
-    } else {
-      arg1->templatepattern = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_templatepattern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_templatepattern_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_templatepattern_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (char *) ((arg1)->templatepattern);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_configoptions_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_configoptions_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_configoptions_get" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  result = (hashTableObj *)& ((arg1)->configoptions);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_mapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) "" ;
-  struct mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|z:new_mapObj",&arg1)) SWIG_fail;
-  {
-    result = (struct mapObj *)new_mapObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_mapObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_mapObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_mapObj" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    delete_mapObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_clone",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_clone" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (mapObj *)mapObj_clone(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_insertLayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  layerObj *arg2 = (layerObj *) 0 ;
-  int arg3 = (int) -1 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|O:mapObj_insertLayer",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_insertLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_insertLayer" "', argument " "2"" of type '" "layerObj *""'"); 
-  }
-  arg2 = (layerObj *)(argp2);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_insertLayer" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)mapObj_insertLayer(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_removeLayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_removeLayer",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_removeLayer" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (layerObj *)mapObj_removeLayer(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  double val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:mapObj_setExtent",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setExtent" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_setExtent" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  ecode4 = SWIG_AsVal_double(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_setExtent" "', argument " "4"" of type '" "double""'");
-  } 
-  arg4 = (double)(val4);
-  ecode5 = SWIG_AsVal_double(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_setExtent" "', argument " "5"" of type '" "double""'");
-  } 
-  arg5 = (double)(val5);
-  {
-    result = (int)mapObj_setExtent(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_offsetExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:mapObj_offsetExtent",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_offsetExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_offsetExtent" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_offsetExtent" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  {
-    result = (int)mapObj_offsetExtent(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_scaleExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:mapObj_scaleExtent",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_scaleExtent" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_scaleExtent" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_scaleExtent" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  ecode4 = SWIG_AsVal_double(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_scaleExtent" "', argument " "4"" of type '" "double""'");
-  } 
-  arg4 = (double)(val4);
-  {
-    result = (int)mapObj_scaleExtent(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setCenter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_setCenter",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setCenter" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setCenter" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (int)mapObj_setCenter(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:mapObj_setSize",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setSize" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setSize" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_setSize" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  {
-    result = (int)mapObj_setSize(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_setRotation",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setRotation" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_setRotation" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  {
-    result = (int)mapObj_setRotation(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getLayer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_getLayer",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayer" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getLayer" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (layerObj *)mapObj_getLayer(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getLayerByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  layerObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getLayerByName",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayerByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (layerObj *)mapObj_getLayerByName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_layerObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getSymbolByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getSymbolByName",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getSymbolByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_getSymbolByName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_prepareQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_prepareQuery",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_prepareQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    mapObj_prepareQuery(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_prepareImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_prepareImage",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_prepareImage" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_prepareImage(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setImageType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_setImageType",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setImageType" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    mapObj_setImageType(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_selectOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_selectOutputFormat",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_selectOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    mapObj_selectOutputFormat(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  outputFormatObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_getOutputFormat",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getOutputFormat" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (outputFormatObj *)mapObj_getOutputFormat(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_setOutputFormat",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setOutputFormat" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-  }
-  arg2 = (outputFormatObj *)(argp2);
-  {
-    mapObj_setOutputFormat(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_draw",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_draw" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_draw(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_drawQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_drawQuery",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_drawQuery(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_drawLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_drawLegend",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawLegend" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_drawLegend(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_drawScalebar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_drawScalebar",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawScalebar" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_drawScalebar(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_drawReferenceMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_drawReferenceMap",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawReferenceMap" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (imageObj *)mapObj_drawReferenceMap(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_embedScalebar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_embedScalebar",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_embedScalebar" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_embedScalebar" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  {
-    result = (int)mapObj_embedScalebar(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_embedLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_embedLegend",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_embedLegend" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_embedLegend" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  {
-    result = (int)mapObj_embedLegend(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_drawLabelCache(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_drawLabelCache",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_drawLabelCache" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_drawLabelCache" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  {
-    result = (int)mapObj_drawLabelCache(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_getLabel",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLabel" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_getLabel" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (labelCacheMemberObj *)mapObj_getLabel(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_nextLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  labelCacheMemberObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_nextLabel",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_nextLabel" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (labelCacheMemberObj *)mapObj_nextLabel(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelCacheMemberObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_queryByFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_queryByFilter",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByFilter" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_queryByFilter(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_queryByPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  int arg3 ;
-  double arg4 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:mapObj_queryByPoint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByPoint" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_queryByPoint" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_double(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_queryByPoint" "', argument " "4"" of type '" "double""'");
-  } 
-  arg4 = (double)(val4);
-  {
-    result = (int)mapObj_queryByPoint(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_queryByRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_queryByRect",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByRect" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rectObj,  0 );
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByRect" "', argument " "2"" of type '" "rectObj""'"); 
-    }  
-    if (!argp2) {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mapObj_queryByRect" "', argument " "2"" of type '" "rectObj""'");
-    } else {
-      arg2 = *((rectObj *)(argp2));
-    }
-  }
-  {
-    result = (int)mapObj_queryByRect(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_queryByFeatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_queryByFeatures",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByFeatures" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_queryByFeatures" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)mapObj_queryByFeatures(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_queryByShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_queryByShape",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_queryByShape" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_queryByShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)mapObj_queryByShape(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setWKTProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_setWKTProjection",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setWKTProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_setWKTProjection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getProjection",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_getProjection(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_setProjection",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setProjection" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_setProjection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_save",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_save" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_save(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_saveQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int arg3 = (int) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz|O:mapObj_saveQuery",&obj0,&arg2,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_saveQuery" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)mapObj_saveQuery(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_loadQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_loadQuery",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_loadQuery(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_freeQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 = (int) -1 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O|O:mapObj_freeQuery",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_freeQuery" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  if (obj1) {
-    ecode2 = SWIG_AsVal_int(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_freeQuery" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-  }
-  {
-    mapObj_freeQuery(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_saveQueryAsGML(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) "GOMF" ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res3 ;
-  char *buf3 = 0 ;
-  int alloc3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz|O:mapObj_saveQueryAsGML",&obj0,&arg2,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveQueryAsGML" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  if (obj2) {
-    res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
-    if (!SWIG_IsOK(res3)) {
-      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_saveQueryAsGML" "', argument " "3"" of type '" "char const *""'");
-    }
-    arg3 = (char *)(buf3);
-  }
-  {
-    result = (int)mapObj_saveQueryAsGML(arg1,arg2,(char const *)arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return resultobj;
-fail:
-  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getMetaData",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_getMetaData(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:mapObj_setMetaData",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_setMetaData(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_removeMetaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_removeMetaData",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeMetaData" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_removeMetaData(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getFirstMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getFirstMetaDataKey",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getFirstMetaDataKey" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_getFirstMetaDataKey(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getNextMetaDataKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getNextMetaDataKey",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getNextMetaDataKey" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_getNextMetaDataKey(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setSymbolSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_setSymbolSet",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setSymbolSet" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_setSymbolSet(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getNumSymbols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getNumSymbols",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getNumSymbols" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_getNumSymbols(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setFontSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_setFontSet",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setFontSet" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_setFontSet(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_saveMapContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_saveMapContext",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_saveMapContext" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_saveMapContext(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_loadMapContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  int arg3 = (int) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz|O:mapObj_loadMapContext",&obj0,&arg2,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadMapContext" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_loadMapContext" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  {
-    result = (int)mapObj_loadMapContext(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_moveLayerUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_moveLayerUp",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_moveLayerUp" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_moveLayerUp" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)mapObj_moveLayerUp(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_moveLayerDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_moveLayerDown",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_moveLayerDown" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_moveLayerDown" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)mapObj_moveLayerDown(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getLayersDrawingOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  intarray *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getLayersDrawingOrder",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayersDrawingOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (intarray *)mapObj_getLayersDrawingOrder(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_intarray, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setLayersDrawingOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int *arg2 = (int *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_setLayersDrawingOrder",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setLayersDrawingOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_setLayersDrawingOrder" "', argument " "2"" of type '" "int *""'"); 
-  }
-  arg2 = (int *)(argp2);
-  {
-    result = (int)mapObj_setLayersDrawingOrder(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setConfigOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:mapObj_setConfigOption",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setConfigOption" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    mapObj_setConfigOption(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getConfigOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getConfigOption",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getConfigOption" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_getConfigOption(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_applyConfigOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_applyConfigOptions",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applyConfigOptions" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    mapObj_applyConfigOptions(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_applySLD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_applySLD",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applySLD" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_applySLD(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_applySLDURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_applySLDURL",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_applySLDURL" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_applySLDURL(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_generateSLD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_generateSLD",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_generateSLD" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_generateSLD(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_processTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  char **arg3 = (char **) 0 ;
-  char **arg4 = (char **) 0 ;
-  int arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:mapObj_processTemplate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_processTemplate" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processTemplate" "', argument " "3"" of type '" "char **""'"); 
-  }
-  arg3 = (char **)(argp3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mapObj_processTemplate" "', argument " "4"" of type '" "char **""'"); 
-  }
-  arg4 = (char **)(argp4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_processTemplate" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (char *)mapObj_processTemplate(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_processLegendTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  char **arg3 = (char **) 0 ;
-  int arg4 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:mapObj_processLegendTemplate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processLegendTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_processLegendTemplate" "', argument " "2"" of type '" "char **""'"); 
-  }
-  arg2 = (char **)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processLegendTemplate" "', argument " "3"" of type '" "char **""'"); 
-  }
-  arg3 = (char **)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_processLegendTemplate" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  {
-    result = (char *)mapObj_processLegendTemplate(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_processQueryTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char **arg2 = (char **) 0 ;
-  char **arg3 = (char **) 0 ;
-  int arg4 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:mapObj_processQueryTemplate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_processQueryTemplate" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_processQueryTemplate" "', argument " "2"" of type '" "char **""'"); 
-  }
-  arg2 = (char **)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_processQueryTemplate" "', argument " "3"" of type '" "char **""'"); 
-  }
-  arg3 = (char **)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_processQueryTemplate" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  {
-    result = (char *)mapObj_processQueryTemplate(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getOutputFormatByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  outputFormatObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_getOutputFormatByName",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getOutputFormatByName" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (outputFormatObj *)mapObj_getOutputFormatByName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_appendOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_appendOutputFormat",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_appendOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_appendOutputFormat" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-  }
-  arg2 = (outputFormatObj *)(argp2);
-  {
-    result = (int)mapObj_appendOutputFormat(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_removeOutputFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:mapObj_removeOutputFormat",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_removeOutputFormat" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (int)mapObj_removeOutputFormat(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_loadOWSParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-  char *arg3 = (char *) "1.1.1" ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO|z:mapObj_loadOWSParameters",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_loadOWSParameters" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_loadOWSParameters" "', argument " "2"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg2 = (cgiRequestObj *)(argp2);
-  {
-    result = (int)mapObj_loadOWSParameters(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_OWSDispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  cgiRequestObj *arg2 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_OWSDispatch",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_OWSDispatch" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_OWSDispatch" "', argument " "2"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg2 = (cgiRequestObj *)(argp2);
-  {
-    result = (int)mapObj_OWSDispatch(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_convertToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_convertToString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_convertToString" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (char *)mapObj_convertToString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_zoomPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  rectObj *arg7 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  void *argp6 = 0 ;
-  int res6 = 0 ;
-  void *argp7 = 0 ;
-  int res7 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  PyObject * obj6 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:mapObj_zoomPoint",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomPoint" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_zoomPoint" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_zoomPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomPoint" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_zoomPoint" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomPoint" "', argument " "6"" of type '" "rectObj *""'"); 
-  }
-  arg6 = (rectObj *)(argp6);
-  res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res7)) {
-    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "mapObj_zoomPoint" "', argument " "7"" of type '" "rectObj *""'"); 
-  }
-  arg7 = (rectObj *)(argp7);
-  {
-    result = (int)mapObj_zoomPoint(arg1,arg2,arg3,arg4,arg5,arg6,arg7); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_zoomRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  int arg3 ;
-  int arg4 ;
-  rectObj *arg5 = (rectObj *) 0 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  void *argp5 = 0 ;
-  int res5 = 0 ;
-  void *argp6 = 0 ;
-  int res6 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOO:mapObj_zoomRectangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomRectangle" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mapObj_zoomRectangle" "', argument " "2"" of type '" "rectObj *""'"); 
-  }
-  arg2 = (rectObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mapObj_zoomRectangle" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomRectangle" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res5)) {
-    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mapObj_zoomRectangle" "', argument " "5"" of type '" "rectObj *""'"); 
-  }
-  arg5 = (rectObj *)(argp5);
-  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomRectangle" "', argument " "6"" of type '" "rectObj *""'"); 
-  }
-  arg6 = (rectObj *)(argp6);
-  {
-    result = (int)mapObj_zoomRectangle(arg1,arg2,arg3,arg4,arg5,arg6); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_zoomScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  double arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  int arg4 ;
-  int arg5 ;
-  rectObj *arg6 = (rectObj *) 0 ;
-  rectObj *arg7 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  void *argp6 = 0 ;
-  int res6 = 0 ;
-  void *argp7 = 0 ;
-  int res7 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  PyObject * obj5 = 0 ;
-  PyObject * obj6 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:mapObj_zoomScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_zoomScale" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mapObj_zoomScale" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mapObj_zoomScale" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mapObj_zoomScale" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mapObj_zoomScale" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res6)) {
-    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mapObj_zoomScale" "', argument " "6"" of type '" "rectObj *""'"); 
-  }
-  arg6 = (rectObj *)(argp6);
-  res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res7)) {
-    SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "mapObj_zoomScale" "', argument " "7"" of type '" "rectObj *""'"); 
-  }
-  arg7 = (rectObj *)(argp7);
-  {
-    result = (int)mapObj_zoomScale(arg1,arg2,arg3,arg4,arg5,arg6,arg7); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getLayerOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getLayerOrder",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getLayerOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (PyObject *)mapObj_getLayerOrder(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = result;
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_setLayerOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  PyObject *arg2 = (PyObject *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:mapObj_setLayerOrder",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_setLayerOrder" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  arg2 = obj1;
-  {
-    result = (int)mapObj_setLayerOrder(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_mapObj_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct mapObj *arg1 = (struct mapObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:mapObj_getSize",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mapObj_getSize" "', argument " "1"" of type '" "struct mapObj *""'"); 
-  }
-  arg1 = (struct mapObj *)(argp1);
-  {
-    result = (PyObject *)mapObj_getSize(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = result;
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *mapObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_mapObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_msSaveImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  mapObj *arg1 = (mapObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:msSaveImage",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msSaveImage" "', argument " "1"" of type '" "mapObj *""'"); 
-  }
-  arg1 = (mapObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "msSaveImage" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  {
-    result = (int)msSaveImage(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msFreeImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  imageObj *arg1 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:msFreeImage",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "msFreeImage" "', argument " "1"" of type '" "imageObj *""'"); 
-  }
-  arg1 = (imageObj *)(argp1);
-  {
-    msFreeImage(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msSetup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msSetup")) SWIG_fail;
-  {
-    result = (int)msSetup(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msCleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:msCleanup",&obj0)) SWIG_fail;
-  ecode1 = SWIG_AsVal_int(obj0, &val1);
-  if (!SWIG_IsOK(ecode1)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "msCleanup" "', argument " "1"" of type '" "int""'");
-  } 
-  arg1 = (int)(val1);
-  {
-    msCleanup(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msLoadMapFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) 0 ;
-  mapObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"zz:msLoadMapFromString",&arg1,&arg2)) SWIG_fail;
-  {
-    result = (mapObj *)msLoadMapFromString(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_width_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_width_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_width_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (double) ((arg1)->width);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_patternlength_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_patternlength_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternlength_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_patternlength_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->patternlength = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_patternlength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_patternlength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternlength_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (int) ((arg1)->patternlength);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_pattern_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double *arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_pattern_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_pattern_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "strokeStyleObj_pattern_set" "', argument " "2"" of type '" "double [MS_MAXPATTERNLENGTH]""'"); 
-  } 
-  arg2 = (double *)(argp2);
-  {
-    if (arg2) {
-      size_t ii = 0;
-      for (; ii < (size_t)MS_MAXPATTERNLENGTH; ++ii) arg1->pattern[ii] = arg2[ii];
-    } else {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""pattern""' of type '""double [MS_MAXPATTERNLENGTH]""'");
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_pattern_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_pattern_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_pattern_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (double *)(double *) ((arg1)->pattern);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_patternoffset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_patternoffset_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternoffset_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_patternoffset_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->patternoffset = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_patternoffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_patternoffset_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_patternoffset_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (double) ((arg1)->patternoffset);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_color_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "strokeStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_color_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linecap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_linecap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linecap_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linecap_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->linecap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linecap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_linecap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linecap_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (int) ((arg1)->linecap);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linejoin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_linejoin_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoin_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linejoin_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->linejoin = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linejoin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_linejoin_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoin_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (int) ((arg1)->linejoin);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linejoinmaxsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:strokeStyleObj_linejoinmaxsize_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoinmaxsize_set" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "strokeStyleObj_linejoinmaxsize_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->linejoinmaxsize = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_strokeStyleObj_linejoinmaxsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:strokeStyleObj_linejoinmaxsize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "strokeStyleObj_linejoinmaxsize_get" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  result = (double) ((arg1)->linejoinmaxsize);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_strokeStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_strokeStyleObj")) SWIG_fail;
-  {
-    result = (strokeStyleObj *)calloc(1, sizeof(strokeStyleObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_strokeStyleObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_strokeStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  strokeStyleObj *arg1 = (strokeStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_strokeStyleObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_strokeStyleObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_strokeStyleObj" "', argument " "1"" of type '" "strokeStyleObj *""'"); 
-  }
-  arg1 = (strokeStyleObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *strokeStyleObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_strokeStyleObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_color_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_color_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_backgroundcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_backgroundcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_backgroundcolor_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->backgroundcolor = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_backgroundcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_backgroundcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_backgroundcolor_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->backgroundcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_outlinewidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_outlinewidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinewidth_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->outlinewidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_outlinewidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_outlinewidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinewidth_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (double) ((arg1)->outlinewidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinecolor_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_outlinecolor_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_scale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_scale_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_scale_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_scale_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->scale = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_scale_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_scale_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (double) ((arg1)->scale);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_rotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_rotation_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_rotation_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_rotation_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->rotation = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_rotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_rotation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_rotation_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (double) ((arg1)->rotation);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_gap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_gap_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_gap_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolStyleObj_gap_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->gap = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_gap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_gap_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_gap_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (double) ((arg1)->gap);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_style_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  styleObj *arg2 = (styleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolStyleObj_style_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_style_set" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_styleObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolStyleObj_style_set" "', argument " "2"" of type '" "styleObj *""'"); 
-  }
-  arg2 = (styleObj *)(argp2);
-  if (arg1) (arg1)->style = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolStyleObj_style_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  styleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolStyleObj_style_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolStyleObj_style_get" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  result = (styleObj *) ((arg1)->style);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_styleObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_symbolStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_symbolStyleObj")) SWIG_fail;
-  {
-    result = (symbolStyleObj *)calloc(1, sizeof(symbolStyleObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolStyleObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_symbolStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  symbolStyleObj *arg1 = (symbolStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_symbolStyleObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolStyleObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolStyleObj" "', argument " "1"" of type '" "symbolStyleObj *""'"); 
-  }
-  arg1 = (symbolStyleObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *symbolStyleObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_symbolStyleObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_symbol_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  symbolObj *arg2 = (symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_symbol_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_symbol_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_symbolObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_symbol_set" "', argument " "2"" of type '" "symbolObj *""'"); 
-  }
-  arg2 = (symbolObj *)(argp2);
-  if (arg1) (arg1)->symbol = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_symbol_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  symbolObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_symbol_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_symbol_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (symbolObj *) ((arg1)->symbol);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_width_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_width_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_width_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->width = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_width_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_width_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (int) ((arg1)->width);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_height_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_height_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_height_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->height = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_height_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_height_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (int) ((arg1)->height);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_color_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_color_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (colorObj *)& ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinecolor_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinecolor_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (colorObj *)& ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_backgroundcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_backgroundcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_backgroundcolor_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_backgroundcolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->backgroundcolor = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_backgroundcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_backgroundcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_backgroundcolor_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (colorObj *)& ((arg1)->backgroundcolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_outlinewidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_outlinewidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinewidth_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->outlinewidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_outlinewidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_outlinewidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_outlinewidth_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (double) ((arg1)->outlinewidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_rotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_rotation_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_rotation_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_rotation_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->rotation = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_rotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_rotation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_rotation_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (double) ((arg1)->rotation);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_scale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_scale_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_scale_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "tileCacheObj_scale_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->scale = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_scale_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_scale_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (double) ((arg1)->scale);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_image_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_image_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_image_set" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  if (arg1) (arg1)->image = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_image_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_image_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (imageObj *) ((arg1)->image);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  tileCacheObj *arg2 = (tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:tileCacheObj_next_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_next_set" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_tileCacheObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tileCacheObj_next_set" "', argument " "2"" of type '" "tileCacheObj *""'"); 
-  }
-  arg2 = (tileCacheObj *)(argp2);
-  if (arg1) (arg1)->next = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_tileCacheObj_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  tileCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:tileCacheObj_next_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "tileCacheObj_next_get" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  result = (tileCacheObj *) ((arg1)->next);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tileCacheObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_tileCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_tileCacheObj")) SWIG_fail;
-  {
-    result = (struct tileCacheObj *)calloc(1, sizeof(struct tileCacheObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_tileCacheObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_tileCacheObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct tileCacheObj *arg1 = (struct tileCacheObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_tileCacheObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_tileCacheObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_tileCacheObj" "', argument " "1"" of type '" "struct tileCacheObj *""'"); 
-  }
-  arg1 = (struct tileCacheObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *tileCacheObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_tileCacheObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_fonts_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  char **arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_fonts_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_fonts_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_fonts_set" "', argument " "2"" of type '" "char *[5]""'"); 
-  } 
-  arg2 = (char **)(argp2);
-  {
-    if (arg2) {
-      size_t ii = 0;
-      for (; ii < (size_t)5; ++ii) arg1->fonts[ii] = arg2[ii];
-    } else {
-      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""fonts""' of type '""char *[5]""'");
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_fonts_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char **result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_fonts_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_fonts_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (char **)(char **) ((arg1)->fonts);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_numfonts_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_numfonts_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_numfonts_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_numfonts_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->numfonts = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_numfonts_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_numfonts_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_numfonts_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (int) ((arg1)->numfonts);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_size_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_size_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_size_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->size = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_size_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_size_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (double) ((arg1)->size);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_rotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_rotation_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_rotation_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_rotation_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->rotation = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_rotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_rotation_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_rotation_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (double) ((arg1)->rotation);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_color_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_color_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_color_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->color = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_color_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_color_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->color);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_outlinewidth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_outlinewidth_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinewidth_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_outlinewidth_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->outlinewidth = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_outlinewidth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_outlinewidth_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinewidth_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (double) ((arg1)->outlinewidth);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_outlinecolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  colorObj *arg2 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_outlinecolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinecolor_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "labelStyleObj_outlinecolor_set" "', argument " "2"" of type '" "colorObj *""'"); 
-  }
-  arg2 = (colorObj *)(argp2);
-  if (arg1) (arg1)->outlinecolor = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_outlinecolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_outlinecolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_outlinecolor_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (colorObj *) ((arg1)->outlinecolor);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_antialias_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:labelStyleObj_antialias_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_antialias_set" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "labelStyleObj_antialias_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->antialias = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_labelStyleObj_antialias_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:labelStyleObj_antialias_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "labelStyleObj_antialias_get" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  result = (int) ((arg1)->antialias);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_labelStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_labelStyleObj")) SWIG_fail;
-  {
-    result = (labelStyleObj *)calloc(1, sizeof(labelStyleObj)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_labelStyleObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_labelStyleObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  labelStyleObj *arg1 = (labelStyleObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_labelStyleObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_labelStyleObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_labelStyleObj" "', argument " "1"" of type '" "labelStyleObj *""'"); 
-  }
-  arg1 = (labelStyleObj *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *labelStyleObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_labelStyleObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_rectObj_minx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:rectObj_minx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_minx_set" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_minx_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_minx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_minx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_minx_get" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  result = (double) ((arg1)->minx);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_miny_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:rectObj_miny_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_miny_set" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_miny_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->miny = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_miny_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_miny_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_miny_get" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  result = (double) ((arg1)->miny);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_maxx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:rectObj_maxx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxx_set" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_maxx_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_maxx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_maxx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxx_get" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  result = (double) ((arg1)->maxx);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_maxy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:rectObj_maxy_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxy_set" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_maxy_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxy = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_maxy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_maxy_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_maxy_get" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  result = (double) ((arg1)->maxy);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_rectObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  double arg1 = (double) -1.0 ;
-  double arg2 = (double) -1.0 ;
-  double arg3 = (double) -1.0 ;
-  double arg4 = (double) -1.0 ;
-  int arg5 = (int) 0 ;
-  double val1 ;
-  int ecode1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|OOOOO:new_rectObj",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  if (obj0) {
-    ecode1 = SWIG_AsVal_double(obj0, &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rectObj" "', argument " "1"" of type '" "double""'");
-    } 
-    arg1 = (double)(val1);
-  }
-  if (obj1) {
-    ecode2 = SWIG_AsVal_double(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rectObj" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-  }
-  if (obj2) {
-    ecode3 = SWIG_AsVal_double(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rectObj" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-  }
-  if (obj3) {
-    ecode4 = SWIG_AsVal_double(obj3, &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rectObj" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-  }
-  if (obj4) {
-    ecode5 = SWIG_AsVal_int(obj4, &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rectObj" "', argument " "5"" of type '" "int""'");
-    } 
-    arg5 = (int)(val5);
-  }
-  {
-    result = (rectObj *)new_rectObj(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_rectObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_rectObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rectObj" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  {
-    delete_rectObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_project(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:rectObj_project",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_project" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rectObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-  }
-  arg2 = (projectionObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rectObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-  }
-  arg3 = (projectionObj *)(argp3);
-  {
-    result = (int)rectObj_project(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:rectObj_fit",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_fit" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rectObj_fit" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rectObj_fit" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  {
-    result = (double)rectObj_fit(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOz:rectObj_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_draw" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rectObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rectObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-  }
-  arg3 = (layerObj *)(argp3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rectObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-  }
-  arg4 = (imageObj *)(argp4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rectObj_draw" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (int)rectObj_draw(arg1,arg2,arg3,arg4,arg5,arg6); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_getCenter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_getCenter",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_getCenter" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  {
-    result = (pointObj *)rectObj_getCenter(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_toPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_toPolygon",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_toPolygon" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  {
-    result = (shapeObj *)rectObj_toPolygon(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_rectObj_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  rectObj *arg1 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:rectObj_toString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rectObj_toString" "', argument " "1"" of type '" "rectObj *""'"); 
-  }
-  arg1 = (rectObj *)(argp1);
-  {
-    result = (char *)rectObj_toString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *rectObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_rectObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_pointObj_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:pointObj_x_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_x_set" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_x_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->x = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pointObj_x_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_x_get" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  result = (double) ((arg1)->x);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:pointObj_y_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_y_set" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_y_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->y = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pointObj_y_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_y_get" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  result = (double) ((arg1)->y);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_pointObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  double arg1 = (double) 0.0 ;
-  double arg2 = (double) 0.0 ;
-  double arg3 = (double) 0.0 ;
-  double arg4 = (double) -2e38 ;
-  double val1 ;
-  int ecode1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|OOOO:new_pointObj",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  if (obj0) {
-    ecode1 = SWIG_AsVal_double(obj0, &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_pointObj" "', argument " "1"" of type '" "double""'");
-    } 
-    arg1 = (double)(val1);
-  }
-  if (obj1) {
-    ecode2 = SWIG_AsVal_double(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_pointObj" "', argument " "2"" of type '" "double""'");
-    } 
-    arg2 = (double)(val2);
-  }
-  if (obj2) {
-    ecode3 = SWIG_AsVal_double(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_pointObj" "', argument " "3"" of type '" "double""'");
-    } 
-    arg3 = (double)(val3);
-  }
-  if (obj3) {
-    ecode4 = SWIG_AsVal_double(obj3, &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_pointObj" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-  }
-  {
-    result = (pointObj *)new_pointObj(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_pointObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_pointObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pointObj" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  {
-    delete_pointObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_project(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pointObj_project",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_project" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-  }
-  arg2 = (projectionObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-  }
-  arg3 = (projectionObj *)(argp3);
-  {
-    result = (int)pointObj_project(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  int arg5 ;
-  char *arg6 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  int val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOOz:pointObj_draw",&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_draw" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-  }
-  arg3 = (layerObj *)(argp3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pointObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-  }
-  arg4 = (imageObj *)(argp4);
-  ecode5 = SWIG_AsVal_int(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_draw" "', argument " "5"" of type '" "int""'");
-  } 
-  arg5 = (int)(val5);
-  {
-    result = (int)pointObj_draw(arg1,arg2,arg3,arg4,arg5,arg6); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_distanceToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:pointObj_distanceToPoint",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToPoint" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (double)pointObj_distanceToPoint(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_distanceToSegment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:pointObj_distanceToSegment",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToSegment" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToSegment" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pointObj_distanceToSegment" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  {
-    result = (double)pointObj_distanceToSegment(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_distanceToShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:pointObj_distanceToShape",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_distanceToShape" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointObj_distanceToShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (double)pointObj_distanceToShape(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_setXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 = (double) -2e38 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO|O:pointObj_setXY",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXY" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXY" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXY" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  if (obj3) {
-    ecode4 = SWIG_AsVal_double(obj3, &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXY" "', argument " "4"" of type '" "double""'");
-    } 
-    arg4 = (double)(val4);
-  }
-  {
-    result = (int)pointObj_setXY(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_setXYZ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 = (double) -2e38 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  double val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO|O:pointObj_setXYZ",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXYZ" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXYZ" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXYZ" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  ecode4 = SWIG_AsVal_double(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXYZ" "', argument " "4"" of type '" "double""'");
-  } 
-  arg4 = (double)(val4);
-  if (obj4) {
-    ecode5 = SWIG_AsVal_double(obj4, &val5);
-    if (!SWIG_IsOK(ecode5)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_setXYZ" "', argument " "5"" of type '" "double""'");
-    } 
-    arg5 = (double)(val5);
-  }
-  {
-    result = (int)pointObj_setXYZ(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_setXYZM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  double arg2 ;
-  double arg3 ;
-  double arg4 ;
-  double arg5 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  double val3 ;
-  int ecode3 = 0 ;
-  double val4 ;
-  int ecode4 = 0 ;
-  double val5 ;
-  int ecode5 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  PyObject * obj4 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOOO:pointObj_setXYZM",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_setXYZM" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pointObj_setXYZM" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  ecode3 = SWIG_AsVal_double(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pointObj_setXYZM" "', argument " "3"" of type '" "double""'");
-  } 
-  arg3 = (double)(val3);
-  ecode4 = SWIG_AsVal_double(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pointObj_setXYZM" "', argument " "4"" of type '" "double""'");
-  } 
-  arg4 = (double)(val4);
-  ecode5 = SWIG_AsVal_double(obj4, &val5);
-  if (!SWIG_IsOK(ecode5)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pointObj_setXYZM" "', argument " "5"" of type '" "double""'");
-  } 
-  arg5 = (double)(val5);
-  {
-    result = (int)pointObj_setXYZM(arg1,arg2,arg3,arg4,arg5); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_toString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pointObj_toString",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_toString" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  {
-    result = (char *)pointObj_toString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_pointObj_toShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  pointObj *arg1 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:pointObj_toShape",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointObj_toShape" "', argument " "1"" of type '" "pointObj *""'"); 
-  }
-  arg1 = (pointObj *)(argp1);
-  {
-    result = (shapeObj *)pointObj_toShape(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *pointObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_pointObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_lineObj_numpoints_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:lineObj_numpoints_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_numpoints_get" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  result = (int) ((arg1)->numpoints);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_lineObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_lineObj")) SWIG_fail;
-  {
-    result = (lineObj *)new_lineObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_lineObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_lineObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_lineObj" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  {
-    delete_lineObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_lineObj_project(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:lineObj_project",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_project" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "lineObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-  }
-  arg2 = (projectionObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lineObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-  }
-  arg3 = (projectionObj *)(argp3);
-  {
-    result = (int)lineObj_project(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_lineObj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:lineObj_get",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_get" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lineObj_get" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (pointObj *)lineObj_get(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_lineObj_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:lineObj_add",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_add" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "lineObj_add" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (int)lineObj_add(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_lineObj_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  lineObj *arg1 = (lineObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:lineObj_set",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lineObj_set" "', argument " "1"" of type '" "lineObj *""'"); 
-  }
-  arg1 = (lineObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "lineObj_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "lineObj_set" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  {
-    result = (int)lineObj_set(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *lineObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_lineObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_shapeObj_numlines_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_numlines_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_numlines_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->numlines);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_numvalues_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_numvalues_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_numvalues_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->numvalues);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_bounds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  rectObj *arg2 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_bounds_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_bounds_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_bounds_set" "', argument " "2"" of type '" "rectObj *""'"); 
-  }
-  arg2 = (rectObj *)(argp2);
-  if (arg1) (arg1)->bounds = *arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_bounds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_bounds_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_bounds_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (rectObj *)& ((arg1)->bounds);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_type_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_type_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_type_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  long arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  long val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_index_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_index_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_long(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_index_set" "', argument " "2"" of type '" "long""'");
-  } 
-  arg2 = (long)(val2);
-  if (arg1) (arg1)->index = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  long result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_index_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_index_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (long) ((arg1)->index);
-  resultobj = SWIG_From_long((long)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_tileindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_tileindex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_tileindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_tileindex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->tileindex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_tileindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_tileindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_tileindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->tileindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_classindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_classindex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_classindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_classindex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->classindex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_classindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_classindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_classindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->classindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:shapeObj_text_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_text_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    if (arg1->text) free((char*)arg1->text);
-    if (arg2) {
-      arg1->text = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->text,arg2);
-    } else {
-      arg1->text = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_text_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_text_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (char *) ((arg1)->text);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_scratch_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_scratch_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_scratch_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_scratch_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->scratch = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_scratch_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_scratch_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_scratch_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->scratch);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_resultindex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_resultindex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_resultindex_set" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_resultindex_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->resultindex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_resultindex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_resultindex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_resultindex_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  result = (int) ((arg1)->resultindex);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_shapeObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 = (int) MS_SHAPE_NULL ;
-  int val1 ;
-  int ecode1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|O:new_shapeObj",&obj0)) SWIG_fail;
-  if (obj0) {
-    ecode1 = SWIG_AsVal_int(obj0, &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_shapeObj" "', argument " "1"" of type '" "int""'");
-    } 
-    arg1 = (int)(val1);
-  }
-  {
-    result = (shapeObj *)new_shapeObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_shapeObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_shapeObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_shapeObj" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    delete_shapeObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_fromWKT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"z:shapeObj_fromWKT",&arg1)) SWIG_fail;
-  {
-    result = (shapeObj *)shapeObj_fromWKT(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_project(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  projectionObj *arg2 = (projectionObj *) 0 ;
-  projectionObj *arg3 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:shapeObj_project",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_project" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_project" "', argument " "2"" of type '" "projectionObj *""'"); 
-  }
-  arg2 = (projectionObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapeObj_project" "', argument " "3"" of type '" "projectionObj *""'"); 
-  }
-  arg3 = (projectionObj *)(argp3);
-  {
-    result = (int)shapeObj_project(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  lineObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_get",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_get" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_get" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (lineObj *)shapeObj_get(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  lineObj *arg2 = (lineObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_add",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_add" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_add" "', argument " "2"" of type '" "lineObj *""'"); 
-  }
-  arg2 = (lineObj *)(argp2);
-  {
-    result = (int)shapeObj_add(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  layerObj *arg3 = (layerObj *) 0 ;
-  imageObj *arg4 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:shapeObj_draw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_draw" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_draw" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_layerObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapeObj_draw" "', argument " "3"" of type '" "layerObj *""'"); 
-  }
-  arg3 = (layerObj *)(argp3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "shapeObj_draw" "', argument " "4"" of type '" "imageObj *""'"); 
-  }
-  arg4 = (imageObj *)(argp4);
-  {
-    result = (int)shapeObj_draw(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_setBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_setBounds",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_setBounds" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    shapeObj_setBounds(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_clone",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_clone" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (shapeObj *)shapeObj_clone(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_copy",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_copy" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_copy" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_copy(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_toWKT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_toWKT",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_toWKT" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (char *)shapeObj_toWKT(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_buffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_buffer",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_buffer" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_buffer" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  {
-    result = (shapeObj *)shapeObj_buffer(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_simplify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_simplify",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_simplify" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_simplify" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  {
-    result = (shapeObj *)shapeObj_simplify(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_topologyPreservingSimplify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_topologyPreservingSimplify",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_topologyPreservingSimplify" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_topologyPreservingSimplify" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  {
-    result = (shapeObj *)shapeObj_topologyPreservingSimplify(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_convexHull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_convexHull",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_convexHull" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (shapeObj *)shapeObj_convexHull(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_boundary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_boundary",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_boundary" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (shapeObj *)shapeObj_boundary(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_getCentroid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_getCentroid",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getCentroid" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (pointObj *)shapeObj_getCentroid(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_Union",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_Union" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_Union" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (shapeObj *)shapeObj_Union(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_intersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_intersection",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_intersection" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_intersection" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (shapeObj *)shapeObj_intersection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_difference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_difference",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_difference" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_difference" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (shapeObj *)shapeObj_difference(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_symDifference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_symDifference",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_symDifference" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_symDifference" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (shapeObj *)shapeObj_symDifference(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_contains",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_contains" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_contains" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_contains__SWIG_0(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_overlaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_overlaps",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_overlaps" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_overlaps" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_overlaps(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_within(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_within",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_within" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_within" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_within(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_crosses(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_crosses",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_crosses" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_crosses" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_crosses(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_intersects",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_intersects" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_intersects" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_intersects(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_touches(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_touches",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_touches" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_touches" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_touches(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_equals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_equals",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_equals" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_equals" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_equals(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_disjoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_disjoint",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_disjoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_disjoint" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapeObj_disjoint(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_getArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_getArea",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getArea" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (double)shapeObj_getArea(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_getLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_getLength",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getLength" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (double)shapeObj_getLength(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_getValue",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getValue" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_getValue" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)shapeObj_getValue(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_contains",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_contains" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_contains" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (int)shapeObj_contains__SWIG_1(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_contains(PyObject *self, PyObject *args) {
-  int argc;
-  PyObject *argv[3];
-  int ii;
-  
-  if (!PyTuple_Check(args)) SWIG_fail;
-  argc = args ? (int)PyObject_Length(args) : 0;
-  for (ii = 0; (ii < 2) && (ii < argc); ii++) {
-    argv[ii] = PyTuple_GET_ITEM(args,ii);
-  }
-  if (argc == 2) {
-    int _v;
-    void *vptr = 0;
-    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_shapeObj, 0);
-    _v = SWIG_CheckState(res);
-    if (_v) {
-      void *vptr = 0;
-      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_shapeObj, 0);
-      _v = SWIG_CheckState(res);
-      if (_v) {
-        return _wrap_shapeObj_contains__SWIG_0(self, args);
-      }
-    }
-  }
-  if (argc == 2) {
-    int _v;
-    void *vptr = 0;
-    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_shapeObj, 0);
-    _v = SWIG_CheckState(res);
-    if (_v) {
-      void *vptr = 0;
-      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_pointObj, 0);
-      _v = SWIG_CheckState(res);
-      if (_v) {
-        return _wrap_shapeObj_contains__SWIG_1(self, args);
-      }
-    }
-  }
-  
-fail:
-  SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'shapeObj_contains'.\n"
-    "  Possible C/C++ prototypes are:\n"
-    "    shapeObj::contains(shapeObj *)\n"
-    "    shapeObj::contains(pointObj *)\n");
-  return 0;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_distanceToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_distanceToPoint",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_distanceToPoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_distanceToPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (double)shapeObj_distanceToPoint(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_distanceToShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_distanceToShape",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_distanceToShape" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapeObj_distanceToShape" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (double)shapeObj_distanceToShape(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_getLabelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  pointObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapeObj_getLabelPoint",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_getLabelPoint" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  {
-    result = (pointObj *)shapeObj_getLabelPoint(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pointObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_setValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOz:shapeObj_setValue",&obj0,&obj1,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_setValue" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_setValue" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)shapeObj_setValue(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapeObj_initValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapeObj *arg1 = (shapeObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapeObj_initValues",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapeObj_initValues" "', argument " "1"" of type '" "shapeObj *""'"); 
-  }
-  arg1 = (shapeObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapeObj_initValues" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    shapeObj_initValues(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *shapeObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_shapeObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_DBFInfo_fp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  FILE *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_fp_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_fp_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (FILE *) ((arg1)->fp);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nRecords_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nRecords_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nRecords_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->nRecords);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nRecordLength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  unsigned int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nRecordLength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nRecordLength_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (unsigned int) ((arg1)->nRecordLength);
-  resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nHeaderLength_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nHeaderLength_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nHeaderLength_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->nHeaderLength);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nFields_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nFields_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nFields_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->nFields);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_panFieldOffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_panFieldOffset_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldOffset_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int *) ((arg1)->panFieldOffset);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_panFieldSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_panFieldSize_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldSize_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int *) ((arg1)->panFieldSize);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_panFieldDecimals_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_panFieldDecimals_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_panFieldDecimals_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int *) ((arg1)->panFieldDecimals);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_pachFieldType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_pachFieldType_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pachFieldType_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (char *) ((arg1)->pachFieldType);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_pszHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_pszHeader_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszHeader_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (char *) ((arg1)->pszHeader);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nCurrentRecord_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nCurrentRecord_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nCurrentRecord_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->nCurrentRecord);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_bCurrentRecordModified_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_bCurrentRecordModified_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bCurrentRecordModified_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->bCurrentRecordModified);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_pszCurrentRecord_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_pszCurrentRecord_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszCurrentRecord_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (char *) ((arg1)->pszCurrentRecord);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_bNoHeader_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_bNoHeader_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bNoHeader_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->bNoHeader);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_bUpdated_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_bUpdated_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_bUpdated_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->bUpdated);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_pszStringField_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_pszStringField_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_pszStringField_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (char *) ((arg1)->pszStringField);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_nStringFieldLen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:DBFInfo_nStringFieldLen_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_nStringFieldLen_get" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  result = (int) ((arg1)->nStringFieldLen);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_getFieldName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:DBFInfo_getFieldName",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldName" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldName" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)DBFInfo_getFieldName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_getFieldWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:DBFInfo_getFieldWidth",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldWidth" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldWidth" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)DBFInfo_getFieldWidth(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_getFieldDecimals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:DBFInfo_getFieldDecimals",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldDecimals" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldDecimals" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)DBFInfo_getFieldDecimals(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_DBFInfo_getFieldType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:DBFInfo_getFieldType",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DBFInfo_getFieldType" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DBFInfo_getFieldType" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (int)DBFInfo_getFieldType(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_DBFInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_DBFInfo")) SWIG_fail;
-  {
-    result = (DBFInfo *)calloc(1, sizeof(DBFInfo)); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DBFInfo, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_DBFInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  DBFInfo *arg1 = (DBFInfo *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_DBFInfo",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DBFInfo, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DBFInfo" "', argument " "1"" of type '" "DBFInfo *""'"); 
-  }
-  arg1 = (DBFInfo *)(argp1);
-  {
-    free((char *) arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *DBFInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_DBFInfo, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_shapefileObj_source_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_source_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_source_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (char *)(char *) ((arg1)->source);
-  {
-    size_t size = MS_PATH_LENGTH;
-    
-    while (size && (result[size - 1] == '\0')) --size;
-    
-    resultobj = SWIG_FromCharPtrAndSize(result, size);
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_type_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (int) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_numshapes_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_numshapes_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_numshapes_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (int) ((arg1)->numshapes);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_bounds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_bounds_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_bounds_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (rectObj *)& ((arg1)->bounds);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_lastshape_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_lastshape_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_lastshape_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (int) ((arg1)->lastshape);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  ms_bitarray result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_status_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_status_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (ms_bitarray) ((arg1)->status);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_statusbounds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  rectObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_statusbounds_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_statusbounds_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (rectObj *)& ((arg1)->statusbounds);
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rectObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_isopen_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_isopen_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_isopen_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  result = (int) ((arg1)->isopen);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_shapefileObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  int arg2 = (int) -1 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapefileObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"z|O:new_shapefileObj",&arg1,&obj1)) SWIG_fail;
-  if (obj1) {
-    ecode2 = SWIG_AsVal_int(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_shapefileObj" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-  }
-  {
-    result = (shapefileObj *)new_shapefileObj(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapefileObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_shapefileObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_shapefileObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_shapefileObj" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  {
-    delete_shapefileObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  shapeObj *arg3 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:shapefileObj_get",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_get" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_get" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_get" "', argument " "3"" of type '" "shapeObj *""'"); 
-  }
-  arg3 = (shapeObj *)(argp3);
-  {
-    result = (int)shapefileObj_get(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_getShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  shapeObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapefileObj_getShape",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getShape" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getShape" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (shapeObj *)shapefileObj_getShape(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_shapeObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_getPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  pointObj *arg3 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:shapefileObj_getPoint",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getPoint" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getPoint" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_getPoint" "', argument " "3"" of type '" "pointObj *""'"); 
-  }
-  arg3 = (pointObj *)(argp3);
-  {
-    result = (int)shapefileObj_getPoint(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_getTransformed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  mapObj *arg2 = (mapObj *) 0 ;
-  int arg3 ;
-  shapeObj *arg4 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  void *argp4 = 0 ;
-  int res4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:shapefileObj_getTransformed",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getTransformed" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_mapObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_getTransformed" "', argument " "2"" of type '" "mapObj *""'"); 
-  }
-  arg2 = (mapObj *)(argp2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "shapefileObj_getTransformed" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res4)) {
-    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "shapefileObj_getTransformed" "', argument " "4"" of type '" "shapeObj *""'"); 
-  }
-  arg4 = (shapeObj *)(argp4);
-  {
-    result = (int)shapefileObj_getTransformed(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_getExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  int arg2 ;
-  rectObj *arg3 = (rectObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  void *argp3 = 0 ;
-  int res3 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOO:shapefileObj_getExtent",&obj0,&obj1,&obj2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getExtent" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "shapefileObj_getExtent" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_rectObj, 0 |  0 );
-  if (!SWIG_IsOK(res3)) {
-    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "shapefileObj_getExtent" "', argument " "3"" of type '" "rectObj *""'"); 
-  }
-  arg3 = (rectObj *)(argp3);
-  {
-    shapefileObj_getExtent(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  shapeObj *arg2 = (shapeObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapefileObj_add",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_add" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_shapeObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_add" "', argument " "2"" of type '" "shapeObj *""'"); 
-  }
-  arg2 = (shapeObj *)(argp2);
-  {
-    result = (int)shapefileObj_add(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_addPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  pointObj *arg2 = (pointObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:shapefileObj_addPoint",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_addPoint" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pointObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "shapefileObj_addPoint" "', argument " "2"" of type '" "pointObj *""'"); 
-  }
-  arg2 = (pointObj *)(argp2);
-  {
-    result = (int)shapefileObj_addPoint(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_shapefileObj_getDBF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  shapefileObj *arg1 = (shapefileObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  DBFInfo *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:shapefileObj_getDBF",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_shapefileObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "shapefileObj_getDBF" "', argument " "1"" of type '" "shapefileObj *""'"); 
-  }
-  arg1 = (shapefileObj *)(argp1);
-  {
-    result = (DBFInfo *)shapefileObj_getDBF(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DBFInfo, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *shapefileObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_shapefileObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_projectionObj_numargs_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:projectionObj_numargs_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_numargs_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  result = (int) ((arg1)->numargs);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_projectionObj_automatic_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:projectionObj_automatic_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_automatic_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  result = (int) ((arg1)->automatic);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_projectionObj_wellknownprojection_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:projectionObj_wellknownprojection_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_wellknownprojection_set" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "projectionObj_wellknownprojection_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->wellknownprojection = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_projectionObj_wellknownprojection_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:projectionObj_wellknownprojection_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_wellknownprojection_get" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  result = (int) ((arg1)->wellknownprojection);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_projectionObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  projectionObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"z:new_projectionObj",&arg1)) SWIG_fail;
-  {
-    result = (projectionObj *)new_projectionObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_projectionObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_projectionObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_projectionObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_projectionObj" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  {
-    delete_projectionObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_projectionObj_setWKTProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:projectionObj_setWKTProjection",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_setWKTProjection" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  {
-    result = (int)projectionObj_setWKTProjection(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_projectionObj_getUnits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  projectionObj *arg1 = (projectionObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:projectionObj_getUnits",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_projectionObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "projectionObj_getUnits" "', argument " "1"" of type '" "projectionObj *""'"); 
-  }
-  arg1 = (projectionObj *)(argp1);
-  {
-    result = (int)projectionObj_getUnits(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *projectionObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_projectionObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_colorObj_red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:colorObj_red_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_red_set" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_red_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->red = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:colorObj_red_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_red_get" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  result = (int) ((arg1)->red);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:colorObj_green_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_green_set" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_green_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->green = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:colorObj_green_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_green_get" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  result = (int) ((arg1)->green);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:colorObj_blue_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_blue_set" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_blue_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->blue = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:colorObj_blue_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_blue_get" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  result = (int) ((arg1)->blue);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_alpha_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:colorObj_alpha_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_alpha_set" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_alpha_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->alpha = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_alpha_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:colorObj_alpha_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_alpha_get" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  result = (int) ((arg1)->alpha);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_colorObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int arg1 = (int) 0 ;
-  int arg2 = (int) 0 ;
-  int arg3 = (int) 0 ;
-  int arg4 = (int) MS_PEN_UNSET ;
-  int val1 ;
-  int ecode1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  colorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"|OOOO:new_colorObj",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  if (obj0) {
-    ecode1 = SWIG_AsVal_int(obj0, &val1);
-    if (!SWIG_IsOK(ecode1)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_colorObj" "', argument " "1"" of type '" "int""'");
-    } 
-    arg1 = (int)(val1);
-  }
-  if (obj1) {
-    ecode2 = SWIG_AsVal_int(obj1, &val2);
-    if (!SWIG_IsOK(ecode2)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_colorObj" "', argument " "2"" of type '" "int""'");
-    } 
-    arg2 = (int)(val2);
-  }
-  if (obj2) {
-    ecode3 = SWIG_AsVal_int(obj2, &val3);
-    if (!SWIG_IsOK(ecode3)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_colorObj" "', argument " "3"" of type '" "int""'");
-    } 
-    arg3 = (int)(val3);
-  }
-  if (obj3) {
-    ecode4 = SWIG_AsVal_int(obj3, &val4);
-    if (!SWIG_IsOK(ecode4)) {
-      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_colorObj" "', argument " "4"" of type '" "int""'");
-    } 
-    arg4 = (int)(val4);
-  }
-  {
-    result = (colorObj *)new_colorObj(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_colorObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_colorObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_colorObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_colorObj" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  {
-    delete_colorObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_setRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  int arg2 ;
-  int arg3 ;
-  int arg4 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  int val3 ;
-  int ecode3 = 0 ;
-  int val4 ;
-  int ecode4 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  PyObject * obj2 = 0 ;
-  PyObject * obj3 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OOOO:colorObj_setRGB",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_setRGB" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "colorObj_setRGB" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  ecode3 = SWIG_AsVal_int(obj2, &val3);
-  if (!SWIG_IsOK(ecode3)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "colorObj_setRGB" "', argument " "3"" of type '" "int""'");
-  } 
-  arg3 = (int)(val3);
-  ecode4 = SWIG_AsVal_int(obj3, &val4);
-  if (!SWIG_IsOK(ecode4)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "colorObj_setRGB" "', argument " "4"" of type '" "int""'");
-  } 
-  arg4 = (int)(val4);
-  {
-    result = (int)colorObj_setRGB(arg1,arg2,arg3,arg4); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_setHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:colorObj_setHex",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_setHex" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  {
-    result = (int)colorObj_setHex(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_colorObj_toHex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  colorObj *arg1 = (colorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:colorObj_toHex",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_colorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "colorObj_toHex" "', argument " "1"" of type '" "colorObj *""'"); 
-  }
-  arg1 = (colorObj *)(argp1);
-  {
-    result = (char *)colorObj_toHex(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *colorObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_colorObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_symbolObj_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolObj_name_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_name_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  {
-    if (arg1->name) free((char*)arg1->name);
-    if (arg2) {
-      arg1->name = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->name,arg2);
-    } else {
-      arg1->name = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_name_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_name_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (char *) ((arg1)->name);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_type_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_type_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_type_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_inmapfile_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_inmapfile_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_inmapfile_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_inmapfile_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->inmapfile = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_inmapfile_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_inmapfile_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_inmapfile_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->inmapfile);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_sizex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_sizex_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizex_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_sizex_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->sizex = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_sizex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_sizex_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizex_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->sizex);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_sizey_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_sizey_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizey_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_sizey_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->sizey = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_sizey_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_sizey_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_sizey_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->sizey);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_minx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_minx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_minx_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_minx_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->minx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_minx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_minx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_minx_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->minx);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_miny_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_miny_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_miny_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_miny_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->miny = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_miny_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_miny_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_miny_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->miny);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_maxx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_maxx_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxx_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_maxx_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxx = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_maxx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_maxx_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxx_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->maxx);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_maxy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_maxy_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxy_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_maxy_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->maxy = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_maxy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_maxy_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_maxy_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->maxy);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_refcount_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_refcount_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->refcount);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_numpoints_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_numpoints_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_numpoints_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->numpoints);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_filled_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_filled_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_filled_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_filled_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->filled = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_filled_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_filled_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_filled_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->filled);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_anchorpoint_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_anchorpoint_x_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_x_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_anchorpoint_x_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->anchorpoint_x = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_anchorpoint_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_anchorpoint_x_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_x_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->anchorpoint_x);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_anchorpoint_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  double arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  double val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_anchorpoint_y_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_y_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_double(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_anchorpoint_y_set" "', argument " "2"" of type '" "double""'");
-  } 
-  arg2 = (double)(val2);
-  if (arg1) (arg1)->anchorpoint_y = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_anchorpoint_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  double result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_anchorpoint_y_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_anchorpoint_y_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (double) ((arg1)->anchorpoint_y);
-  resultobj = SWIG_From_double((double)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_imagepath_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_imagepath_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_imagepath_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (char *) ((arg1)->imagepath);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_transparent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_transparent_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparent_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_transparent_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->transparent = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_transparent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_transparent_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparent_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->transparent);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_transparentcolor_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_transparentcolor_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparentcolor_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_transparentcolor_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->transparentcolor = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_transparentcolor_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_transparentcolor_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_transparentcolor_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->transparentcolor);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_character_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolObj_character_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_character_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  {
-    if (arg1->character) free((char*)arg1->character);
-    if (arg2) {
-      arg1->character = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->character,arg2);
-    } else {
-      arg1->character = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_character_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_character_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_character_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (char *) ((arg1)->character);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_antialias_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_antialias_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_antialias_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "symbolObj_antialias_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->antialias = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_antialias_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_antialias_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_antialias_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (int) ((arg1)->antialias);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_font_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:symbolObj_font_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_font_set" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  {
-    if (arg1->font) free((char*)arg1->font);
-    if (arg2) {
-      arg1->font = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->font,arg2);
-    } else {
-      arg1->font = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_font_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_font_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_font_get" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  result = (char *) ((arg1)->font);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_symbolObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *arg2 = (char *) NULL ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj1 = 0 ;
-  struct symbolObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"z|O:new_symbolObj",&arg1,&obj1)) SWIG_fail;
-  if (obj1) {
-    res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-    if (!SWIG_IsOK(res2)) {
-      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_symbolObj" "', argument " "2"" of type '" "char const *""'");
-    }
-    arg2 = (char *)(buf2);
-  }
-  {
-    result = (struct symbolObj *)new_symbolObj(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_symbolObj, SWIG_POINTER_NEW |  0 );
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_symbolObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_symbolObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_symbolObj" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  {
-    delete_symbolObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_setImagepath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_setImagepath",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setImagepath" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setImagepath" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    result = (int)symbolObj_setImagepath(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_setPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  lineObj *arg2 = (lineObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_setPoints",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setPoints" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_lineObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setPoints" "', argument " "2"" of type '" "lineObj *""'"); 
-  }
-  arg2 = (lineObj *)(argp2);
-  {
-    result = (int)symbolObj_setPoints(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_getPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  lineObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:symbolObj_getPoints",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_getPoints" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  {
-    result = (lineObj *)symbolObj_getPoints(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lineObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_getImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  outputFormatObj *arg2 = (outputFormatObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  imageObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_getImage",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_getImage" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_outputFormatObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_getImage" "', argument " "2"" of type '" "outputFormatObj *""'"); 
-  }
-  arg2 = (outputFormatObj *)(argp2);
-  {
-    result = (imageObj *)symbolObj_getImage(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_imageObj, SWIG_POINTER_OWN |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_symbolObj_setImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct symbolObj *arg1 = (struct symbolObj *) 0 ;
-  imageObj *arg2 = (imageObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  void *argp2 = 0 ;
-  int res2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:symbolObj_setImage",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_symbolObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "symbolObj_setImage" "', argument " "1"" of type '" "struct symbolObj *""'"); 
-  }
-  arg1 = (struct symbolObj *)(argp1);
-  res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_imageObj, 0 |  0 );
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "symbolObj_setImage" "', argument " "2"" of type '" "imageObj *""'"); 
-  }
-  arg2 = (imageObj *)(argp2);
-  {
-    result = (int)symbolObj_setImage(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *symbolObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_symbolObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_errorObj_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:errorObj_code_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_code_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "errorObj_code_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->code = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:errorObj_code_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_code_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  result = (int) ((arg1)->code);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_routine_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  char temp2[64] ;
-  int res2 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:errorObj_routine_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_routine_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  res2 = SWIG_AsCharArray(obj1, temp2, 64);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "errorObj_routine_set" "', argument " "2"" of type '" "char [64]""'");
-  }
-  arg2 = (char *)(temp2);
-  if (arg2) memcpy(arg1->routine,arg2,64*sizeof(char));
-  else memset(arg1->routine,0,64*sizeof(char));
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_routine_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:errorObj_routine_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_routine_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  result = (char *)(char *) ((arg1)->routine);
-  {
-    size_t size = 64;
-    
-    while (size && (result[size - 1] == '\0')) --size;
-    
-    resultobj = SWIG_FromCharPtrAndSize(result, size);
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_message_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  char *arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  char temp2[2048] ;
-  int res2 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:errorObj_message_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_message_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  res2 = SWIG_AsCharArray(obj1, temp2, 2048);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "errorObj_message_set" "', argument " "2"" of type '" "char [2048]""'");
-  }
-  arg2 = (char *)(temp2);
-  if (arg2) memcpy(arg1->message,arg2,2048*sizeof(char));
-  else memset(arg1->message,0,2048*sizeof(char));
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_message_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:errorObj_message_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_message_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  result = (char *)(char *) ((arg1)->message);
-  {
-    size_t size = 2048;
-    
-    while (size && (result[size - 1] == '\0')) --size;
-    
-    resultobj = SWIG_FromCharPtrAndSize(result, size);
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_isreported_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:errorObj_isreported_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_isreported_set" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "errorObj_isreported_set" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  if (arg1) (arg1)->isreported = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_isreported_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:errorObj_isreported_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_isreported_get" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  result = (int) ((arg1)->isreported);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_errorObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_errorObj")) SWIG_fail;
-  {
-    result = (struct errorObj *)new_errorObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_errorObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_errorObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_errorObj" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  {
-    delete_errorObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_errorObj_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  struct errorObj *arg1 = (struct errorObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  errorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:errorObj_next",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_errorObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "errorObj_next" "', argument " "1"" of type '" "struct errorObj *""'"); 
-  }
-  arg1 = (struct errorObj *)(argp1);
-  {
-    result = (errorObj *)errorObj_next(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *errorObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_errorObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_msGetErrorObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  errorObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msGetErrorObj")) SWIG_fail;
-  {
-    result = (errorObj *)msGetErrorObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_errorObj, 0 |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msResetErrorList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msResetErrorList")) SWIG_fail;
-  {
-    msResetErrorList(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msGetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msGetVersion")) SWIG_fail;
-  {
-    result = (char *)msGetVersion(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msGetVersionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msGetVersionInt")) SWIG_fail;
-  {
-    result = (int)msGetVersionInt(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msGetErrorString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *arg1 = (char *) 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"z:msGetErrorString",&arg1)) SWIG_fail;
-  {
-    result = (char *)msGetErrorString(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_numitems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:hashTableObj_numitems_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_numitems_get" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  result = (int) ((arg1)->numitems);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_hashTableObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_hashTableObj")) SWIG_fail;
-  {
-    result = (hashTableObj *)new_hashTableObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashTableObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_hashTableObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_hashTableObj",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_hashTableObj" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    delete_hashTableObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:hashTableObj_set",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_set" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    result = (int)hashTableObj_set(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz|z:hashTableObj_get",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_get" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    result = (char *)hashTableObj_get(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:hashTableObj_remove",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_remove" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    result = (int)hashTableObj_remove(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:hashTableObj_clear",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_clear" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    hashTableObj_clear(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_hashTableObj_nextKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  hashTableObj *arg1 = (hashTableObj *) 0 ;
-  char *arg2 = (char *) NULL ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O|z:hashTableObj_nextKey",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_hashTableObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hashTableObj_nextKey" "', argument " "1"" of type '" "hashTableObj *""'"); 
-  }
-  arg1 = (hashTableObj *)(argp1);
-  {
-    result = (char *)hashTableObj_nextKey(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *hashTableObj_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_hashTableObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_OWSRequest_NumParams_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_NumParams_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_NumParams_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  result = (int) ((arg1)->NumParams);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  enum MS_REQUEST_TYPE arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:OWSRequest_type_set",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_type_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_type_set" "', argument " "2"" of type '" "enum MS_REQUEST_TYPE""'");
-  } 
-  arg2 = (enum MS_REQUEST_TYPE)(val2);
-  if (arg1) (arg1)->type = arg2;
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  enum MS_REQUEST_TYPE result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_type_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_type_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  result = (enum MS_REQUEST_TYPE) ((arg1)->type);
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_contenttype_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:OWSRequest_contenttype_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_contenttype_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    if (arg1->contenttype) free((char*)arg1->contenttype);
-    if (arg2) {
-      arg1->contenttype = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->contenttype,arg2);
-    } else {
-      arg1->contenttype = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_contenttype_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_contenttype_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_contenttype_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  result = (char *) ((arg1)->contenttype);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_postrequest_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:OWSRequest_postrequest_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_postrequest_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    if (arg1->postrequest) free((char*)arg1->postrequest);
-    if (arg2) {
-      arg1->postrequest = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->postrequest,arg2);
-    } else {
-      arg1->postrequest = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_postrequest_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_postrequest_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_postrequest_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  result = (char *) ((arg1)->postrequest);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_httpcookiedata_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Oz:OWSRequest_httpcookiedata_set",&obj0,&arg2)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_httpcookiedata_set" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    if (arg1->httpcookiedata) free((char*)arg1->httpcookiedata);
-    if (arg2) {
-      arg1->httpcookiedata = (char *) malloc(strlen(arg2)+1);
-      strcpy((char*)arg1->httpcookiedata,arg2);
-    } else {
-      arg1->httpcookiedata = 0;
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_httpcookiedata_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_httpcookiedata_get",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_httpcookiedata_get" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  result = (char *) ((arg1)->httpcookiedata);
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_new_OWSRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":new_OWSRequest")) SWIG_fail;
-  {
-    result = (cgiRequestObj *)new_cgiRequestObj(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cgiRequestObj, SWIG_POINTER_NEW |  0 );
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_delete_OWSRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:delete_OWSRequest",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, SWIG_POINTER_DISOWN |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OWSRequest" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    delete_cgiRequestObj(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_loadParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"O:OWSRequest_loadParams",&obj0)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_loadParams" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    result = (int)cgiRequestObj_loadParams(arg1); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_loadParamsFromURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  int result;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:OWSRequest_loadParamsFromURL",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_loadParamsFromURL" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_loadParamsFromURL" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    result = (int)cgiRequestObj_loadParamsFromURL(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_From_int((int)(result));
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_setParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:OWSRequest_setParameter",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_setParameter" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    cgiRequestObj_setParameter(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_addParameter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  char *arg3 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  PyObject * obj0 = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"Ozz:OWSRequest_addParameter",&obj0,&arg2,&arg3)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_addParameter" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  {
-    cgiRequestObj_addParameter(arg1,arg2,arg3); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_getName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:OWSRequest_getName",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getName" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_getName" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)cgiRequestObj_getName(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  int arg2 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int val2 ;
-  int ecode2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:OWSRequest_getValue",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getValue" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  ecode2 = SWIG_AsVal_int(obj1, &val2);
-  if (!SWIG_IsOK(ecode2)) {
-    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OWSRequest_getValue" "', argument " "2"" of type '" "int""'");
-  } 
-  arg2 = (int)(val2);
-  {
-    result = (char *)cgiRequestObj_getValue(arg1,arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_OWSRequest_getValueByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  cgiRequestObj *arg1 = (cgiRequestObj *) 0 ;
-  char *arg2 = (char *) 0 ;
-  void *argp1 = 0 ;
-  int res1 = 0 ;
-  int res2 ;
-  char *buf2 = 0 ;
-  int alloc2 = 0 ;
-  PyObject * obj0 = 0 ;
-  PyObject * obj1 = 0 ;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)"OO:OWSRequest_getValueByName",&obj0,&obj1)) SWIG_fail;
-  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_cgiRequestObj, 0 |  0 );
-  if (!SWIG_IsOK(res1)) {
-    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OWSRequest_getValueByName" "', argument " "1"" of type '" "cgiRequestObj *""'"); 
-  }
-  arg1 = (cgiRequestObj *)(argp1);
-  res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
-  if (!SWIG_IsOK(res2)) {
-    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OWSRequest_getValueByName" "', argument " "2"" of type '" "char const *""'");
-  }
-  arg2 = (char *)(buf2);
-  {
-    result = (char *)cgiRequestObj_getValueByName(arg1,(char const *)arg2); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return resultobj;
-fail:
-  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *OWSRequest_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *obj;
-  if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
-  SWIG_TypeNewClientData(SWIGTYPE_p_cgiRequestObj, SWIG_NewClientData(obj));
-  return SWIG_Py_Void();
-}
-
-SWIGINTERN PyObject *_wrap_msConnPoolCloseUnreferenced(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msConnPoolCloseUnreferenced")) SWIG_fail;
-  {
-    msConnPoolCloseUnreferenced(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_resetHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_resetHandlers")) SWIG_fail;
-  {
-    msIO_resetHandlers(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_installStdoutToBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_installStdoutToBuffer")) SWIG_fail;
-  {
-    msIO_installStdoutToBuffer(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_installStdinFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_installStdinFromBuffer")) SWIG_fail;
-  {
-    msIO_installStdinFromBuffer(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_stripStdoutBufferContentType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_stripStdoutBufferContentType")) SWIG_fail;
-  {
-    result = (char *)msIO_stripStdoutBufferContentType(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  free((char*)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_stripStdoutBufferContentHeaders(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_stripStdoutBufferContentHeaders")) SWIG_fail;
-  {
-    msIO_stripStdoutBufferContentHeaders(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_Py_Void();
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_getStdoutBufferString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  char *result = 0 ;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_getStdoutBufferString")) SWIG_fail;
-  {
-    result = (char *)msIO_getStdoutBufferString(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  resultobj = SWIG_FromCharPtr((const char *)result);
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_msIO_getStdoutBufferBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
-  PyObject *resultobj = 0;
-  gdBuffer result;
-  
-  if (!PyArg_ParseTuple(args,(char *)":msIO_getStdoutBufferBytes")) SWIG_fail;
-  {
-    result = msIO_getStdoutBufferBytes(); {
-      errorObj *ms_error = msGetErrorObj();
-      
-      switch(ms_error->code) {
-      case MS_NOERR:
-        break;
-      case MS_NOTFOUND:
-        msResetErrorList();
-        break;
-      case -1:
-        break;
-      case MS_IOERR:
-        if (strcmp(ms_error->routine, "msSearchDiskTree()") != 0) {
-          _raise_ms_exception();
-          msResetErrorList();
-          return NULL;
-        }
-      default:
-        _raise_ms_exception();
-        msResetErrorList();
-        return NULL;
-      }
-      
-    }
-  }
-  {
-    resultobj = PyString_FromStringAndSize((const char*)(&result)->data, (&result)->size); 
-    if( (&result)->owns_data )
-    msFree((&result)->data);
-  }
-  return resultobj;
-fail:
-  return NULL;
-}
-
-
-static PyMethodDef SwigMethods[] = {
-	 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
-	 { (char *)"new_intarray", _wrap_new_intarray, METH_VARARGS, NULL},
-	 { (char *)"delete_intarray", _wrap_delete_intarray, METH_VARARGS, NULL},
-	 { (char *)"intarray___getitem__", _wrap_intarray___getitem__, METH_VARARGS, NULL},
-	 { (char *)"intarray___setitem__", _wrap_intarray___setitem__, METH_VARARGS, NULL},
-	 { (char *)"intarray_cast", _wrap_intarray_cast, METH_VARARGS, NULL},
-	 { (char *)"intarray_frompointer", _wrap_intarray_frompointer, METH_VARARGS, NULL},
-	 { (char *)"intarray_swigregister", intarray_swigregister, METH_VARARGS, NULL},
-	 { (char *)"fontSetObj_filename_get", _wrap_fontSetObj_filename_get, METH_VARARGS, NULL},
-	 { (char *)"fontSetObj_numfonts_get", _wrap_fontSetObj_numfonts_get, METH_VARARGS, NULL},
-	 { (char *)"fontSetObj_fonts_get", _wrap_fontSetObj_fonts_get, METH_VARARGS, NULL},
-	 { (char *)"new_fontSetObj", _wrap_new_fontSetObj, METH_VARARGS, NULL},
-	 { (char *)"delete_fontSetObj", _wrap_delete_fontSetObj, METH_VARARGS, NULL},
-	 { (char *)"fontSetObj_swigregister", fontSetObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_maxdistance_set", _wrap_clusterObj_maxdistance_set, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_maxdistance_get", _wrap_clusterObj_maxdistance_get, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_buffer_set", _wrap_clusterObj_buffer_set, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_buffer_get", _wrap_clusterObj_buffer_get, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_region_set", _wrap_clusterObj_region_set, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_region_get", _wrap_clusterObj_region_get, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_updateFromString", _wrap_clusterObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_convertToString", _wrap_clusterObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_setGroup", _wrap_clusterObj_setGroup, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_getGroupString", _wrap_clusterObj_getGroupString, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_setFilter", _wrap_clusterObj_setFilter, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_getFilterString", _wrap_clusterObj_getFilterString, METH_VARARGS, NULL},
-	 { (char *)"new_clusterObj", _wrap_new_clusterObj, METH_VARARGS, NULL},
-	 { (char *)"delete_clusterObj", _wrap_delete_clusterObj, METH_VARARGS, NULL},
-	 { (char *)"clusterObj_swigregister", clusterObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_numformatoptions_get", _wrap_outputFormatObj_numformatoptions_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_name_set", _wrap_outputFormatObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_name_get", _wrap_outputFormatObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_mimetype_set", _wrap_outputFormatObj_mimetype_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_mimetype_get", _wrap_outputFormatObj_mimetype_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_driver_set", _wrap_outputFormatObj_driver_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_driver_get", _wrap_outputFormatObj_driver_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_extension_set", _wrap_outputFormatObj_extension_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_extension_get", _wrap_outputFormatObj_extension_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_renderer_set", _wrap_outputFormatObj_renderer_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_renderer_get", _wrap_outputFormatObj_renderer_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_imagemode_set", _wrap_outputFormatObj_imagemode_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_imagemode_get", _wrap_outputFormatObj_imagemode_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_transparent_set", _wrap_outputFormatObj_transparent_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_transparent_get", _wrap_outputFormatObj_transparent_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_bands_set", _wrap_outputFormatObj_bands_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_bands_get", _wrap_outputFormatObj_bands_get, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_inmapfile_set", _wrap_outputFormatObj_inmapfile_set, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_inmapfile_get", _wrap_outputFormatObj_inmapfile_get, METH_VARARGS, NULL},
-	 { (char *)"new_outputFormatObj", _wrap_new_outputFormatObj, METH_VARARGS, NULL},
-	 { (char *)"delete_outputFormatObj", _wrap_delete_outputFormatObj, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_setExtension", _wrap_outputFormatObj_setExtension, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_setMimetype", _wrap_outputFormatObj_setMimetype, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_setOption", _wrap_outputFormatObj_setOption, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_validate", _wrap_outputFormatObj_validate, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_getOption", _wrap_outputFormatObj_getOption, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_getOptionAt", _wrap_outputFormatObj_getOptionAt, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_attachDevice", _wrap_outputFormatObj_attachDevice, METH_VARARGS, NULL},
-	 { (char *)"outputFormatObj_swigregister", outputFormatObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_height_set", _wrap_queryMapObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_height_get", _wrap_queryMapObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_width_set", _wrap_queryMapObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_width_get", _wrap_queryMapObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_status_set", _wrap_queryMapObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_status_get", _wrap_queryMapObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_style_set", _wrap_queryMapObj_style_set, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_style_get", _wrap_queryMapObj_style_get, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_color_set", _wrap_queryMapObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_color_get", _wrap_queryMapObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_updateFromString", _wrap_queryMapObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_convertToString", _wrap_queryMapObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"new_queryMapObj", _wrap_new_queryMapObj, METH_VARARGS, NULL},
-	 { (char *)"delete_queryMapObj", _wrap_delete_queryMapObj, METH_VARARGS, NULL},
-	 { (char *)"queryMapObj_swigregister", queryMapObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"webObj_log_set", _wrap_webObj_log_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_log_get", _wrap_webObj_log_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_imagepath_set", _wrap_webObj_imagepath_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_imagepath_get", _wrap_webObj_imagepath_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_imageurl_set", _wrap_webObj_imageurl_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_imageurl_get", _wrap_webObj_imageurl_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_temppath_set", _wrap_webObj_temppath_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_temppath_get", _wrap_webObj_temppath_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_map_get", _wrap_webObj_map_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_template_set", _wrap_webObj_template_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_template_get", _wrap_webObj_template_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_header_set", _wrap_webObj_header_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_header_get", _wrap_webObj_header_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_footer_set", _wrap_webObj_footer_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_footer_get", _wrap_webObj_footer_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_empty_set", _wrap_webObj_empty_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_empty_get", _wrap_webObj_empty_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_error_set", _wrap_webObj_error_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_error_get", _wrap_webObj_error_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_extent_set", _wrap_webObj_extent_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_extent_get", _wrap_webObj_extent_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_minscaledenom_set", _wrap_webObj_minscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_minscaledenom_get", _wrap_webObj_minscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_maxscaledenom_set", _wrap_webObj_maxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_maxscaledenom_get", _wrap_webObj_maxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_mintemplate_set", _wrap_webObj_mintemplate_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_mintemplate_get", _wrap_webObj_mintemplate_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_maxtemplate_set", _wrap_webObj_maxtemplate_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_maxtemplate_get", _wrap_webObj_maxtemplate_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_queryformat_set", _wrap_webObj_queryformat_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_queryformat_get", _wrap_webObj_queryformat_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_legendformat_set", _wrap_webObj_legendformat_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_legendformat_get", _wrap_webObj_legendformat_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_browseformat_set", _wrap_webObj_browseformat_set, METH_VARARGS, NULL},
-	 { (char *)"webObj_browseformat_get", _wrap_webObj_browseformat_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_metadata_get", _wrap_webObj_metadata_get, METH_VARARGS, NULL},
-	 { (char *)"webObj_validation_get", _wrap_webObj_validation_get, METH_VARARGS, NULL},
-	 { (char *)"new_webObj", _wrap_new_webObj, METH_VARARGS, NULL},
-	 { (char *)"delete_webObj", _wrap_delete_webObj, METH_VARARGS, NULL},
-	 { (char *)"webObj_updateFromString", _wrap_webObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"webObj_convertToString", _wrap_webObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"webObj_swigregister", webObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"styleObj_refcount_get", _wrap_styleObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_autoangle_set", _wrap_styleObj_autoangle_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_autoangle_get", _wrap_styleObj_autoangle_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_color_set", _wrap_styleObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_color_get", _wrap_styleObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_backgroundcolor_set", _wrap_styleObj_backgroundcolor_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_backgroundcolor_get", _wrap_styleObj_backgroundcolor_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_outlinecolor_set", _wrap_styleObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_outlinecolor_get", _wrap_styleObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_opacity_set", _wrap_styleObj_opacity_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_opacity_get", _wrap_styleObj_opacity_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_mincolor_set", _wrap_styleObj_mincolor_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_mincolor_get", _wrap_styleObj_mincolor_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxcolor_set", _wrap_styleObj_maxcolor_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxcolor_get", _wrap_styleObj_maxcolor_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minvalue_set", _wrap_styleObj_minvalue_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minvalue_get", _wrap_styleObj_minvalue_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxvalue_set", _wrap_styleObj_maxvalue_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxvalue_get", _wrap_styleObj_maxvalue_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_rangeitem_set", _wrap_styleObj_rangeitem_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_rangeitem_get", _wrap_styleObj_rangeitem_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_rangeitemindex_set", _wrap_styleObj_rangeitemindex_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_rangeitemindex_get", _wrap_styleObj_rangeitemindex_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_symbol_set", _wrap_styleObj_symbol_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_symbol_get", _wrap_styleObj_symbol_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_symbolname_set", _wrap_styleObj_symbolname_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_symbolname_get", _wrap_styleObj_symbolname_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_size_set", _wrap_styleObj_size_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_size_get", _wrap_styleObj_size_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minsize_set", _wrap_styleObj_minsize_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minsize_get", _wrap_styleObj_minsize_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxsize_set", _wrap_styleObj_maxsize_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxsize_get", _wrap_styleObj_maxsize_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_patternlength_set", _wrap_styleObj_patternlength_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_patternlength_get", _wrap_styleObj_patternlength_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_pattern_set", _wrap_styleObj_pattern_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_pattern_get", _wrap_styleObj_pattern_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_gap_set", _wrap_styleObj_gap_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_gap_get", _wrap_styleObj_gap_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_initialgap_set", _wrap_styleObj_initialgap_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_initialgap_get", _wrap_styleObj_initialgap_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_position_set", _wrap_styleObj_position_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_position_get", _wrap_styleObj_position_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linecap_set", _wrap_styleObj_linecap_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linecap_get", _wrap_styleObj_linecap_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linejoin_set", _wrap_styleObj_linejoin_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linejoin_get", _wrap_styleObj_linejoin_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linejoinmaxsize_set", _wrap_styleObj_linejoinmaxsize_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_linejoinmaxsize_get", _wrap_styleObj_linejoinmaxsize_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_width_set", _wrap_styleObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_width_get", _wrap_styleObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_outlinewidth_set", _wrap_styleObj_outlinewidth_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_outlinewidth_get", _wrap_styleObj_outlinewidth_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minwidth_set", _wrap_styleObj_minwidth_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minwidth_get", _wrap_styleObj_minwidth_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxwidth_set", _wrap_styleObj_maxwidth_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxwidth_get", _wrap_styleObj_maxwidth_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_offsetx_set", _wrap_styleObj_offsetx_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_offsetx_get", _wrap_styleObj_offsetx_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_offsety_set", _wrap_styleObj_offsety_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_offsety_get", _wrap_styleObj_offsety_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_polaroffsetpixel_set", _wrap_styleObj_polaroffsetpixel_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_polaroffsetpixel_get", _wrap_styleObj_polaroffsetpixel_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_polaroffsetangle_set", _wrap_styleObj_polaroffsetangle_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_polaroffsetangle_get", _wrap_styleObj_polaroffsetangle_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_angle_set", _wrap_styleObj_angle_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_angle_get", _wrap_styleObj_angle_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_antialias_set", _wrap_styleObj_antialias_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_antialias_get", _wrap_styleObj_antialias_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minscaledenom_set", _wrap_styleObj_minscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_minscaledenom_get", _wrap_styleObj_minscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxscaledenom_set", _wrap_styleObj_maxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"styleObj_maxscaledenom_get", _wrap_styleObj_maxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"new_styleObj", _wrap_new_styleObj, METH_VARARGS, NULL},
-	 { (char *)"delete_styleObj", _wrap_delete_styleObj, METH_VARARGS, NULL},
-	 { (char *)"styleObj_updateFromString", _wrap_styleObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"styleObj_convertToString", _wrap_styleObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"styleObj_clone", _wrap_styleObj_clone, METH_VARARGS, NULL},
-	 { (char *)"styleObj_setSymbolByName", _wrap_styleObj_setSymbolByName, METH_VARARGS, NULL},
-	 { (char *)"styleObj_removeBinding", _wrap_styleObj_removeBinding, METH_VARARGS, NULL},
-	 { (char *)"styleObj_setBinding", _wrap_styleObj_setBinding, METH_VARARGS, NULL},
-	 { (char *)"styleObj_getBinding", _wrap_styleObj_getBinding, METH_VARARGS, NULL},
-	 { (char *)"styleObj_getGeomTransform", _wrap_styleObj_getGeomTransform, METH_VARARGS, NULL},
-	 { (char *)"styleObj_setGeomTransform", _wrap_styleObj_setGeomTransform, METH_VARARGS, NULL},
-	 { (char *)"styleObj_swigregister", styleObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_maxdistance_set", _wrap_labelLeaderObj_maxdistance_set, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_maxdistance_get", _wrap_labelLeaderObj_maxdistance_get, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_gridstep_set", _wrap_labelLeaderObj_gridstep_set, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_gridstep_get", _wrap_labelLeaderObj_gridstep_get, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_numstyles_get", _wrap_labelLeaderObj_numstyles_get, METH_VARARGS, NULL},
-	 { (char *)"new_labelLeaderObj", _wrap_new_labelLeaderObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelLeaderObj", _wrap_delete_labelLeaderObj, METH_VARARGS, NULL},
-	 { (char *)"labelLeaderObj_swigregister", labelLeaderObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelObj_refcount_get", _wrap_labelObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_font_set", _wrap_labelObj_font_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_font_get", _wrap_labelObj_font_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_type_set", _wrap_labelObj_type_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_type_get", _wrap_labelObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_color_set", _wrap_labelObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_color_get", _wrap_labelObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_outlinecolor_set", _wrap_labelObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_outlinecolor_get", _wrap_labelObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_outlinewidth_set", _wrap_labelObj_outlinewidth_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_outlinewidth_get", _wrap_labelObj_outlinewidth_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowcolor_set", _wrap_labelObj_shadowcolor_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowcolor_get", _wrap_labelObj_shadowcolor_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowsizex_set", _wrap_labelObj_shadowsizex_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowsizex_get", _wrap_labelObj_shadowsizex_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowsizey_set", _wrap_labelObj_shadowsizey_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_shadowsizey_get", _wrap_labelObj_shadowsizey_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_size_set", _wrap_labelObj_size_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_size_get", _wrap_labelObj_size_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minsize_set", _wrap_labelObj_minsize_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minsize_get", _wrap_labelObj_minsize_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxsize_set", _wrap_labelObj_maxsize_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxsize_get", _wrap_labelObj_maxsize_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_position_set", _wrap_labelObj_position_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_position_get", _wrap_labelObj_position_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_offsetx_set", _wrap_labelObj_offsetx_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_offsetx_get", _wrap_labelObj_offsetx_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_offsety_set", _wrap_labelObj_offsety_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_offsety_get", _wrap_labelObj_offsety_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_angle_set", _wrap_labelObj_angle_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_angle_get", _wrap_labelObj_angle_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_anglemode_set", _wrap_labelObj_anglemode_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_anglemode_get", _wrap_labelObj_anglemode_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_buffer_set", _wrap_labelObj_buffer_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_buffer_get", _wrap_labelObj_buffer_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_antialias_set", _wrap_labelObj_antialias_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_antialias_get", _wrap_labelObj_antialias_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_align_set", _wrap_labelObj_align_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_align_get", _wrap_labelObj_align_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_wrap_set", _wrap_labelObj_wrap_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_wrap_get", _wrap_labelObj_wrap_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxlength_set", _wrap_labelObj_maxlength_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxlength_get", _wrap_labelObj_maxlength_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minlength_set", _wrap_labelObj_minlength_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minlength_get", _wrap_labelObj_minlength_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_space_size_10_set", _wrap_labelObj_space_size_10_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_space_size_10_get", _wrap_labelObj_space_size_10_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minfeaturesize_set", _wrap_labelObj_minfeaturesize_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minfeaturesize_get", _wrap_labelObj_minfeaturesize_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_autominfeaturesize_set", _wrap_labelObj_autominfeaturesize_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_autominfeaturesize_get", _wrap_labelObj_autominfeaturesize_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minscaledenom_set", _wrap_labelObj_minscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_minscaledenom_get", _wrap_labelObj_minscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxscaledenom_set", _wrap_labelObj_maxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxscaledenom_get", _wrap_labelObj_maxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_mindistance_set", _wrap_labelObj_mindistance_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_mindistance_get", _wrap_labelObj_mindistance_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_repeatdistance_set", _wrap_labelObj_repeatdistance_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_repeatdistance_get", _wrap_labelObj_repeatdistance_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxoverlapangle_set", _wrap_labelObj_maxoverlapangle_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_maxoverlapangle_get", _wrap_labelObj_maxoverlapangle_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_partials_set", _wrap_labelObj_partials_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_partials_get", _wrap_labelObj_partials_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_force_set", _wrap_labelObj_force_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_force_get", _wrap_labelObj_force_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_encoding_set", _wrap_labelObj_encoding_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_encoding_get", _wrap_labelObj_encoding_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_priority_set", _wrap_labelObj_priority_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_priority_get", _wrap_labelObj_priority_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_status_set", _wrap_labelObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_status_get", _wrap_labelObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_numstyles_set", _wrap_labelObj_numstyles_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_numstyles_get", _wrap_labelObj_numstyles_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annotext_set", _wrap_labelObj_annotext_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annotext_get", _wrap_labelObj_annotext_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annopoint_set", _wrap_labelObj_annopoint_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annopoint_get", _wrap_labelObj_annopoint_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annopoly_set", _wrap_labelObj_annopoly_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_annopoly_get", _wrap_labelObj_annopoly_get, METH_VARARGS, NULL},
-	 { (char *)"labelObj_leader_set", _wrap_labelObj_leader_set, METH_VARARGS, NULL},
-	 { (char *)"labelObj_leader_get", _wrap_labelObj_leader_get, METH_VARARGS, NULL},
-	 { (char *)"new_labelObj", _wrap_new_labelObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelObj", _wrap_delete_labelObj, METH_VARARGS, NULL},
-	 { (char *)"labelObj_updateFromString", _wrap_labelObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"labelObj_convertToString", _wrap_labelObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"labelObj_removeBinding", _wrap_labelObj_removeBinding, METH_VARARGS, NULL},
-	 { (char *)"labelObj_getBinding", _wrap_labelObj_getBinding, METH_VARARGS, NULL},
-	 { (char *)"labelObj_setBinding", _wrap_labelObj_setBinding, METH_VARARGS, NULL},
-	 { (char *)"labelObj_setExpression", _wrap_labelObj_setExpression, METH_VARARGS, NULL},
-	 { (char *)"labelObj_getExpressionString", _wrap_labelObj_getExpressionString, METH_VARARGS, NULL},
-	 { (char *)"labelObj_setText", _wrap_labelObj_setText, METH_VARARGS, NULL},
-	 { (char *)"labelObj_getTextString", _wrap_labelObj_getTextString, METH_VARARGS, NULL},
-	 { (char *)"labelObj_getStyle", _wrap_labelObj_getStyle, METH_VARARGS, NULL},
-	 { (char *)"labelObj_insertStyle", _wrap_labelObj_insertStyle, METH_VARARGS, NULL},
-	 { (char *)"labelObj_removeStyle", _wrap_labelObj_removeStyle, METH_VARARGS, NULL},
-	 { (char *)"labelObj_moveStyleUp", _wrap_labelObj_moveStyleUp, METH_VARARGS, NULL},
-	 { (char *)"labelObj_moveStyleDown", _wrap_labelObj_moveStyleDown, METH_VARARGS, NULL},
-	 { (char *)"labelObj_swigregister", labelObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"classObj_status_set", _wrap_classObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_status_get", _wrap_classObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_numstyles_get", _wrap_classObj_numstyles_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_numlabels_set", _wrap_classObj_numlabels_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_numlabels_get", _wrap_classObj_numlabels_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_name_set", _wrap_classObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_name_get", _wrap_classObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_title_set", _wrap_classObj_title_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_title_get", _wrap_classObj_title_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_template_set", _wrap_classObj_template_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_template_get", _wrap_classObj_template_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_type_set", _wrap_classObj_type_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_type_get", _wrap_classObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_metadata_get", _wrap_classObj_metadata_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_validation_get", _wrap_classObj_validation_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_minscaledenom_set", _wrap_classObj_minscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_minscaledenom_get", _wrap_classObj_minscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_maxscaledenom_set", _wrap_classObj_maxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_maxscaledenom_get", _wrap_classObj_maxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_minfeaturesize_set", _wrap_classObj_minfeaturesize_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_minfeaturesize_get", _wrap_classObj_minfeaturesize_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_refcount_get", _wrap_classObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_layer_get", _wrap_classObj_layer_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_debug_set", _wrap_classObj_debug_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_debug_get", _wrap_classObj_debug_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_keyimage_set", _wrap_classObj_keyimage_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_keyimage_get", _wrap_classObj_keyimage_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_group_set", _wrap_classObj_group_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_group_get", _wrap_classObj_group_get, METH_VARARGS, NULL},
-	 { (char *)"classObj_leader_set", _wrap_classObj_leader_set, METH_VARARGS, NULL},
-	 { (char *)"classObj_leader_get", _wrap_classObj_leader_get, METH_VARARGS, NULL},
-	 { (char *)"new_classObj", _wrap_new_classObj, METH_VARARGS, NULL},
-	 { (char *)"delete_classObj", _wrap_delete_classObj, METH_VARARGS, NULL},
-	 { (char *)"classObj_updateFromString", _wrap_classObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"classObj_convertToString", _wrap_classObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"classObj_clone", _wrap_classObj_clone, METH_VARARGS, NULL},
-	 { (char *)"classObj_setExpression", _wrap_classObj_setExpression, METH_VARARGS, NULL},
-	 { (char *)"classObj_getExpressionString", _wrap_classObj_getExpressionString, METH_VARARGS, NULL},
-	 { (char *)"classObj_setText", _wrap_classObj_setText, METH_VARARGS, NULL},
-	 { (char *)"classObj_getTextString", _wrap_classObj_getTextString, METH_VARARGS, NULL},
-	 { (char *)"classObj_getMetaData", _wrap_classObj_getMetaData, METH_VARARGS, NULL},
-	 { (char *)"classObj_setMetaData", _wrap_classObj_setMetaData, METH_VARARGS, NULL},
-	 { (char *)"classObj_getFirstMetaDataKey", _wrap_classObj_getFirstMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"classObj_getNextMetaDataKey", _wrap_classObj_getNextMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"classObj_drawLegendIcon", _wrap_classObj_drawLegendIcon, METH_VARARGS, NULL},
-	 { (char *)"classObj_createLegendIcon", _wrap_classObj_createLegendIcon, METH_VARARGS, NULL},
-	 { (char *)"classObj_getLabel", _wrap_classObj_getLabel, METH_VARARGS, NULL},
-	 { (char *)"classObj_addLabel", _wrap_classObj_addLabel, METH_VARARGS, NULL},
-	 { (char *)"classObj_removeLabel", _wrap_classObj_removeLabel, METH_VARARGS, NULL},
-	 { (char *)"classObj_getStyle", _wrap_classObj_getStyle, METH_VARARGS, NULL},
-	 { (char *)"classObj_insertStyle", _wrap_classObj_insertStyle, METH_VARARGS, NULL},
-	 { (char *)"classObj_removeStyle", _wrap_classObj_removeStyle, METH_VARARGS, NULL},
-	 { (char *)"classObj_moveStyleUp", _wrap_classObj_moveStyleUp, METH_VARARGS, NULL},
-	 { (char *)"classObj_moveStyleDown", _wrap_classObj_moveStyleDown, METH_VARARGS, NULL},
-	 { (char *)"classObj_swigregister", classObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_featuresize_get", _wrap_labelCacheMemberObj_featuresize_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_styles_get", _wrap_labelCacheMemberObj_styles_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_numstyles_get", _wrap_labelCacheMemberObj_numstyles_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_labels_get", _wrap_labelCacheMemberObj_labels_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_numlabels_get", _wrap_labelCacheMemberObj_numlabels_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_layerindex_get", _wrap_labelCacheMemberObj_layerindex_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_classindex_get", _wrap_labelCacheMemberObj_classindex_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_shapetype_get", _wrap_labelCacheMemberObj_shapetype_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_point_get", _wrap_labelCacheMemberObj_point_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_poly_get", _wrap_labelCacheMemberObj_poly_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_status_get", _wrap_labelCacheMemberObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_markerid_get", _wrap_labelCacheMemberObj_markerid_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_leaderline_get", _wrap_labelCacheMemberObj_leaderline_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_leaderbbox_get", _wrap_labelCacheMemberObj_leaderbbox_get, METH_VARARGS, NULL},
-	 { (char *)"new_labelCacheMemberObj", _wrap_new_labelCacheMemberObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelCacheMemberObj", _wrap_delete_labelCacheMemberObj, METH_VARARGS, NULL},
-	 { (char *)"labelCacheMemberObj_swigregister", labelCacheMemberObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"markerCacheMemberObj_id_get", _wrap_markerCacheMemberObj_id_get, METH_VARARGS, NULL},
-	 { (char *)"markerCacheMemberObj_poly_get", _wrap_markerCacheMemberObj_poly_get, METH_VARARGS, NULL},
-	 { (char *)"new_markerCacheMemberObj", _wrap_new_markerCacheMemberObj, METH_VARARGS, NULL},
-	 { (char *)"delete_markerCacheMemberObj", _wrap_delete_markerCacheMemberObj, METH_VARARGS, NULL},
-	 { (char *)"markerCacheMemberObj_swigregister", markerCacheMemberObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_labels_get", _wrap_labelCacheSlotObj_labels_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_numlabels_get", _wrap_labelCacheSlotObj_numlabels_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_cachesize_get", _wrap_labelCacheSlotObj_cachesize_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_markers_get", _wrap_labelCacheSlotObj_markers_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_nummarkers_get", _wrap_labelCacheSlotObj_nummarkers_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_markercachesize_get", _wrap_labelCacheSlotObj_markercachesize_get, METH_VARARGS, NULL},
-	 { (char *)"new_labelCacheSlotObj", _wrap_new_labelCacheSlotObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelCacheSlotObj", _wrap_delete_labelCacheSlotObj, METH_VARARGS, NULL},
-	 { (char *)"labelCacheSlotObj_swigregister", labelCacheSlotObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelCacheObj_slots_get", _wrap_labelCacheObj_slots_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheObj_numlabels_get", _wrap_labelCacheObj_numlabels_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheObj_gutter_get", _wrap_labelCacheObj_gutter_get, METH_VARARGS, NULL},
-	 { (char *)"labelCacheObj_freeCache", _wrap_labelCacheObj_freeCache, METH_VARARGS, NULL},
-	 { (char *)"new_labelCacheObj", _wrap_new_labelCacheObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelCacheObj", _wrap_delete_labelCacheObj, METH_VARARGS, NULL},
-	 { (char *)"labelCacheObj_swigregister", labelCacheObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"resultObj_shapeindex_get", _wrap_resultObj_shapeindex_get, METH_VARARGS, NULL},
-	 { (char *)"resultObj_tileindex_get", _wrap_resultObj_tileindex_get, METH_VARARGS, NULL},
-	 { (char *)"resultObj_resultindex_get", _wrap_resultObj_resultindex_get, METH_VARARGS, NULL},
-	 { (char *)"resultObj_classindex_get", _wrap_resultObj_classindex_get, METH_VARARGS, NULL},
-	 { (char *)"new_resultObj", _wrap_new_resultObj, METH_VARARGS, NULL},
-	 { (char *)"delete_resultObj", _wrap_delete_resultObj, METH_VARARGS, NULL},
-	 { (char *)"resultObj_swigregister", resultObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_numresults_get", _wrap_resultCacheObj_numresults_get, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_bounds_get", _wrap_resultCacheObj_bounds_get, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_usegetshape_set", _wrap_resultCacheObj_usegetshape_set, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_usegetshape_get", _wrap_resultCacheObj_usegetshape_get, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_getResult", _wrap_resultCacheObj_getResult, METH_VARARGS, NULL},
-	 { (char *)"new_resultCacheObj", _wrap_new_resultCacheObj, METH_VARARGS, NULL},
-	 { (char *)"delete_resultCacheObj", _wrap_delete_resultCacheObj, METH_VARARGS, NULL},
-	 { (char *)"resultCacheObj_swigregister", resultCacheObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_filename_set", _wrap_symbolSetObj_filename_set, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_filename_get", _wrap_symbolSetObj_filename_get, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_imagecachesize_set", _wrap_symbolSetObj_imagecachesize_set, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_imagecachesize_get", _wrap_symbolSetObj_imagecachesize_get, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_numsymbols_get", _wrap_symbolSetObj_numsymbols_get, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_maxsymbols_get", _wrap_symbolSetObj_maxsymbols_get, METH_VARARGS, NULL},
-	 { (char *)"new_symbolSetObj", _wrap_new_symbolSetObj, METH_VARARGS, NULL},
-	 { (char *)"delete_symbolSetObj", _wrap_delete_symbolSetObj, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_getSymbol", _wrap_symbolSetObj_getSymbol, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_getSymbolByName", _wrap_symbolSetObj_getSymbolByName, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_index", _wrap_symbolSetObj_index, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_appendSymbol", _wrap_symbolSetObj_appendSymbol, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_removeSymbol", _wrap_symbolSetObj_removeSymbol, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_save", _wrap_symbolSetObj_save, METH_VARARGS, NULL},
-	 { (char *)"symbolSetObj_swigregister", symbolSetObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_extent_set", _wrap_referenceMapObj_extent_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_extent_get", _wrap_referenceMapObj_extent_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_height_set", _wrap_referenceMapObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_height_get", _wrap_referenceMapObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_width_set", _wrap_referenceMapObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_width_get", _wrap_referenceMapObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_color_set", _wrap_referenceMapObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_color_get", _wrap_referenceMapObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_outlinecolor_set", _wrap_referenceMapObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_outlinecolor_get", _wrap_referenceMapObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_image_set", _wrap_referenceMapObj_image_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_image_get", _wrap_referenceMapObj_image_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_status_set", _wrap_referenceMapObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_status_get", _wrap_referenceMapObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_marker_set", _wrap_referenceMapObj_marker_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_marker_get", _wrap_referenceMapObj_marker_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_markername_set", _wrap_referenceMapObj_markername_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_markername_get", _wrap_referenceMapObj_markername_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_markersize_set", _wrap_referenceMapObj_markersize_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_markersize_get", _wrap_referenceMapObj_markersize_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_minboxsize_set", _wrap_referenceMapObj_minboxsize_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_minboxsize_get", _wrap_referenceMapObj_minboxsize_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_maxboxsize_set", _wrap_referenceMapObj_maxboxsize_set, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_maxboxsize_get", _wrap_referenceMapObj_maxboxsize_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_map_get", _wrap_referenceMapObj_map_get, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_updateFromString", _wrap_referenceMapObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_convertToString", _wrap_referenceMapObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"new_referenceMapObj", _wrap_new_referenceMapObj, METH_VARARGS, NULL},
-	 { (char *)"delete_referenceMapObj", _wrap_delete_referenceMapObj, METH_VARARGS, NULL},
-	 { (char *)"referenceMapObj_swigregister", referenceMapObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_imagecolor_set", _wrap_scalebarObj_imagecolor_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_imagecolor_get", _wrap_scalebarObj_imagecolor_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_height_set", _wrap_scalebarObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_height_get", _wrap_scalebarObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_width_set", _wrap_scalebarObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_width_get", _wrap_scalebarObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_style_set", _wrap_scalebarObj_style_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_style_get", _wrap_scalebarObj_style_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_intervals_set", _wrap_scalebarObj_intervals_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_intervals_get", _wrap_scalebarObj_intervals_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_label_set", _wrap_scalebarObj_label_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_label_get", _wrap_scalebarObj_label_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_color_set", _wrap_scalebarObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_color_get", _wrap_scalebarObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_backgroundcolor_set", _wrap_scalebarObj_backgroundcolor_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_backgroundcolor_get", _wrap_scalebarObj_backgroundcolor_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_outlinecolor_set", _wrap_scalebarObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_outlinecolor_get", _wrap_scalebarObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_units_set", _wrap_scalebarObj_units_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_units_get", _wrap_scalebarObj_units_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_status_set", _wrap_scalebarObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_status_get", _wrap_scalebarObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_position_set", _wrap_scalebarObj_position_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_position_get", _wrap_scalebarObj_position_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_postlabelcache_set", _wrap_scalebarObj_postlabelcache_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_postlabelcache_get", _wrap_scalebarObj_postlabelcache_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_align_set", _wrap_scalebarObj_align_set, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_align_get", _wrap_scalebarObj_align_get, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_updateFromString", _wrap_scalebarObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_convertToString", _wrap_scalebarObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"new_scalebarObj", _wrap_new_scalebarObj, METH_VARARGS, NULL},
-	 { (char *)"delete_scalebarObj", _wrap_delete_scalebarObj, METH_VARARGS, NULL},
-	 { (char *)"scalebarObj_swigregister", scalebarObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"legendObj_imagecolor_set", _wrap_legendObj_imagecolor_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_imagecolor_get", _wrap_legendObj_imagecolor_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_label_get", _wrap_legendObj_label_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keysizex_set", _wrap_legendObj_keysizex_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keysizex_get", _wrap_legendObj_keysizex_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keysizey_set", _wrap_legendObj_keysizey_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keysizey_get", _wrap_legendObj_keysizey_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keyspacingx_set", _wrap_legendObj_keyspacingx_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keyspacingx_get", _wrap_legendObj_keyspacingx_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keyspacingy_set", _wrap_legendObj_keyspacingy_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_keyspacingy_get", _wrap_legendObj_keyspacingy_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_outlinecolor_set", _wrap_legendObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_outlinecolor_get", _wrap_legendObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_status_set", _wrap_legendObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_status_get", _wrap_legendObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_height_set", _wrap_legendObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_height_get", _wrap_legendObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_width_set", _wrap_legendObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_width_get", _wrap_legendObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_position_set", _wrap_legendObj_position_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_position_get", _wrap_legendObj_position_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_postlabelcache_set", _wrap_legendObj_postlabelcache_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_postlabelcache_get", _wrap_legendObj_postlabelcache_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_template_set", _wrap_legendObj_template_set, METH_VARARGS, NULL},
-	 { (char *)"legendObj_template_get", _wrap_legendObj_template_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_map_get", _wrap_legendObj_map_get, METH_VARARGS, NULL},
-	 { (char *)"legendObj_updateFromString", _wrap_legendObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"legendObj_convertToString", _wrap_legendObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"new_legendObj", _wrap_new_legendObj, METH_VARARGS, NULL},
-	 { (char *)"delete_legendObj", _wrap_delete_legendObj, METH_VARARGS, NULL},
-	 { (char *)"legendObj_swigregister", legendObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"imageObj_width_get", _wrap_imageObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_height_get", _wrap_imageObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_resolution_get", _wrap_imageObj_resolution_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_resolutionfactor_get", _wrap_imageObj_resolutionfactor_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_imagepath_get", _wrap_imageObj_imagepath_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_imageurl_get", _wrap_imageObj_imageurl_get, METH_VARARGS, NULL},
-	 { (char *)"imageObj_format_get", _wrap_imageObj_format_get, METH_VARARGS, NULL},
-	 { (char *)"delete_imageObj", _wrap_delete_imageObj, METH_VARARGS, NULL},
-	 { (char *)"imageObj_save", _wrap_imageObj_save, METH_VARARGS, NULL},
-	 { (char *)"imageObj_getBytes", _wrap_imageObj_getBytes, METH_VARARGS, NULL},
-	 { (char *)"imageObj_getSize", _wrap_imageObj_getSize, METH_VARARGS, NULL},
-	 { (char *)"new_imageObj", _wrap_new_imageObj, METH_VARARGS, NULL},
-	 { (char *)"imageObj_write", _wrap_imageObj_write, METH_VARARGS, NULL},
-	 { (char *)"imageObj_saveToString", _wrap_imageObj_saveToString, METH_VARARGS, NULL},
-	 { (char *)"imageObj_swigregister", imageObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_minscale_set", _wrap_scaleTokenEntryObj_minscale_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_minscale_get", _wrap_scaleTokenEntryObj_minscale_get, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_maxscale_set", _wrap_scaleTokenEntryObj_maxscale_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_maxscale_get", _wrap_scaleTokenEntryObj_maxscale_get, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_value_set", _wrap_scaleTokenEntryObj_value_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_value_get", _wrap_scaleTokenEntryObj_value_get, METH_VARARGS, NULL},
-	 { (char *)"new_scaleTokenEntryObj", _wrap_new_scaleTokenEntryObj, METH_VARARGS, NULL},
-	 { (char *)"delete_scaleTokenEntryObj", _wrap_delete_scaleTokenEntryObj, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenEntryObj_swigregister", scaleTokenEntryObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_name_set", _wrap_scaleTokenObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_name_get", _wrap_scaleTokenObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_n_entries_set", _wrap_scaleTokenObj_n_entries_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_n_entries_get", _wrap_scaleTokenObj_n_entries_get, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_tokens_set", _wrap_scaleTokenObj_tokens_set, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_tokens_get", _wrap_scaleTokenObj_tokens_get, METH_VARARGS, NULL},
-	 { (char *)"new_scaleTokenObj", _wrap_new_scaleTokenObj, METH_VARARGS, NULL},
-	 { (char *)"delete_scaleTokenObj", _wrap_delete_scaleTokenObj, METH_VARARGS, NULL},
-	 { (char *)"scaleTokenObj_swigregister", scaleTokenObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"layerObj_classitem_set", _wrap_layerObj_classitem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_classitem_get", _wrap_layerObj_classitem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_refcount_get", _wrap_layerObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_numclasses_get", _wrap_layerObj_numclasses_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxclasses_get", _wrap_layerObj_maxclasses_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_index_get", _wrap_layerObj_index_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_map_get", _wrap_layerObj_map_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_header_set", _wrap_layerObj_header_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_header_get", _wrap_layerObj_header_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_footer_set", _wrap_layerObj_footer_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_footer_get", _wrap_layerObj_footer_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_template_set", _wrap_layerObj_template_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_template_get", _wrap_layerObj_template_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_name_set", _wrap_layerObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_name_get", _wrap_layerObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_group_set", _wrap_layerObj_group_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_group_get", _wrap_layerObj_group_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_status_set", _wrap_layerObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_status_get", _wrap_layerObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_data_set", _wrap_layerObj_data_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_data_get", _wrap_layerObj_data_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_type_set", _wrap_layerObj_type_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_type_get", _wrap_layerObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tolerance_set", _wrap_layerObj_tolerance_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tolerance_get", _wrap_layerObj_tolerance_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_toleranceunits_set", _wrap_layerObj_toleranceunits_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_toleranceunits_get", _wrap_layerObj_toleranceunits_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_symbolscaledenom_set", _wrap_layerObj_symbolscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_symbolscaledenom_get", _wrap_layerObj_symbolscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_minscaledenom_set", _wrap_layerObj_minscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_minscaledenom_get", _wrap_layerObj_minscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxscaledenom_set", _wrap_layerObj_maxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxscaledenom_get", _wrap_layerObj_maxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_minfeaturesize_set", _wrap_layerObj_minfeaturesize_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_minfeaturesize_get", _wrap_layerObj_minfeaturesize_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelminscaledenom_set", _wrap_layerObj_labelminscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelminscaledenom_get", _wrap_layerObj_labelminscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelmaxscaledenom_set", _wrap_layerObj_labelmaxscaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelmaxscaledenom_get", _wrap_layerObj_labelmaxscaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_mingeowidth_set", _wrap_layerObj_mingeowidth_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_mingeowidth_get", _wrap_layerObj_mingeowidth_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxgeowidth_set", _wrap_layerObj_maxgeowidth_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxgeowidth_get", _wrap_layerObj_maxgeowidth_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_sizeunits_set", _wrap_layerObj_sizeunits_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_sizeunits_get", _wrap_layerObj_sizeunits_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxfeatures_set", _wrap_layerObj_maxfeatures_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_maxfeatures_get", _wrap_layerObj_maxfeatures_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_startindex_set", _wrap_layerObj_startindex_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_startindex_get", _wrap_layerObj_startindex_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_offsite_set", _wrap_layerObj_offsite_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_offsite_get", _wrap_layerObj_offsite_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_transform_set", _wrap_layerObj_transform_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_transform_get", _wrap_layerObj_transform_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelcache_set", _wrap_layerObj_labelcache_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelcache_get", _wrap_layerObj_labelcache_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_postlabelcache_set", _wrap_layerObj_postlabelcache_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_postlabelcache_get", _wrap_layerObj_postlabelcache_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelitem_set", _wrap_layerObj_labelitem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelitem_get", _wrap_layerObj_labelitem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tileitem_set", _wrap_layerObj_tileitem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tileitem_get", _wrap_layerObj_tileitem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tileindex_set", _wrap_layerObj_tileindex_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tileindex_get", _wrap_layerObj_tileindex_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tilesrs_set", _wrap_layerObj_tilesrs_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_tilesrs_get", _wrap_layerObj_tilesrs_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_units_set", _wrap_layerObj_units_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_units_get", _wrap_layerObj_units_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_connection_set", _wrap_layerObj_connection_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_connection_get", _wrap_layerObj_connection_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_plugin_library_set", _wrap_layerObj_plugin_library_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_plugin_library_get", _wrap_layerObj_plugin_library_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_plugin_library_original_set", _wrap_layerObj_plugin_library_original_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_plugin_library_original_get", _wrap_layerObj_plugin_library_original_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_connectiontype_set", _wrap_layerObj_connectiontype_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_connectiontype_get", _wrap_layerObj_connectiontype_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_numitems_get", _wrap_layerObj_numitems_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_bandsitem_set", _wrap_layerObj_bandsitem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_bandsitem_get", _wrap_layerObj_bandsitem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_filteritem_set", _wrap_layerObj_filteritem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_filteritem_get", _wrap_layerObj_filteritem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_styleitem_set", _wrap_layerObj_styleitem_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_styleitem_get", _wrap_layerObj_styleitem_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_requires_set", _wrap_layerObj_requires_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_requires_get", _wrap_layerObj_requires_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelrequires_set", _wrap_layerObj_labelrequires_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_labelrequires_get", _wrap_layerObj_labelrequires_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_metadata_get", _wrap_layerObj_metadata_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_validation_get", _wrap_layerObj_validation_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_bindvals_get", _wrap_layerObj_bindvals_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_cluster_get", _wrap_layerObj_cluster_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_opacity_set", _wrap_layerObj_opacity_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_opacity_get", _wrap_layerObj_opacity_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_dump_set", _wrap_layerObj_dump_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_dump_get", _wrap_layerObj_dump_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_debug_set", _wrap_layerObj_debug_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_debug_get", _wrap_layerObj_debug_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_extent_get", _wrap_layerObj_extent_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_numprocessing_get", _wrap_layerObj_numprocessing_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_numjoins_get", _wrap_layerObj_numjoins_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_classgroup_set", _wrap_layerObj_classgroup_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_classgroup_get", _wrap_layerObj_classgroup_get, METH_VARARGS, NULL},
-	 { (char *)"layerObj_mask_set", _wrap_layerObj_mask_set, METH_VARARGS, NULL},
-	 { (char *)"layerObj_mask_get", _wrap_layerObj_mask_get, METH_VARARGS, NULL},
-	 { (char *)"new_layerObj", _wrap_new_layerObj, METH_VARARGS, NULL},
-	 { (char *)"delete_layerObj", _wrap_delete_layerObj, METH_VARARGS, NULL},
-	 { (char *)"layerObj_clone", _wrap_layerObj_clone, METH_VARARGS, NULL},
-	 { (char *)"layerObj_updateFromString", _wrap_layerObj_updateFromString, METH_VARARGS, NULL},
-	 { (char *)"layerObj_convertToString", _wrap_layerObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"layerObj_insertClass", _wrap_layerObj_insertClass, METH_VARARGS, NULL},
-	 { (char *)"layerObj_removeClass", _wrap_layerObj_removeClass, METH_VARARGS, NULL},
-	 { (char *)"layerObj_open", _wrap_layerObj_open, METH_VARARGS, NULL},
-	 { (char *)"layerObj_whichShapes", _wrap_layerObj_whichShapes, METH_VARARGS, NULL},
-	 { (char *)"layerObj_nextShape", _wrap_layerObj_nextShape, METH_VARARGS, NULL},
-	 { (char *)"layerObj_close", _wrap_layerObj_close, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getShape", _wrap_layerObj_getShape, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getNumResults", _wrap_layerObj_getNumResults, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getResultsBounds", _wrap_layerObj_getResultsBounds, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getResult", _wrap_layerObj_getResult, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getClass", _wrap_layerObj_getClass, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getItem", _wrap_layerObj_getItem, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setItems", _wrap_layerObj_setItems, METH_VARARGS, NULL},
-	 { (char *)"layerObj_draw", _wrap_layerObj_draw, METH_VARARGS, NULL},
-	 { (char *)"layerObj_drawQuery", _wrap_layerObj_drawQuery, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByFilter", _wrap_layerObj_queryByFilter, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByAttributes", _wrap_layerObj_queryByAttributes, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByPoint", _wrap_layerObj_queryByPoint, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByRect", _wrap_layerObj_queryByRect, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByFeatures", _wrap_layerObj_queryByFeatures, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByShape", _wrap_layerObj_queryByShape, METH_VARARGS, NULL},
-	 { (char *)"layerObj_queryByIndex", _wrap_layerObj_queryByIndex, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getResults", _wrap_layerObj_getResults, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setFilter", _wrap_layerObj_setFilter, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getFilterString", _wrap_layerObj_getFilterString, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setWKTProjection", _wrap_layerObj_setWKTProjection, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getProjection", _wrap_layerObj_getProjection, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setProjection", _wrap_layerObj_setProjection, METH_VARARGS, NULL},
-	 { (char *)"layerObj_addFeature", _wrap_layerObj_addFeature, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getNumFeatures", _wrap_layerObj_getNumFeatures, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getExtent", _wrap_layerObj_getExtent, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setExtent", _wrap_layerObj_setExtent, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getMetaData", _wrap_layerObj_getMetaData, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setMetaData", _wrap_layerObj_setMetaData, METH_VARARGS, NULL},
-	 { (char *)"layerObj_removeMetaData", _wrap_layerObj_removeMetaData, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getFirstMetaDataKey", _wrap_layerObj_getFirstMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getNextMetaDataKey", _wrap_layerObj_getNextMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getWMSFeatureInfoURL", _wrap_layerObj_getWMSFeatureInfoURL, METH_VARARGS, NULL},
-	 { (char *)"layerObj_executeWFSGetFeature", _wrap_layerObj_executeWFSGetFeature, METH_VARARGS, NULL},
-	 { (char *)"layerObj_applySLD", _wrap_layerObj_applySLD, METH_VARARGS, NULL},
-	 { (char *)"layerObj_applySLDURL", _wrap_layerObj_applySLDURL, METH_VARARGS, NULL},
-	 { (char *)"layerObj_generateSLD", _wrap_layerObj_generateSLD, METH_VARARGS, NULL},
-	 { (char *)"layerObj_isVisible", _wrap_layerObj_isVisible, METH_VARARGS, NULL},
-	 { (char *)"layerObj_moveClassUp", _wrap_layerObj_moveClassUp, METH_VARARGS, NULL},
-	 { (char *)"layerObj_moveClassDown", _wrap_layerObj_moveClassDown, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setProcessingKey", _wrap_layerObj_setProcessingKey, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setProcessing", _wrap_layerObj_setProcessing, METH_VARARGS, NULL},
-	 { (char *)"layerObj_addProcessing", _wrap_layerObj_addProcessing, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getProcessing", _wrap_layerObj_getProcessing, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getProcessingKey", _wrap_layerObj_getProcessingKey, METH_VARARGS, NULL},
-	 { (char *)"layerObj_clearProcessing", _wrap_layerObj_clearProcessing, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setConnectionType", _wrap_layerObj_setConnectionType, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getClassIndex", _wrap_layerObj_getClassIndex, METH_VARARGS, NULL},
-	 { (char *)"layerObj_getGeomTransform", _wrap_layerObj_getGeomTransform, METH_VARARGS, NULL},
-	 { (char *)"layerObj_setGeomTransform", _wrap_layerObj_setGeomTransform, METH_VARARGS, NULL},
-	 { (char *)"layerObj_swigregister", layerObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"mapObj_name_set", _wrap_mapObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_name_get", _wrap_mapObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_status_set", _wrap_mapObj_status_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_status_get", _wrap_mapObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_height_set", _wrap_mapObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_height_get", _wrap_mapObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_width_set", _wrap_mapObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_width_get", _wrap_mapObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_maxsize_set", _wrap_mapObj_maxsize_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_maxsize_get", _wrap_mapObj_maxsize_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_refcount_get", _wrap_mapObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_numlayers_get", _wrap_mapObj_numlayers_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_maxlayers_get", _wrap_mapObj_maxlayers_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_symbolset_get", _wrap_mapObj_symbolset_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_fontset_get", _wrap_mapObj_fontset_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_labelcache_get", _wrap_mapObj_labelcache_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_transparent_set", _wrap_mapObj_transparent_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_transparent_get", _wrap_mapObj_transparent_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_interlace_set", _wrap_mapObj_interlace_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_interlace_get", _wrap_mapObj_interlace_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_imagequality_set", _wrap_mapObj_imagequality_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_imagequality_get", _wrap_mapObj_imagequality_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_extent_set", _wrap_mapObj_extent_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_extent_get", _wrap_mapObj_extent_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_cellsize_set", _wrap_mapObj_cellsize_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_cellsize_get", _wrap_mapObj_cellsize_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_units_set", _wrap_mapObj_units_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_units_get", _wrap_mapObj_units_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_scaledenom_set", _wrap_mapObj_scaledenom_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_scaledenom_get", _wrap_mapObj_scaledenom_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_resolution_set", _wrap_mapObj_resolution_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_resolution_get", _wrap_mapObj_resolution_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_defresolution_set", _wrap_mapObj_defresolution_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_defresolution_get", _wrap_mapObj_defresolution_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_shapepath_set", _wrap_mapObj_shapepath_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_shapepath_get", _wrap_mapObj_shapepath_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_mappath_set", _wrap_mapObj_mappath_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_mappath_get", _wrap_mapObj_mappath_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_imagecolor_set", _wrap_mapObj_imagecolor_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_imagecolor_get", _wrap_mapObj_imagecolor_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_numoutputformats_get", _wrap_mapObj_numoutputformats_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_outputformat_get", _wrap_mapObj_outputformat_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_imagetype_get", _wrap_mapObj_imagetype_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_reference_get", _wrap_mapObj_reference_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_scalebar_get", _wrap_mapObj_scalebar_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_legend_get", _wrap_mapObj_legend_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_querymap_get", _wrap_mapObj_querymap_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_web_get", _wrap_mapObj_web_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_layerorder_set", _wrap_mapObj_layerorder_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_layerorder_get", _wrap_mapObj_layerorder_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_debug_set", _wrap_mapObj_debug_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_debug_get", _wrap_mapObj_debug_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_datapattern_set", _wrap_mapObj_datapattern_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_datapattern_get", _wrap_mapObj_datapattern_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_templatepattern_set", _wrap_mapObj_templatepattern_set, METH_VARARGS, NULL},
-	 { (char *)"mapObj_templatepattern_get", _wrap_mapObj_templatepattern_get, METH_VARARGS, NULL},
-	 { (char *)"mapObj_configoptions_get", _wrap_mapObj_configoptions_get, METH_VARARGS, NULL},
-	 { (char *)"new_mapObj", _wrap_new_mapObj, METH_VARARGS, NULL},
-	 { (char *)"delete_mapObj", _wrap_delete_mapObj, METH_VARARGS, NULL},
-	 { (char *)"mapObj_clone", _wrap_mapObj_clone, METH_VARARGS, NULL},
-	 { (char *)"mapObj_insertLayer", _wrap_mapObj_insertLayer, METH_VARARGS, NULL},
-	 { (char *)"mapObj_removeLayer", _wrap_mapObj_removeLayer, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setExtent", _wrap_mapObj_setExtent, METH_VARARGS, NULL},
-	 { (char *)"mapObj_offsetExtent", _wrap_mapObj_offsetExtent, METH_VARARGS, NULL},
-	 { (char *)"mapObj_scaleExtent", _wrap_mapObj_scaleExtent, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setCenter", _wrap_mapObj_setCenter, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setSize", _wrap_mapObj_setSize, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setRotation", _wrap_mapObj_setRotation, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getLayer", _wrap_mapObj_getLayer, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getLayerByName", _wrap_mapObj_getLayerByName, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getSymbolByName", _wrap_mapObj_getSymbolByName, METH_VARARGS, NULL},
-	 { (char *)"mapObj_prepareQuery", _wrap_mapObj_prepareQuery, METH_VARARGS, NULL},
-	 { (char *)"mapObj_prepareImage", _wrap_mapObj_prepareImage, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setImageType", _wrap_mapObj_setImageType, METH_VARARGS, NULL},
-	 { (char *)"mapObj_selectOutputFormat", _wrap_mapObj_selectOutputFormat, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getOutputFormat", _wrap_mapObj_getOutputFormat, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setOutputFormat", _wrap_mapObj_setOutputFormat, METH_VARARGS, NULL},
-	 { (char *)"mapObj_draw", _wrap_mapObj_draw, METH_VARARGS, NULL},
-	 { (char *)"mapObj_drawQuery", _wrap_mapObj_drawQuery, METH_VARARGS, NULL},
-	 { (char *)"mapObj_drawLegend", _wrap_mapObj_drawLegend, METH_VARARGS, NULL},
-	 { (char *)"mapObj_drawScalebar", _wrap_mapObj_drawScalebar, METH_VARARGS, NULL},
-	 { (char *)"mapObj_drawReferenceMap", _wrap_mapObj_drawReferenceMap, METH_VARARGS, NULL},
-	 { (char *)"mapObj_embedScalebar", _wrap_mapObj_embedScalebar, METH_VARARGS, NULL},
-	 { (char *)"mapObj_embedLegend", _wrap_mapObj_embedLegend, METH_VARARGS, NULL},
-	 { (char *)"mapObj_drawLabelCache", _wrap_mapObj_drawLabelCache, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getLabel", _wrap_mapObj_getLabel, METH_VARARGS, NULL},
-	 { (char *)"mapObj_nextLabel", _wrap_mapObj_nextLabel, METH_VARARGS, NULL},
-	 { (char *)"mapObj_queryByFilter", _wrap_mapObj_queryByFilter, METH_VARARGS, NULL},
-	 { (char *)"mapObj_queryByPoint", _wrap_mapObj_queryByPoint, METH_VARARGS, NULL},
-	 { (char *)"mapObj_queryByRect", _wrap_mapObj_queryByRect, METH_VARARGS, NULL},
-	 { (char *)"mapObj_queryByFeatures", _wrap_mapObj_queryByFeatures, METH_VARARGS, NULL},
-	 { (char *)"mapObj_queryByShape", _wrap_mapObj_queryByShape, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setWKTProjection", _wrap_mapObj_setWKTProjection, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getProjection", _wrap_mapObj_getProjection, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setProjection", _wrap_mapObj_setProjection, METH_VARARGS, NULL},
-	 { (char *)"mapObj_save", _wrap_mapObj_save, METH_VARARGS, NULL},
-	 { (char *)"mapObj_saveQuery", _wrap_mapObj_saveQuery, METH_VARARGS, NULL},
-	 { (char *)"mapObj_loadQuery", _wrap_mapObj_loadQuery, METH_VARARGS, NULL},
-	 { (char *)"mapObj_freeQuery", _wrap_mapObj_freeQuery, METH_VARARGS, NULL},
-	 { (char *)"mapObj_saveQueryAsGML", _wrap_mapObj_saveQueryAsGML, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getMetaData", _wrap_mapObj_getMetaData, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setMetaData", _wrap_mapObj_setMetaData, METH_VARARGS, NULL},
-	 { (char *)"mapObj_removeMetaData", _wrap_mapObj_removeMetaData, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getFirstMetaDataKey", _wrap_mapObj_getFirstMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getNextMetaDataKey", _wrap_mapObj_getNextMetaDataKey, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setSymbolSet", _wrap_mapObj_setSymbolSet, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getNumSymbols", _wrap_mapObj_getNumSymbols, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setFontSet", _wrap_mapObj_setFontSet, METH_VARARGS, NULL},
-	 { (char *)"mapObj_saveMapContext", _wrap_mapObj_saveMapContext, METH_VARARGS, NULL},
-	 { (char *)"mapObj_loadMapContext", _wrap_mapObj_loadMapContext, METH_VARARGS, NULL},
-	 { (char *)"mapObj_moveLayerUp", _wrap_mapObj_moveLayerUp, METH_VARARGS, NULL},
-	 { (char *)"mapObj_moveLayerDown", _wrap_mapObj_moveLayerDown, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getLayersDrawingOrder", _wrap_mapObj_getLayersDrawingOrder, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setLayersDrawingOrder", _wrap_mapObj_setLayersDrawingOrder, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setConfigOption", _wrap_mapObj_setConfigOption, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getConfigOption", _wrap_mapObj_getConfigOption, METH_VARARGS, NULL},
-	 { (char *)"mapObj_applyConfigOptions", _wrap_mapObj_applyConfigOptions, METH_VARARGS, NULL},
-	 { (char *)"mapObj_applySLD", _wrap_mapObj_applySLD, METH_VARARGS, NULL},
-	 { (char *)"mapObj_applySLDURL", _wrap_mapObj_applySLDURL, METH_VARARGS, NULL},
-	 { (char *)"mapObj_generateSLD", _wrap_mapObj_generateSLD, METH_VARARGS, NULL},
-	 { (char *)"mapObj_processTemplate", _wrap_mapObj_processTemplate, METH_VARARGS, NULL},
-	 { (char *)"mapObj_processLegendTemplate", _wrap_mapObj_processLegendTemplate, METH_VARARGS, NULL},
-	 { (char *)"mapObj_processQueryTemplate", _wrap_mapObj_processQueryTemplate, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getOutputFormatByName", _wrap_mapObj_getOutputFormatByName, METH_VARARGS, NULL},
-	 { (char *)"mapObj_appendOutputFormat", _wrap_mapObj_appendOutputFormat, METH_VARARGS, NULL},
-	 { (char *)"mapObj_removeOutputFormat", _wrap_mapObj_removeOutputFormat, METH_VARARGS, NULL},
-	 { (char *)"mapObj_loadOWSParameters", _wrap_mapObj_loadOWSParameters, METH_VARARGS, NULL},
-	 { (char *)"mapObj_OWSDispatch", _wrap_mapObj_OWSDispatch, METH_VARARGS, NULL},
-	 { (char *)"mapObj_convertToString", _wrap_mapObj_convertToString, METH_VARARGS, NULL},
-	 { (char *)"mapObj_zoomPoint", _wrap_mapObj_zoomPoint, METH_VARARGS, NULL},
-	 { (char *)"mapObj_zoomRectangle", _wrap_mapObj_zoomRectangle, METH_VARARGS, NULL},
-	 { (char *)"mapObj_zoomScale", _wrap_mapObj_zoomScale, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getLayerOrder", _wrap_mapObj_getLayerOrder, METH_VARARGS, NULL},
-	 { (char *)"mapObj_setLayerOrder", _wrap_mapObj_setLayerOrder, METH_VARARGS, NULL},
-	 { (char *)"mapObj_getSize", _wrap_mapObj_getSize, METH_VARARGS, NULL},
-	 { (char *)"mapObj_swigregister", mapObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"msSaveImage", _wrap_msSaveImage, METH_VARARGS, NULL},
-	 { (char *)"msFreeImage", _wrap_msFreeImage, METH_VARARGS, NULL},
-	 { (char *)"msSetup", _wrap_msSetup, METH_VARARGS, NULL},
-	 { (char *)"msCleanup", _wrap_msCleanup, METH_VARARGS, NULL},
-	 { (char *)"msLoadMapFromString", _wrap_msLoadMapFromString, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_width_set", _wrap_strokeStyleObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_width_get", _wrap_strokeStyleObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_patternlength_set", _wrap_strokeStyleObj_patternlength_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_patternlength_get", _wrap_strokeStyleObj_patternlength_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_pattern_set", _wrap_strokeStyleObj_pattern_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_pattern_get", _wrap_strokeStyleObj_pattern_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_patternoffset_set", _wrap_strokeStyleObj_patternoffset_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_patternoffset_get", _wrap_strokeStyleObj_patternoffset_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_color_set", _wrap_strokeStyleObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_color_get", _wrap_strokeStyleObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linecap_set", _wrap_strokeStyleObj_linecap_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linecap_get", _wrap_strokeStyleObj_linecap_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linejoin_set", _wrap_strokeStyleObj_linejoin_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linejoin_get", _wrap_strokeStyleObj_linejoin_get, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linejoinmaxsize_set", _wrap_strokeStyleObj_linejoinmaxsize_set, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_linejoinmaxsize_get", _wrap_strokeStyleObj_linejoinmaxsize_get, METH_VARARGS, NULL},
-	 { (char *)"new_strokeStyleObj", _wrap_new_strokeStyleObj, METH_VARARGS, NULL},
-	 { (char *)"delete_strokeStyleObj", _wrap_delete_strokeStyleObj, METH_VARARGS, NULL},
-	 { (char *)"strokeStyleObj_swigregister", strokeStyleObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_color_set", _wrap_symbolStyleObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_color_get", _wrap_symbolStyleObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_backgroundcolor_set", _wrap_symbolStyleObj_backgroundcolor_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_backgroundcolor_get", _wrap_symbolStyleObj_backgroundcolor_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_outlinewidth_set", _wrap_symbolStyleObj_outlinewidth_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_outlinewidth_get", _wrap_symbolStyleObj_outlinewidth_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_outlinecolor_set", _wrap_symbolStyleObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_outlinecolor_get", _wrap_symbolStyleObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_scale_set", _wrap_symbolStyleObj_scale_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_scale_get", _wrap_symbolStyleObj_scale_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_rotation_set", _wrap_symbolStyleObj_rotation_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_rotation_get", _wrap_symbolStyleObj_rotation_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_gap_set", _wrap_symbolStyleObj_gap_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_gap_get", _wrap_symbolStyleObj_gap_get, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_style_set", _wrap_symbolStyleObj_style_set, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_style_get", _wrap_symbolStyleObj_style_get, METH_VARARGS, NULL},
-	 { (char *)"new_symbolStyleObj", _wrap_new_symbolStyleObj, METH_VARARGS, NULL},
-	 { (char *)"delete_symbolStyleObj", _wrap_delete_symbolStyleObj, METH_VARARGS, NULL},
-	 { (char *)"symbolStyleObj_swigregister", symbolStyleObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_symbol_set", _wrap_tileCacheObj_symbol_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_symbol_get", _wrap_tileCacheObj_symbol_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_width_set", _wrap_tileCacheObj_width_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_width_get", _wrap_tileCacheObj_width_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_height_set", _wrap_tileCacheObj_height_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_height_get", _wrap_tileCacheObj_height_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_color_set", _wrap_tileCacheObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_color_get", _wrap_tileCacheObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_outlinecolor_set", _wrap_tileCacheObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_outlinecolor_get", _wrap_tileCacheObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_backgroundcolor_set", _wrap_tileCacheObj_backgroundcolor_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_backgroundcolor_get", _wrap_tileCacheObj_backgroundcolor_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_outlinewidth_set", _wrap_tileCacheObj_outlinewidth_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_outlinewidth_get", _wrap_tileCacheObj_outlinewidth_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_rotation_set", _wrap_tileCacheObj_rotation_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_rotation_get", _wrap_tileCacheObj_rotation_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_scale_set", _wrap_tileCacheObj_scale_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_scale_get", _wrap_tileCacheObj_scale_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_image_set", _wrap_tileCacheObj_image_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_image_get", _wrap_tileCacheObj_image_get, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_next_set", _wrap_tileCacheObj_next_set, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_next_get", _wrap_tileCacheObj_next_get, METH_VARARGS, NULL},
-	 { (char *)"new_tileCacheObj", _wrap_new_tileCacheObj, METH_VARARGS, NULL},
-	 { (char *)"delete_tileCacheObj", _wrap_delete_tileCacheObj, METH_VARARGS, NULL},
-	 { (char *)"tileCacheObj_swigregister", tileCacheObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_fonts_set", _wrap_labelStyleObj_fonts_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_fonts_get", _wrap_labelStyleObj_fonts_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_numfonts_set", _wrap_labelStyleObj_numfonts_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_numfonts_get", _wrap_labelStyleObj_numfonts_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_size_set", _wrap_labelStyleObj_size_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_size_get", _wrap_labelStyleObj_size_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_rotation_set", _wrap_labelStyleObj_rotation_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_rotation_get", _wrap_labelStyleObj_rotation_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_color_set", _wrap_labelStyleObj_color_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_color_get", _wrap_labelStyleObj_color_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_outlinewidth_set", _wrap_labelStyleObj_outlinewidth_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_outlinewidth_get", _wrap_labelStyleObj_outlinewidth_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_outlinecolor_set", _wrap_labelStyleObj_outlinecolor_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_outlinecolor_get", _wrap_labelStyleObj_outlinecolor_get, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_antialias_set", _wrap_labelStyleObj_antialias_set, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_antialias_get", _wrap_labelStyleObj_antialias_get, METH_VARARGS, NULL},
-	 { (char *)"new_labelStyleObj", _wrap_new_labelStyleObj, METH_VARARGS, NULL},
-	 { (char *)"delete_labelStyleObj", _wrap_delete_labelStyleObj, METH_VARARGS, NULL},
-	 { (char *)"labelStyleObj_swigregister", labelStyleObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"rectObj_minx_set", _wrap_rectObj_minx_set, METH_VARARGS, NULL},
-	 { (char *)"rectObj_minx_get", _wrap_rectObj_minx_get, METH_VARARGS, NULL},
-	 { (char *)"rectObj_miny_set", _wrap_rectObj_miny_set, METH_VARARGS, NULL},
-	 { (char *)"rectObj_miny_get", _wrap_rectObj_miny_get, METH_VARARGS, NULL},
-	 { (char *)"rectObj_maxx_set", _wrap_rectObj_maxx_set, METH_VARARGS, NULL},
-	 { (char *)"rectObj_maxx_get", _wrap_rectObj_maxx_get, METH_VARARGS, NULL},
-	 { (char *)"rectObj_maxy_set", _wrap_rectObj_maxy_set, METH_VARARGS, NULL},
-	 { (char *)"rectObj_maxy_get", _wrap_rectObj_maxy_get, METH_VARARGS, NULL},
-	 { (char *)"new_rectObj", _wrap_new_rectObj, METH_VARARGS, NULL},
-	 { (char *)"delete_rectObj", _wrap_delete_rectObj, METH_VARARGS, NULL},
-	 { (char *)"rectObj_project", _wrap_rectObj_project, METH_VARARGS, NULL},
-	 { (char *)"rectObj_fit", _wrap_rectObj_fit, METH_VARARGS, NULL},
-	 { (char *)"rectObj_draw", _wrap_rectObj_draw, METH_VARARGS, NULL},
-	 { (char *)"rectObj_getCenter", _wrap_rectObj_getCenter, METH_VARARGS, NULL},
-	 { (char *)"rectObj_toPolygon", _wrap_rectObj_toPolygon, METH_VARARGS, NULL},
-	 { (char *)"rectObj_toString", _wrap_rectObj_toString, METH_VARARGS, NULL},
-	 { (char *)"rectObj_swigregister", rectObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"pointObj_x_set", _wrap_pointObj_x_set, METH_VARARGS, NULL},
-	 { (char *)"pointObj_x_get", _wrap_pointObj_x_get, METH_VARARGS, NULL},
-	 { (char *)"pointObj_y_set", _wrap_pointObj_y_set, METH_VARARGS, NULL},
-	 { (char *)"pointObj_y_get", _wrap_pointObj_y_get, METH_VARARGS, NULL},
-	 { (char *)"new_pointObj", _wrap_new_pointObj, METH_VARARGS, NULL},
-	 { (char *)"delete_pointObj", _wrap_delete_pointObj, METH_VARARGS, NULL},
-	 { (char *)"pointObj_project", _wrap_pointObj_project, METH_VARARGS, NULL},
-	 { (char *)"pointObj_draw", _wrap_pointObj_draw, METH_VARARGS, NULL},
-	 { (char *)"pointObj_distanceToPoint", _wrap_pointObj_distanceToPoint, METH_VARARGS, NULL},
-	 { (char *)"pointObj_distanceToSegment", _wrap_pointObj_distanceToSegment, METH_VARARGS, NULL},
-	 { (char *)"pointObj_distanceToShape", _wrap_pointObj_distanceToShape, METH_VARARGS, NULL},
-	 { (char *)"pointObj_setXY", _wrap_pointObj_setXY, METH_VARARGS, NULL},
-	 { (char *)"pointObj_setXYZ", _wrap_pointObj_setXYZ, METH_VARARGS, NULL},
-	 { (char *)"pointObj_setXYZM", _wrap_pointObj_setXYZM, METH_VARARGS, NULL},
-	 { (char *)"pointObj_toString", _wrap_pointObj_toString, METH_VARARGS, NULL},
-	 { (char *)"pointObj_toShape", _wrap_pointObj_toShape, METH_VARARGS, NULL},
-	 { (char *)"pointObj_swigregister", pointObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"lineObj_numpoints_get", _wrap_lineObj_numpoints_get, METH_VARARGS, NULL},
-	 { (char *)"new_lineObj", _wrap_new_lineObj, METH_VARARGS, NULL},
-	 { (char *)"delete_lineObj", _wrap_delete_lineObj, METH_VARARGS, NULL},
-	 { (char *)"lineObj_project", _wrap_lineObj_project, METH_VARARGS, NULL},
-	 { (char *)"lineObj_get", _wrap_lineObj_get, METH_VARARGS, NULL},
-	 { (char *)"lineObj_add", _wrap_lineObj_add, METH_VARARGS, NULL},
-	 { (char *)"lineObj_set", _wrap_lineObj_set, METH_VARARGS, NULL},
-	 { (char *)"lineObj_swigregister", lineObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_numlines_get", _wrap_shapeObj_numlines_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_numvalues_get", _wrap_shapeObj_numvalues_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_bounds_set", _wrap_shapeObj_bounds_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_bounds_get", _wrap_shapeObj_bounds_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_type_set", _wrap_shapeObj_type_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_type_get", _wrap_shapeObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_index_set", _wrap_shapeObj_index_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_index_get", _wrap_shapeObj_index_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_tileindex_set", _wrap_shapeObj_tileindex_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_tileindex_get", _wrap_shapeObj_tileindex_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_classindex_set", _wrap_shapeObj_classindex_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_classindex_get", _wrap_shapeObj_classindex_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_text_set", _wrap_shapeObj_text_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_text_get", _wrap_shapeObj_text_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_scratch_set", _wrap_shapeObj_scratch_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_scratch_get", _wrap_shapeObj_scratch_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_resultindex_set", _wrap_shapeObj_resultindex_set, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_resultindex_get", _wrap_shapeObj_resultindex_get, METH_VARARGS, NULL},
-	 { (char *)"new_shapeObj", _wrap_new_shapeObj, METH_VARARGS, NULL},
-	 { (char *)"delete_shapeObj", _wrap_delete_shapeObj, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_fromWKT", _wrap_shapeObj_fromWKT, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_project", _wrap_shapeObj_project, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_get", _wrap_shapeObj_get, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_add", _wrap_shapeObj_add, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_draw", _wrap_shapeObj_draw, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_setBounds", _wrap_shapeObj_setBounds, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_clone", _wrap_shapeObj_clone, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_copy", _wrap_shapeObj_copy, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_toWKT", _wrap_shapeObj_toWKT, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_buffer", _wrap_shapeObj_buffer, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_simplify", _wrap_shapeObj_simplify, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_topologyPreservingSimplify", _wrap_shapeObj_topologyPreservingSimplify, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_convexHull", _wrap_shapeObj_convexHull, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_boundary", _wrap_shapeObj_boundary, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_getCentroid", _wrap_shapeObj_getCentroid, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_Union", _wrap_shapeObj_Union, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_intersection", _wrap_shapeObj_intersection, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_difference", _wrap_shapeObj_difference, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_symDifference", _wrap_shapeObj_symDifference, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_overlaps", _wrap_shapeObj_overlaps, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_within", _wrap_shapeObj_within, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_crosses", _wrap_shapeObj_crosses, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_intersects", _wrap_shapeObj_intersects, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_touches", _wrap_shapeObj_touches, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_equals", _wrap_shapeObj_equals, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_disjoint", _wrap_shapeObj_disjoint, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_getArea", _wrap_shapeObj_getArea, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_getLength", _wrap_shapeObj_getLength, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_getValue", _wrap_shapeObj_getValue, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_contains", _wrap_shapeObj_contains, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_distanceToPoint", _wrap_shapeObj_distanceToPoint, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_distanceToShape", _wrap_shapeObj_distanceToShape, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_getLabelPoint", _wrap_shapeObj_getLabelPoint, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_setValue", _wrap_shapeObj_setValue, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_initValues", _wrap_shapeObj_initValues, METH_VARARGS, NULL},
-	 { (char *)"shapeObj_swigregister", shapeObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_fp_get", _wrap_DBFInfo_fp_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nRecords_get", _wrap_DBFInfo_nRecords_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nRecordLength_get", _wrap_DBFInfo_nRecordLength_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nHeaderLength_get", _wrap_DBFInfo_nHeaderLength_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nFields_get", _wrap_DBFInfo_nFields_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_panFieldOffset_get", _wrap_DBFInfo_panFieldOffset_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_panFieldSize_get", _wrap_DBFInfo_panFieldSize_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_panFieldDecimals_get", _wrap_DBFInfo_panFieldDecimals_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_pachFieldType_get", _wrap_DBFInfo_pachFieldType_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_pszHeader_get", _wrap_DBFInfo_pszHeader_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nCurrentRecord_get", _wrap_DBFInfo_nCurrentRecord_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_bCurrentRecordModified_get", _wrap_DBFInfo_bCurrentRecordModified_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_pszCurrentRecord_get", _wrap_DBFInfo_pszCurrentRecord_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_bNoHeader_get", _wrap_DBFInfo_bNoHeader_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_bUpdated_get", _wrap_DBFInfo_bUpdated_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_pszStringField_get", _wrap_DBFInfo_pszStringField_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_nStringFieldLen_get", _wrap_DBFInfo_nStringFieldLen_get, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_getFieldName", _wrap_DBFInfo_getFieldName, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_getFieldWidth", _wrap_DBFInfo_getFieldWidth, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_getFieldDecimals", _wrap_DBFInfo_getFieldDecimals, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_getFieldType", _wrap_DBFInfo_getFieldType, METH_VARARGS, NULL},
-	 { (char *)"new_DBFInfo", _wrap_new_DBFInfo, METH_VARARGS, NULL},
-	 { (char *)"delete_DBFInfo", _wrap_delete_DBFInfo, METH_VARARGS, NULL},
-	 { (char *)"DBFInfo_swigregister", DBFInfo_swigregister, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_source_get", _wrap_shapefileObj_source_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_type_get", _wrap_shapefileObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_numshapes_get", _wrap_shapefileObj_numshapes_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_bounds_get", _wrap_shapefileObj_bounds_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_lastshape_get", _wrap_shapefileObj_lastshape_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_status_get", _wrap_shapefileObj_status_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_statusbounds_get", _wrap_shapefileObj_statusbounds_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_isopen_get", _wrap_shapefileObj_isopen_get, METH_VARARGS, NULL},
-	 { (char *)"new_shapefileObj", _wrap_new_shapefileObj, METH_VARARGS, NULL},
-	 { (char *)"delete_shapefileObj", _wrap_delete_shapefileObj, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_get", _wrap_shapefileObj_get, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_getShape", _wrap_shapefileObj_getShape, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_getPoint", _wrap_shapefileObj_getPoint, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_getTransformed", _wrap_shapefileObj_getTransformed, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_getExtent", _wrap_shapefileObj_getExtent, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_add", _wrap_shapefileObj_add, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_addPoint", _wrap_shapefileObj_addPoint, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_getDBF", _wrap_shapefileObj_getDBF, METH_VARARGS, NULL},
-	 { (char *)"shapefileObj_swigregister", shapefileObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_numargs_get", _wrap_projectionObj_numargs_get, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_automatic_get", _wrap_projectionObj_automatic_get, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_wellknownprojection_set", _wrap_projectionObj_wellknownprojection_set, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_wellknownprojection_get", _wrap_projectionObj_wellknownprojection_get, METH_VARARGS, NULL},
-	 { (char *)"new_projectionObj", _wrap_new_projectionObj, METH_VARARGS, NULL},
-	 { (char *)"delete_projectionObj", _wrap_delete_projectionObj, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_setWKTProjection", _wrap_projectionObj_setWKTProjection, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_getUnits", _wrap_projectionObj_getUnits, METH_VARARGS, NULL},
-	 { (char *)"projectionObj_swigregister", projectionObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"colorObj_red_set", _wrap_colorObj_red_set, METH_VARARGS, NULL},
-	 { (char *)"colorObj_red_get", _wrap_colorObj_red_get, METH_VARARGS, NULL},
-	 { (char *)"colorObj_green_set", _wrap_colorObj_green_set, METH_VARARGS, NULL},
-	 { (char *)"colorObj_green_get", _wrap_colorObj_green_get, METH_VARARGS, NULL},
-	 { (char *)"colorObj_blue_set", _wrap_colorObj_blue_set, METH_VARARGS, NULL},
-	 { (char *)"colorObj_blue_get", _wrap_colorObj_blue_get, METH_VARARGS, NULL},
-	 { (char *)"colorObj_alpha_set", _wrap_colorObj_alpha_set, METH_VARARGS, NULL},
-	 { (char *)"colorObj_alpha_get", _wrap_colorObj_alpha_get, METH_VARARGS, NULL},
-	 { (char *)"new_colorObj", _wrap_new_colorObj, METH_VARARGS, NULL},
-	 { (char *)"delete_colorObj", _wrap_delete_colorObj, METH_VARARGS, NULL},
-	 { (char *)"colorObj_setRGB", _wrap_colorObj_setRGB, METH_VARARGS, NULL},
-	 { (char *)"colorObj_setHex", _wrap_colorObj_setHex, METH_VARARGS, NULL},
-	 { (char *)"colorObj_toHex", _wrap_colorObj_toHex, METH_VARARGS, NULL},
-	 { (char *)"colorObj_swigregister", colorObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_name_set", _wrap_symbolObj_name_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_name_get", _wrap_symbolObj_name_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_type_set", _wrap_symbolObj_type_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_type_get", _wrap_symbolObj_type_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_inmapfile_set", _wrap_symbolObj_inmapfile_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_inmapfile_get", _wrap_symbolObj_inmapfile_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_sizex_set", _wrap_symbolObj_sizex_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_sizex_get", _wrap_symbolObj_sizex_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_sizey_set", _wrap_symbolObj_sizey_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_sizey_get", _wrap_symbolObj_sizey_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_minx_set", _wrap_symbolObj_minx_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_minx_get", _wrap_symbolObj_minx_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_miny_set", _wrap_symbolObj_miny_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_miny_get", _wrap_symbolObj_miny_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_maxx_set", _wrap_symbolObj_maxx_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_maxx_get", _wrap_symbolObj_maxx_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_maxy_set", _wrap_symbolObj_maxy_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_maxy_get", _wrap_symbolObj_maxy_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_refcount_get", _wrap_symbolObj_refcount_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_numpoints_get", _wrap_symbolObj_numpoints_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_filled_set", _wrap_symbolObj_filled_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_filled_get", _wrap_symbolObj_filled_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_anchorpoint_x_set", _wrap_symbolObj_anchorpoint_x_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_anchorpoint_x_get", _wrap_symbolObj_anchorpoint_x_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_anchorpoint_y_set", _wrap_symbolObj_anchorpoint_y_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_anchorpoint_y_get", _wrap_symbolObj_anchorpoint_y_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_imagepath_get", _wrap_symbolObj_imagepath_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_transparent_set", _wrap_symbolObj_transparent_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_transparent_get", _wrap_symbolObj_transparent_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_transparentcolor_set", _wrap_symbolObj_transparentcolor_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_transparentcolor_get", _wrap_symbolObj_transparentcolor_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_character_set", _wrap_symbolObj_character_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_character_get", _wrap_symbolObj_character_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_antialias_set", _wrap_symbolObj_antialias_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_antialias_get", _wrap_symbolObj_antialias_get, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_font_set", _wrap_symbolObj_font_set, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_font_get", _wrap_symbolObj_font_get, METH_VARARGS, NULL},
-	 { (char *)"new_symbolObj", _wrap_new_symbolObj, METH_VARARGS, NULL},
-	 { (char *)"delete_symbolObj", _wrap_delete_symbolObj, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_setImagepath", _wrap_symbolObj_setImagepath, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_setPoints", _wrap_symbolObj_setPoints, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_getPoints", _wrap_symbolObj_getPoints, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_getImage", _wrap_symbolObj_getImage, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_setImage", _wrap_symbolObj_setImage, METH_VARARGS, NULL},
-	 { (char *)"symbolObj_swigregister", symbolObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"errorObj_code_set", _wrap_errorObj_code_set, METH_VARARGS, NULL},
-	 { (char *)"errorObj_code_get", _wrap_errorObj_code_get, METH_VARARGS, NULL},
-	 { (char *)"errorObj_routine_set", _wrap_errorObj_routine_set, METH_VARARGS, NULL},
-	 { (char *)"errorObj_routine_get", _wrap_errorObj_routine_get, METH_VARARGS, NULL},
-	 { (char *)"errorObj_message_set", _wrap_errorObj_message_set, METH_VARARGS, NULL},
-	 { (char *)"errorObj_message_get", _wrap_errorObj_message_get, METH_VARARGS, NULL},
-	 { (char *)"errorObj_isreported_set", _wrap_errorObj_isreported_set, METH_VARARGS, NULL},
-	 { (char *)"errorObj_isreported_get", _wrap_errorObj_isreported_get, METH_VARARGS, NULL},
-	 { (char *)"new_errorObj", _wrap_new_errorObj, METH_VARARGS, NULL},
-	 { (char *)"delete_errorObj", _wrap_delete_errorObj, METH_VARARGS, NULL},
-	 { (char *)"errorObj_next", _wrap_errorObj_next, METH_VARARGS, NULL},
-	 { (char *)"errorObj_swigregister", errorObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"msGetErrorObj", _wrap_msGetErrorObj, METH_VARARGS, NULL},
-	 { (char *)"msResetErrorList", _wrap_msResetErrorList, METH_VARARGS, NULL},
-	 { (char *)"msGetVersion", _wrap_msGetVersion, METH_VARARGS, NULL},
-	 { (char *)"msGetVersionInt", _wrap_msGetVersionInt, METH_VARARGS, NULL},
-	 { (char *)"msGetErrorString", _wrap_msGetErrorString, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_numitems_get", _wrap_hashTableObj_numitems_get, METH_VARARGS, NULL},
-	 { (char *)"new_hashTableObj", _wrap_new_hashTableObj, METH_VARARGS, NULL},
-	 { (char *)"delete_hashTableObj", _wrap_delete_hashTableObj, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_set", _wrap_hashTableObj_set, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_get", _wrap_hashTableObj_get, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_remove", _wrap_hashTableObj_remove, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_clear", _wrap_hashTableObj_clear, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_nextKey", _wrap_hashTableObj_nextKey, METH_VARARGS, NULL},
-	 { (char *)"hashTableObj_swigregister", hashTableObj_swigregister, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_NumParams_get", _wrap_OWSRequest_NumParams_get, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_type_set", _wrap_OWSRequest_type_set, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_type_get", _wrap_OWSRequest_type_get, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_contenttype_set", _wrap_OWSRequest_contenttype_set, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_contenttype_get", _wrap_OWSRequest_contenttype_get, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_postrequest_set", _wrap_OWSRequest_postrequest_set, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_postrequest_get", _wrap_OWSRequest_postrequest_get, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_httpcookiedata_set", _wrap_OWSRequest_httpcookiedata_set, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_httpcookiedata_get", _wrap_OWSRequest_httpcookiedata_get, METH_VARARGS, NULL},
-	 { (char *)"new_OWSRequest", _wrap_new_OWSRequest, METH_VARARGS, NULL},
-	 { (char *)"delete_OWSRequest", _wrap_delete_OWSRequest, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_loadParams", _wrap_OWSRequest_loadParams, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_loadParamsFromURL", _wrap_OWSRequest_loadParamsFromURL, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_setParameter", _wrap_OWSRequest_setParameter, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_addParameter", _wrap_OWSRequest_addParameter, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_getName", _wrap_OWSRequest_getName, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_getValue", _wrap_OWSRequest_getValue, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_getValueByName", _wrap_OWSRequest_getValueByName, METH_VARARGS, NULL},
-	 { (char *)"OWSRequest_swigregister", OWSRequest_swigregister, METH_VARARGS, NULL},
-	 { (char *)"msConnPoolCloseUnreferenced", _wrap_msConnPoolCloseUnreferenced, METH_VARARGS, NULL},
-	 { (char *)"msIO_resetHandlers", _wrap_msIO_resetHandlers, METH_VARARGS, NULL},
-	 { (char *)"msIO_installStdoutToBuffer", _wrap_msIO_installStdoutToBuffer, METH_VARARGS, NULL},
-	 { (char *)"msIO_installStdinFromBuffer", _wrap_msIO_installStdinFromBuffer, METH_VARARGS, NULL},
-	 { (char *)"msIO_stripStdoutBufferContentType", _wrap_msIO_stripStdoutBufferContentType, METH_VARARGS, NULL},
-	 { (char *)"msIO_stripStdoutBufferContentHeaders", _wrap_msIO_stripStdoutBufferContentHeaders, METH_VARARGS, NULL},
-	 { (char *)"msIO_getStdoutBufferString", _wrap_msIO_getStdoutBufferString, METH_VARARGS, NULL},
-	 { (char *)"msIO_getStdoutBufferBytes", _wrap_msIO_getStdoutBufferBytes, METH_VARARGS, NULL},
-	 { NULL, NULL, 0, NULL }
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
-
-static void *_p_intarrayTo_p_int(void *x, int *SWIGUNUSEDPARM(newmemory)) {
-    return (void *)((int *)  ((intarray *) x));
-}
-static swig_type_info _swigt__p_DBFFieldType = {"_p_DBFFieldType", "enum DBFFieldType *|DBFFieldType *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_DBFInfo = {"_p_DBFInfo", "DBFInfo *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_cgiRequestObj = {"_p_cgiRequestObj", "cgiRequestObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_classObj = {"_p_classObj", "classObj *|struct classObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_clusterObj = {"_p_clusterObj", "clusterObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_colorObj = {"_p_colorObj", "colorObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_debugLevel = {"_p_debugLevel", "enum debugLevel *|debugLevel *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_errorObj = {"_p_errorObj", "struct errorObj *|errorObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_fontSetObj = {"_p_fontSetObj", "fontSetObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_hashTableObj = {"_p_hashTableObj", "hashTableObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_imageObj = {"_p_imageObj", "imageObj *|struct imageObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *|ms_int32 *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_intarray = {"_p_intarray", "intarray *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelCacheMemberObj = {"_p_labelCacheMemberObj", "labelCacheMemberObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelCacheObj = {"_p_labelCacheObj", "labelCacheObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelCacheSlotObj = {"_p_labelCacheSlotObj", "labelCacheSlotObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelLeaderObj = {"_p_labelLeaderObj", "labelLeaderObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelObj = {"_p_labelObj", "struct labelObj *|labelObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_labelStyleObj = {"_p_labelStyleObj", "labelStyleObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_layerObj = {"_p_layerObj", "struct layerObj *|layerObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_legendObj = {"_p_legendObj", "legendObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_lineObj = {"_p_lineObj", "lineObj *|multipointObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_mapObj = {"_p_mapObj", "struct mapObj *|mapObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_markerCacheMemberObj = {"_p_markerCacheMemberObj", "markerCacheMemberObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_outputFormatObj = {"_p_outputFormatObj", "outputFormatObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pointObj = {"_p_pointObj", "pointObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_projectionObj = {"_p_projectionObj", "projectionObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_queryMapObj = {"_p_queryMapObj", "queryMapObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_rectObj = {"_p_rectObj", "rectObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_referenceMapObj = {"_p_referenceMapObj", "referenceMapObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_rendererVTableObj = {"_p_rendererVTableObj", "struct rendererVTableObj *|rendererVTableObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_resultCacheObj = {"_p_resultCacheObj", "resultCacheObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_resultObj = {"_p_resultObj", "resultObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_scaleTokenEntryObj = {"_p_scaleTokenEntryObj", "scaleTokenEntryObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_scaleTokenObj = {"_p_scaleTokenObj", "scaleTokenObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_scalebarObj = {"_p_scalebarObj", "scalebarObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_shapeObj = {"_p_shapeObj", "shapeObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_shapefileObj = {"_p_shapefileObj", "shapefileObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_strokeStyleObj = {"_p_strokeStyleObj", "strokeStyleObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_styleObj = {"_p_styleObj", "struct styleObj *|styleObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_symbolObj = {"_p_symbolObj", "symbolObj *|struct symbolObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_symbolSetObj = {"_p_symbolSetObj", "symbolSetObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_symbolStyleObj = {"_p_symbolStyleObj", "symbolStyleObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_tileCacheObj = {"_p_tileCacheObj", "struct tileCacheObj *|tileCacheObj *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *|ms_uint32 *|ms_bitarray", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_webObj = {"_p_webObj", "webObj *", 0, 0, (void*)0, 0};
-
-static swig_type_info *swig_type_initial[] = {
-  &_swigt__p_DBFFieldType,
-  &_swigt__p_DBFInfo,
-  &_swigt__p_FILE,
-  &_swigt__p_cgiRequestObj,
-  &_swigt__p_char,
-  &_swigt__p_classObj,
-  &_swigt__p_clusterObj,
-  &_swigt__p_colorObj,
-  &_swigt__p_debugLevel,
-  &_swigt__p_double,
-  &_swigt__p_errorObj,
-  &_swigt__p_fontSetObj,
-  &_swigt__p_hashTableObj,
-  &_swigt__p_imageObj,
-  &_swigt__p_int,
-  &_swigt__p_int32_t,
-  &_swigt__p_intarray,
-  &_swigt__p_labelCacheMemberObj,
-  &_swigt__p_labelCacheObj,
-  &_swigt__p_labelCacheSlotObj,
-  &_swigt__p_labelLeaderObj,
-  &_swigt__p_labelObj,
-  &_swigt__p_labelStyleObj,
-  &_swigt__p_layerObj,
-  &_swigt__p_legendObj,
-  &_swigt__p_lineObj,
-  &_swigt__p_mapObj,
-  &_swigt__p_markerCacheMemberObj,
-  &_swigt__p_outputFormatObj,
-  &_swigt__p_p_char,
-  &_swigt__p_pointObj,
-  &_swigt__p_projectionObj,
-  &_swigt__p_queryMapObj,
-  &_swigt__p_rectObj,
-  &_swigt__p_referenceMapObj,
-  &_swigt__p_rendererVTableObj,
-  &_swigt__p_resultCacheObj,
-  &_swigt__p_resultObj,
-  &_swigt__p_scaleTokenEntryObj,
-  &_swigt__p_scaleTokenObj,
-  &_swigt__p_scalebarObj,
-  &_swigt__p_shapeObj,
-  &_swigt__p_shapefileObj,
-  &_swigt__p_strokeStyleObj,
-  &_swigt__p_styleObj,
-  &_swigt__p_symbolObj,
-  &_swigt__p_symbolSetObj,
-  &_swigt__p_symbolStyleObj,
-  &_swigt__p_tileCacheObj,
-  &_swigt__p_uint32_t,
-  &_swigt__p_void,
-  &_swigt__p_webObj,
-};
-
-static swig_cast_info _swigc__p_DBFFieldType[] = {  {&_swigt__p_DBFFieldType, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_DBFInfo[] = {  {&_swigt__p_DBFInfo, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_cgiRequestObj[] = {  {&_swigt__p_cgiRequestObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_classObj[] = {  {&_swigt__p_classObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_clusterObj[] = {  {&_swigt__p_clusterObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_colorObj[] = {  {&_swigt__p_colorObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_debugLevel[] = {  {&_swigt__p_debugLevel, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_errorObj[] = {  {&_swigt__p_errorObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_fontSetObj[] = {  {&_swigt__p_fontSetObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_hashTableObj[] = {  {&_swigt__p_hashTableObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_imageObj[] = {  {&_swigt__p_imageObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},  {&_swigt__p_intarray, _p_intarrayTo_p_int, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_int32_t[] = {  {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_intarray[] = {  {&_swigt__p_intarray, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheMemberObj[] = {  {&_swigt__p_labelCacheMemberObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheObj[] = {  {&_swigt__p_labelCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelCacheSlotObj[] = {  {&_swigt__p_labelCacheSlotObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelLeaderObj[] = {  {&_swigt__p_labelLeaderObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelObj[] = {  {&_swigt__p_labelObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_labelStyleObj[] = {  {&_swigt__p_labelStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_layerObj[] = {  {&_swigt__p_layerObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_legendObj[] = {  {&_swigt__p_legendObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_lineObj[] = {  {&_swigt__p_lineObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_mapObj[] = {  {&_swigt__p_mapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_markerCacheMemberObj[] = {  {&_swigt__p_markerCacheMemberObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_outputFormatObj[] = {  {&_swigt__p_outputFormatObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_pointObj[] = {  {&_swigt__p_pointObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_projectionObj[] = {  {&_swigt__p_projectionObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_queryMapObj[] = {  {&_swigt__p_queryMapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_rectObj[] = {  {&_swigt__p_rectObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_referenceMapObj[] = {  {&_swigt__p_referenceMapObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_rendererVTableObj[] = {  {&_swigt__p_rendererVTableObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_resultCacheObj[] = {  {&_swigt__p_resultCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_resultObj[] = {  {&_swigt__p_resultObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scaleTokenEntryObj[] = {  {&_swigt__p_scaleTokenEntryObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scaleTokenObj[] = {  {&_swigt__p_scaleTokenObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_scalebarObj[] = {  {&_swigt__p_scalebarObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_shapeObj[] = {  {&_swigt__p_shapeObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_shapefileObj[] = {  {&_swigt__p_shapefileObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_strokeStyleObj[] = {  {&_swigt__p_strokeStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_styleObj[] = {  {&_swigt__p_styleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolObj[] = {  {&_swigt__p_symbolObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolSetObj[] = {  {&_swigt__p_symbolSetObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_symbolStyleObj[] = {  {&_swigt__p_symbolStyleObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_tileCacheObj[] = {  {&_swigt__p_tileCacheObj, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_uint32_t[] = {  {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_webObj[] = {  {&_swigt__p_webObj, 0, 0, 0},{0, 0, 0, 0}};
-
-static swig_cast_info *swig_cast_initial[] = {
-  _swigc__p_DBFFieldType,
-  _swigc__p_DBFInfo,
-  _swigc__p_FILE,
-  _swigc__p_cgiRequestObj,
-  _swigc__p_char,
-  _swigc__p_classObj,
-  _swigc__p_clusterObj,
-  _swigc__p_colorObj,
-  _swigc__p_debugLevel,
-  _swigc__p_double,
-  _swigc__p_errorObj,
-  _swigc__p_fontSetObj,
-  _swigc__p_hashTableObj,
-  _swigc__p_imageObj,
-  _swigc__p_int,
-  _swigc__p_int32_t,
-  _swigc__p_intarray,
-  _swigc__p_labelCacheMemberObj,
-  _swigc__p_labelCacheObj,
-  _swigc__p_labelCacheSlotObj,
-  _swigc__p_labelLeaderObj,
-  _swigc__p_labelObj,
-  _swigc__p_labelStyleObj,
-  _swigc__p_layerObj,
-  _swigc__p_legendObj,
-  _swigc__p_lineObj,
-  _swigc__p_mapObj,
-  _swigc__p_markerCacheMemberObj,
-  _swigc__p_outputFormatObj,
-  _swigc__p_p_char,
-  _swigc__p_pointObj,
-  _swigc__p_projectionObj,
-  _swigc__p_queryMapObj,
-  _swigc__p_rectObj,
-  _swigc__p_referenceMapObj,
-  _swigc__p_rendererVTableObj,
-  _swigc__p_resultCacheObj,
-  _swigc__p_resultObj,
-  _swigc__p_scaleTokenEntryObj,
-  _swigc__p_scaleTokenObj,
-  _swigc__p_scalebarObj,
-  _swigc__p_shapeObj,
-  _swigc__p_shapefileObj,
-  _swigc__p_strokeStyleObj,
-  _swigc__p_styleObj,
-  _swigc__p_symbolObj,
-  _swigc__p_symbolSetObj,
-  _swigc__p_symbolStyleObj,
-  _swigc__p_tileCacheObj,
-  _swigc__p_uint32_t,
-  _swigc__p_void,
-  _swigc__p_webObj,
-};
-
-
-/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
-
-static swig_const_info swig_const_table[] = {
-{0, 0, 0, 0.0, 0, 0}};
-
-#ifdef __cplusplus
-}
-#endif
-/* -----------------------------------------------------------------------------
- * Type initialization:
- * This problem is tough by the requirement that no dynamic 
- * memory is used. Also, since swig_type_info structures store pointers to 
- * swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization. 
- * The idea is that swig generates all the structures that are needed. 
- * The runtime then collects these partially filled structures. 
- * The SWIG_InitializeModule function takes these initial arrays out of 
- * swig_module, and does all the lookup, filling in the swig_module.types
- * array with the correct data and linking the correct swig_cast_info
- * structures together.
- *
- * The generated swig_type_info structures are assigned staticly to an initial 
- * array. We just loop through that array, and handle each type individually.
- * First we lookup if this type has been already loaded, and if so, use the
- * loaded structure instead of the generated one. Then we have to fill in the
- * cast linked list. The cast data is initially stored in something like a
- * two-dimensional array. Each row corresponds to a type (there are the same
- * number of rows as there are in the swig_type_initial array). Each entry in
- * a column is one of the swig_cast_info structures for that type.
- * The cast_initial array is actually an array of arrays, because each row has
- * a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it 
- * adding the casts to the list. The one last trick we need to do is making
- * sure the type pointer in the swig_cast_info struct is correct.
- *
- * First off, we lookup the cast->type name to see if it is already loaded. 
- * There are three cases to handle:
- *  1) If the cast->type has already been loaded AND the type we are adding
- *     casting info to has not been loaded (it is in this module), THEN we
- *     replace the cast->type pointer with the type pointer that has already
- *     been loaded.
- *  2) If BOTH types (the one we are adding casting info to, and the 
- *     cast->type) are loaded, THEN the cast info has already been loaded by
- *     the previous module so we just ignore it.
- *  3) Finally, if cast->type has not already been loaded, then we add that
- *     swig_cast_info to the linked list (because the cast->type) pointer will
- *     be correct.
- * ----------------------------------------------------------------------------- */
-
-#ifdef __cplusplus
-extern "C" {
-#if 0
-} /* c-mode */
-#endif
-#endif
-
-#if 0
-#define SWIGRUNTIME_DEBUG
-#endif
-
-
-SWIGRUNTIME void
-SWIG_InitializeModule(void *clientdata) {
-  size_t i;
-  swig_module_info *module_head, *iter;
-  int found, init;
-  
-  clientdata = clientdata;
-  
-  /* check to see if the circular list has been setup, if not, set it up */
-  if (swig_module.next==0) {
-    /* Initialize the swig_module */
-    swig_module.type_initial = swig_type_initial;
-    swig_module.cast_initial = swig_cast_initial;
-    swig_module.next = &swig_module;
-    init = 1;
-  } else {
-    init = 0;
-  }
-  
-  /* Try and load any already created modules */
-  module_head = SWIG_GetModule(clientdata);
-  if (!module_head) {
-    /* This is the first module loaded for this interpreter */
-    /* so set the swig module into the interpreter */
-    SWIG_SetModule(clientdata, &swig_module);
-    module_head = &swig_module;
-  } else {
-    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
-    found=0;
-    iter=module_head;
-    do {
-      if (iter==&swig_module) {
-        found=1;
-        break;
-      }
-      iter=iter->next;
-    } while (iter!= module_head);
-    
-    /* if the is found in the list, then all is done and we may leave */
-    if (found) return;
-    /* otherwise we must add out module into the list */
-    swig_module.next = module_head->next;
-    module_head->next = &swig_module;
-  }
-  
-  /* When multiple interpeters are used, a module could have already been initialized in
-       a different interpreter, but not yet have a pointer in this interpreter.
-       In this case, we do not want to continue adding types... everything should be
-       set up already */
-  if (init == 0) return;
-  
-  /* Now work on filling in swig_module.types */
-#ifdef SWIGRUNTIME_DEBUG
-  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
-#endif
-  for (i = 0; i < swig_module.size; ++i) {
-    swig_type_info *type = 0;
-    swig_type_info *ret;
-    swig_cast_info *cast;
-    
-#ifdef SWIGRUNTIME_DEBUG
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-#endif
-    
-    /* if there is another module already loaded */
-    if (swig_module.next != &swig_module) {
-      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
-    }
-    if (type) {
-      /* Overwrite clientdata field */
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: found type %s\n", type->name);
-#endif
-      if (swig_module.type_initial[i]->clientdata) {
-        type->clientdata = swig_module.type_initial[i]->clientdata;
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
-#endif
-      }
-    } else {
-      type = swig_module.type_initial[i];
-    }
-    
-    /* Insert casting types */
-    cast = swig_module.cast_initial[i];
-    while (cast->type) {
-      /* Don't need to add information already in the list */
-      ret = 0;
-#ifdef SWIGRUNTIME_DEBUG
-      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
-#endif
-      if (swig_module.next != &swig_module) {
-        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
-#ifdef SWIGRUNTIME_DEBUG
-        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
-#endif
-      }
-      if (ret) {
-        if (type == swig_module.type_initial[i]) {
-#ifdef SWIGRUNTIME_DEBUG
-          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
-#endif
-          cast->type = ret;
-          ret = 0;
-        } else {
-          /* Check for casting already in the list */
-          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
-#ifdef SWIGRUNTIME_DEBUG
-          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
-#endif
-          if (!ocast) ret = 0;
-        }
-      }
-      
-      if (!ret) {
-#ifdef SWIGRUNTIME_DEBUG
-        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
-#endif
-        if (type->cast) {
-          type->cast->prev = cast;
-          cast->next = type->cast;
-        }
-        type->cast = cast;
-      }
-      cast++;
-    }
-    /* Set entry in modules->types array equal to the type */
-    swig_module.types[i] = type;
-  }
-  swig_module.types[i] = 0;
-  
-#ifdef SWIGRUNTIME_DEBUG
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-  for (i = 0; i < swig_module.size; ++i) {
-    int j = 0;
-    swig_cast_info *cast = swig_module.cast_initial[i];
-    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
-    while (cast->type) {
-      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
-      cast++;
-      ++j;
-    }
-    printf("---- Total casts: %d\n",j);
-  }
-  printf("**** SWIG_InitializeModule: Cast List ******\n");
-#endif
-}
-
-/* This function will propagate the clientdata field of type to
-* any new swig_type_info structures that have been added into the list
-* of equivalent types.  It is like calling
-* SWIG_TypeClientData(type, clientdata) a second time.
-*/
-SWIGRUNTIME void
-SWIG_PropagateClientData(void) {
-  size_t i;
-  swig_cast_info *equiv;
-  static int init_run = 0;
-  
-  if (init_run) return;
-  init_run = 1;
-  
-  for (i = 0; i < swig_module.size; i++) {
-    if (swig_module.types[i]->clientdata) {
-      equiv = swig_module.types[i]->cast;
-      while (equiv) {
-        if (!equiv->converter) {
-          if (equiv->type && !equiv->type->clientdata)
-          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
-        }
-        equiv = equiv->next;
-      }
-    }
-  }
-}
-
-#ifdef __cplusplus
-#if 0
-{
-  /* c-mode */
-#endif
-}
-#endif
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-  
-  /* Python-specific SWIG API */
-#define SWIG_newvarlink()                             SWIG_Python_newvarlink()
-#define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
-#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
-  
-  /* -----------------------------------------------------------------------------
-   * global variable support code.
-   * ----------------------------------------------------------------------------- */
-  
-  typedef struct swig_globalvar {
-    char       *name;                  /* Name of global variable */
-    PyObject *(*get_attr)(void);       /* Return the current value */
-    int       (*set_attr)(PyObject *); /* Set the value */
-    struct swig_globalvar *next;
-  } swig_globalvar;
-  
-  typedef struct swig_varlinkobject {
-    PyObject_HEAD
-    swig_globalvar *vars;
-  } swig_varlinkobject;
-  
-  SWIGINTERN PyObject *
-  swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
-#if PY_VERSION_HEX >= 0x03000000
-    return PyUnicode_InternFromString("<Swig global variables>");
-#else
-    return PyString_FromString("<Swig global variables>");
-#endif
-  }
-  
-  SWIGINTERN PyObject *
-  swig_varlink_str(swig_varlinkobject *v) {
-#if PY_VERSION_HEX >= 0x03000000
-    PyObject *str = PyUnicode_InternFromString("(");
-    PyObject *tail;
-    PyObject *joined;
-    swig_globalvar *var;
-    for (var = v->vars; var; var=var->next) {
-      tail = PyUnicode_FromString(var->name);
-      joined = PyUnicode_Concat(str, tail);
-      Py_DecRef(str);
-      Py_DecRef(tail);
-      str = joined;
-      if (var->next) {
-        tail = PyUnicode_InternFromString(", ");
-        joined = PyUnicode_Concat(str, tail);
-        Py_DecRef(str);
-        Py_DecRef(tail);
-        str = joined;
-      }
-    }
-    tail = PyUnicode_InternFromString(")");
-    joined = PyUnicode_Concat(str, tail);
-    Py_DecRef(str);
-    Py_DecRef(tail);
-    str = joined;
-#else
-    PyObject *str = PyString_FromString("(");
-    swig_globalvar *var;
-    for (var = v->vars; var; var=var->next) {
-      PyString_ConcatAndDel(&str,PyString_FromString(var->name));
-      if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
-    }
-    PyString_ConcatAndDel(&str,PyString_FromString(")"));
-#endif
-    return str;
-  }
-  
-  SWIGINTERN int
-  swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
-    char *tmp;
-    PyObject *str = swig_varlink_str(v);
-    fprintf(fp,"Swig global variables ");
-    fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
-    SWIG_Python_str_DelForPy3(tmp);
-    Py_DECREF(str);
-    return 0;
-  }
-  
-  SWIGINTERN void
-  swig_varlink_dealloc(swig_varlinkobject *v) {
-    swig_globalvar *var = v->vars;
-    while (var) {
-      swig_globalvar *n = var->next;
-      free(var->name);
-      free(var);
-      var = n;
-    }
-  }
-  
-  SWIGINTERN PyObject *
-  swig_varlink_getattr(swig_varlinkobject *v, char *n) {
-    PyObject *res = NULL;
-    swig_globalvar *var = v->vars;
-    while (var) {
-      if (strcmp(var->name,n) == 0) {
-        res = (*var->get_attr)();
-        break;
-      }
-      var = var->next;
-    }
-    if (res == NULL && !PyErr_Occurred()) {
-      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-    }
-    return res;
-  }
-  
-  SWIGINTERN int
-  swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
-    int res = 1;
-    swig_globalvar *var = v->vars;
-    while (var) {
-      if (strcmp(var->name,n) == 0) {
-        res = (*var->set_attr)(p);
-        break;
-      }
-      var = var->next;
-    }
-    if (res == 1 && !PyErr_Occurred()) {
-      PyErr_SetString(PyExc_NameError,"Unknown C global variable");
-    }
-    return res;
-  }
-  
-  SWIGINTERN PyTypeObject*
-  swig_varlink_type(void) {
-    static char varlink__doc__[] = "Swig var link object";
-    static PyTypeObject varlink_type;
-    static int type_init = 0;
-    if (!type_init) {
-      const PyTypeObject tmp = {
-        /* PyObject header changed in Python 3 */
-#if PY_VERSION_HEX >= 0x03000000
-        PyVarObject_HEAD_INIT(NULL, 0)
-#else
-        PyObject_HEAD_INIT(NULL)
-        0,                                  /* ob_size */
-#endif
-        (char *)"swigvarlink",              /* tp_name */
-        sizeof(swig_varlinkobject),         /* tp_basicsize */
-        0,                                  /* tp_itemsize */
-        (destructor) swig_varlink_dealloc,  /* tp_dealloc */
-        (printfunc) swig_varlink_print,     /* tp_print */
-        (getattrfunc) swig_varlink_getattr, /* tp_getattr */
-        (setattrfunc) swig_varlink_setattr, /* tp_setattr */
-        0,                                  /* tp_compare */
-        (reprfunc) swig_varlink_repr,       /* tp_repr */
-        0,                                  /* tp_as_number */
-        0,                                  /* tp_as_sequence */
-        0,                                  /* tp_as_mapping */
-        0,                                  /* tp_hash */
-        0,                                  /* tp_call */
-        (reprfunc) swig_varlink_str,        /* tp_str */
-        0,                                  /* tp_getattro */
-        0,                                  /* tp_setattro */
-        0,                                  /* tp_as_buffer */
-        0,                                  /* tp_flags */
-        varlink__doc__,                     /* tp_doc */
-        0,                                  /* tp_traverse */
-        0,                                  /* tp_clear */
-        0,                                  /* tp_richcompare */
-        0,                                  /* tp_weaklistoffset */
-#if PY_VERSION_HEX >= 0x02020000
-        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
-#endif
-#if PY_VERSION_HEX >= 0x02030000
-        0,                                  /* tp_del */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
-        0,                                  /* tp_version */
-#endif
-#ifdef COUNT_ALLOCS
-        0,0,0,0                             /* tp_alloc -> tp_next */
-#endif
-      };
-      varlink_type = tmp;
-      type_init = 1;
-#if PY_VERSION_HEX < 0x02020000
-      varlink_type.ob_type = &PyType_Type;
-#else
-      if (PyType_Ready(&varlink_type) < 0)
-      return NULL;
-#endif
-    }
-    return &varlink_type;
-  }
-  
-  /* Create a variable linking object for use later */
-  SWIGINTERN PyObject *
-  SWIG_Python_newvarlink(void) {
-    swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
-    if (result) {
-      result->vars = 0;
-    }
-    return ((PyObject*) result);
-  }
-  
-  SWIGINTERN void 
-  SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
-    swig_varlinkobject *v = (swig_varlinkobject *) p;
-    swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
-    if (gv) {
-      size_t size = strlen(name)+1;
-      gv->name = (char *)malloc(size);
-      if (gv->name) {
-        strncpy(gv->name,name,size);
-        gv->get_attr = get_attr;
-        gv->set_attr = set_attr;
-        gv->next = v->vars;
-      }
-    }
-    v->vars = gv;
-  }
-  
-  SWIGINTERN PyObject *
-  SWIG_globals(void) {
-    static PyObject *_SWIG_globals = 0; 
-    if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();  
-    return _SWIG_globals;
-  }
-  
-  /* -----------------------------------------------------------------------------
-   * constants/methods manipulation
-   * ----------------------------------------------------------------------------- */
-  
-  /* Install Constants */
-  SWIGINTERN void
-  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
-    PyObject *obj = 0;
-    size_t i;
-    for (i = 0; constants[i].type; ++i) {
-      switch(constants[i].type) {
-      case SWIG_PY_POINTER:
-        obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
-        break;
-      case SWIG_PY_BINARY:
-        obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
-        break;
-      default:
-        obj = 0;
-        break;
-      }
-      if (obj) {
-        PyDict_SetItemString(d, constants[i].name, obj);
-        Py_DECREF(obj);
-      }
-    }
-  }
-  
-  /* -----------------------------------------------------------------------------*/
-  /* Fix SwigMethods to carry the callback ptrs when needed */
-  /* -----------------------------------------------------------------------------*/
-  
-  SWIGINTERN void
-  SWIG_Python_FixMethods(PyMethodDef *methods,
-    swig_const_info *const_table,
-    swig_type_info **types,
-    swig_type_info **types_initial) {
-    size_t i;
-    for (i = 0; methods[i].ml_name; ++i) {
-      const char *c = methods[i].ml_doc;
-      if (c && (c = strstr(c, "swig_ptr: "))) {
-        int j;
-        swig_const_info *ci = 0;
-        const char *name = c + 10;
-        for (j = 0; const_table[j].type; ++j) {
-          if (strncmp(const_table[j].name, name, 
-              strlen(const_table[j].name)) == 0) {
-            ci = &(const_table[j]);
-            break;
-          }
-        }
-        if (ci) {
-          void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
-          if (ptr) {
-            size_t shift = (ci->ptype) - types;
-            swig_type_info *ty = types_initial[shift];
-            size_t ldoc = (c - methods[i].ml_doc);
-            size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
-            char *ndoc = (char*)malloc(ldoc + lptr + 10);
-            if (ndoc) {
-              char *buff = ndoc;
-              strncpy(buff, methods[i].ml_doc, ldoc);
-              buff += ldoc;
-              strncpy(buff, "swig_ptr: ", 10);
-              buff += 10;
-              SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
-              methods[i].ml_doc = ndoc;
-            }
-          }
-        }
-      }
-    }
-  } 
-  
-#ifdef __cplusplus
-}
-#endif
-
-/* -----------------------------------------------------------------------------*
- *  Partial Init method
- * -----------------------------------------------------------------------------*/
-
-#ifdef __cplusplus
-extern "C"
-#endif
-
-SWIGEXPORT 
-#if PY_VERSION_HEX >= 0x03000000
-PyObject*
-#else
-void
-#endif
-SWIG_init(void) {
-  PyObject *m, *d, *md;
-#if PY_VERSION_HEX >= 0x03000000
-  static struct PyModuleDef SWIG_module = {
-# if PY_VERSION_HEX >= 0x03020000
-    PyModuleDef_HEAD_INIT,
-# else
-    {
-      PyObject_HEAD_INIT(NULL)
-      NULL, /* m_init */
-      0,    /* m_index */
-      NULL, /* m_copy */
-    },
-# endif
-    (char *) SWIG_name,
-    NULL,
-    -1,
-    SwigMethods,
-    NULL,
-    NULL,
-    NULL,
-    NULL
-  };
-#endif
-  
-#if defined(SWIGPYTHON_BUILTIN)
-  static SwigPyClientData SwigPyObject_clientdata = {
-    0, 0, 0, 0, 0, 0, 0
-  };
-  static PyGetSetDef this_getset_def = {
-    (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
-  };
-  static SwigPyGetSet thisown_getset_closure = {
-    (PyCFunction) SwigPyObject_own,
-    (PyCFunction) SwigPyObject_own
-  };
-  static PyGetSetDef thisown_getset_def = {
-    (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
-  };
-  PyObject *metatype_args;
-  PyTypeObject *builtin_pytype;
-  int builtin_base_count;
-  swig_type_info *builtin_basetype;
-  PyObject *tuple;
-  PyGetSetDescrObject *static_getset;
-  PyTypeObject *metatype;
-  SwigPyClientData *cd;
-  PyObject *public_interface, *public_symbol;
-  PyObject *this_descr;
-  PyObject *thisown_descr;
-  int i;
-  
-  (void)builtin_pytype;
-  (void)builtin_base_count;
-  (void)builtin_basetype;
-  (void)tuple;
-  (void)static_getset;
-  
-  /* metatype is used to implement static member variables. */
-  metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
-  assert(metatype_args);
-  metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
-  assert(metatype);
-  Py_DECREF(metatype_args);
-  metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
-  assert(PyType_Ready(metatype) >= 0);
-#endif
-  
-  /* Fix SwigMethods to carry the callback ptrs when needed */
-  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
-  
-#if PY_VERSION_HEX >= 0x03000000
-  m = PyModule_Create(&SWIG_module);
-#else
-  m = Py_InitModule((char *) SWIG_name, SwigMethods);
-#endif
-  md = d = PyModule_GetDict(m);
-  
-  SWIG_InitializeModule(0);
-  
-#ifdef SWIGPYTHON_BUILTIN
-  SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
-  assert(SwigPyObject_stype);
-  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
-  if (!cd) {
-    SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
-    SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
-  } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
-    PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
-# if PY_VERSION_HEX >= 0x03000000
-    return NULL;
-# else
-    return;
-# endif
-  }
-  
-  /* All objects have a 'this' attribute */
-  this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
-  (void)this_descr;
-  
-  /* All objects have a 'thisown' attribute */
-  thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
-  (void)thisown_descr;
-  
-  public_interface = PyList_New(0);
-  public_symbol = 0;
-  (void)public_symbol;
-  
-  PyDict_SetItemString(md, "__all__", public_interface);
-  Py_DECREF(public_interface);
-  for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
-  SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
-  for (i = 0; swig_const_table[i].name != 0; ++i)
-  SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
-#endif
-  
-  SWIG_InstallConstants(d,swig_const_table);
-  
-  
-  
-  /* See bug 1203 for discussion of race condition with GD font cache */
-  if (msSetup() != MS_SUCCESS)
-  {
-    msSetError(MS_MISCERR, "Failed to set up threads and font cache",
-      "msSetup()");
-  }
-  
-  Py_AtExit(msCleanup);
-  
-  /* Define Generic MapServer error */
-  MSExc_MapServerError=PyErr_NewException("_mapscript.MapServerError",NULL,NULL);
-  if (MSExc_MapServerError != NULL)
-  PyDict_SetItemString(d, "MapServerError", MSExc_MapServerError);
-  
-  /* Define MapServer MS_CHILD error */
-  MSExc_MapServerChildError = PyErr_NewException("_mapscript.MapServerChildError", NULL, NULL);
-  if (MSExc_MapServerChildError != NULL)
-  PyDict_SetItemString(d, "MapServerChildError", MSExc_MapServerChildError);
-  
-  
-  SWIG_Python_SetConstant(d, "MS_TRUE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_FALSE",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MS_UNKNOWN",SWIG_From_int((int)(-1)));
-  SWIG_Python_SetConstant(d, "MS_ON",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_OFF",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MS_DEFAULT",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_EMBED",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MS_DELETE",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "MS_YES",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_NO",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MS_GD_ALPHA",SWIG_From_int((int)(1000)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_ALLOCSIZE",SWIG_From_int((int)(64)));
-  SWIG_Python_SetConstant(d, "MS_CLASS_ALLOCSIZE",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_ALLOCSIZE",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_ALLOCSIZE",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_MAX_LABEL_PRIORITY",SWIG_From_int((int)(10)));
-  SWIG_Python_SetConstant(d, "MS_MAX_LABEL_FONTS",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "MS_DEFAULT_LABEL_PRIORITY",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_FORCE_GROUP",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_SWF",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_RAWDATA",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_IMAGEMAP",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_TEMPLATE",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_OGR",SWIG_From_int((int)(16)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_PLUGIN",SWIG_From_int((int)(100)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_CAIRO_RASTER",SWIG_From_int((int)(101)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_CAIRO_PDF",SWIG_From_int((int)(102)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_CAIRO_SVG",SWIG_From_int((int)(103)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_OGL",SWIG_From_int((int)(104)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_AGG",SWIG_From_int((int)(105)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_GD",SWIG_From_int((int)(106)));
-  SWIG_Python_SetConstant(d, "MS_RENDER_WITH_KML",SWIG_From_int((int)(107)));
-  SWIG_Python_SetConstant(d, "MS_FILE_MAP",SWIG_From_int((int)(MS_FILE_MAP)));
-  SWIG_Python_SetConstant(d, "MS_FILE_SYMBOL",SWIG_From_int((int)(MS_FILE_SYMBOL)));
-  SWIG_Python_SetConstant(d, "MS_INCHES",SWIG_From_int((int)(MS_INCHES)));
-  SWIG_Python_SetConstant(d, "MS_FEET",SWIG_From_int((int)(MS_FEET)));
-  SWIG_Python_SetConstant(d, "MS_MILES",SWIG_From_int((int)(MS_MILES)));
-  SWIG_Python_SetConstant(d, "MS_METERS",SWIG_From_int((int)(MS_METERS)));
-  SWIG_Python_SetConstant(d, "MS_KILOMETERS",SWIG_From_int((int)(MS_KILOMETERS)));
-  SWIG_Python_SetConstant(d, "MS_DD",SWIG_From_int((int)(MS_DD)));
-  SWIG_Python_SetConstant(d, "MS_PIXELS",SWIG_From_int((int)(MS_PIXELS)));
-  SWIG_Python_SetConstant(d, "MS_PERCENTAGES",SWIG_From_int((int)(MS_PERCENTAGES)));
-  SWIG_Python_SetConstant(d, "MS_NAUTICALMILES",SWIG_From_int((int)(MS_NAUTICALMILES)));
-  SWIG_Python_SetConstant(d, "MS_SHAPE_POINT",SWIG_From_int((int)(MS_SHAPE_POINT)));
-  SWIG_Python_SetConstant(d, "MS_SHAPE_LINE",SWIG_From_int((int)(MS_SHAPE_LINE)));
-  SWIG_Python_SetConstant(d, "MS_SHAPE_POLYGON",SWIG_From_int((int)(MS_SHAPE_POLYGON)));
-  SWIG_Python_SetConstant(d, "MS_SHAPE_NULL",SWIG_From_int((int)(MS_SHAPE_NULL)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_POINT",SWIG_From_int((int)(MS_LAYER_POINT)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_LINE",SWIG_From_int((int)(MS_LAYER_LINE)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_POLYGON",SWIG_From_int((int)(MS_LAYER_POLYGON)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_RASTER",SWIG_From_int((int)(MS_LAYER_RASTER)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_ANNOTATION",SWIG_From_int((int)(MS_LAYER_ANNOTATION)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_QUERY",SWIG_From_int((int)(MS_LAYER_QUERY)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_CIRCLE",SWIG_From_int((int)(MS_LAYER_CIRCLE)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_TILEINDEX",SWIG_From_int((int)(MS_LAYER_TILEINDEX)));
-  SWIG_Python_SetConstant(d, "MS_LAYER_CHART",SWIG_From_int((int)(MS_LAYER_CHART)));
-  SWIG_Python_SetConstant(d, "MS_TRUETYPE",SWIG_From_int((int)(MS_TRUETYPE)));
-  SWIG_Python_SetConstant(d, "MS_BITMAP",SWIG_From_int((int)(MS_BITMAP)));
-  SWIG_Python_SetConstant(d, "MS_POSITIONS_LENGTH",SWIG_From_int((int)(14)));
-  SWIG_Python_SetConstant(d, "MS_UL",SWIG_From_int((int)(MS_UL)));
-  SWIG_Python_SetConstant(d, "MS_LR",SWIG_From_int((int)(MS_LR)));
-  SWIG_Python_SetConstant(d, "MS_UR",SWIG_From_int((int)(MS_UR)));
-  SWIG_Python_SetConstant(d, "MS_LL",SWIG_From_int((int)(MS_LL)));
-  SWIG_Python_SetConstant(d, "MS_CR",SWIG_From_int((int)(MS_CR)));
-  SWIG_Python_SetConstant(d, "MS_CL",SWIG_From_int((int)(MS_CL)));
-  SWIG_Python_SetConstant(d, "MS_UC",SWIG_From_int((int)(MS_UC)));
-  SWIG_Python_SetConstant(d, "MS_LC",SWIG_From_int((int)(MS_LC)));
-  SWIG_Python_SetConstant(d, "MS_CC",SWIG_From_int((int)(MS_CC)));
-  SWIG_Python_SetConstant(d, "MS_AUTO",SWIG_From_int((int)(MS_AUTO)));
-  SWIG_Python_SetConstant(d, "MS_XY",SWIG_From_int((int)(MS_XY)));
-  SWIG_Python_SetConstant(d, "MS_FOLLOW",SWIG_From_int((int)(MS_FOLLOW)));
-  SWIG_Python_SetConstant(d, "MS_NONE",SWIG_From_int((int)(MS_NONE)));
-  SWIG_Python_SetConstant(d, "MS_AUTO2",SWIG_From_int((int)(MS_AUTO2)));
-  SWIG_Python_SetConstant(d, "MS_TINY",SWIG_From_int((int)(MS_TINY)));
-  SWIG_Python_SetConstant(d, "MS_SMALL",SWIG_From_int((int)(MS_SMALL)));
-  SWIG_Python_SetConstant(d, "MS_MEDIUM",SWIG_From_int((int)(MS_MEDIUM)));
-  SWIG_Python_SetConstant(d, "MS_LARGE",SWIG_From_int((int)(MS_LARGE)));
-  SWIG_Python_SetConstant(d, "MS_GIANT",SWIG_From_int((int)(MS_GIANT)));
-  SWIG_Python_SetConstant(d, "MS_NORMAL",SWIG_From_int((int)(MS_NORMAL)));
-  SWIG_Python_SetConstant(d, "MS_HILITE",SWIG_From_int((int)(MS_HILITE)));
-  SWIG_Python_SetConstant(d, "MS_SELECTED",SWIG_From_int((int)(MS_SELECTED)));
-  SWIG_Python_SetConstant(d, "MS_INLINE",SWIG_From_int((int)(MS_INLINE)));
-  SWIG_Python_SetConstant(d, "MS_SHAPEFILE",SWIG_From_int((int)(MS_SHAPEFILE)));
-  SWIG_Python_SetConstant(d, "MS_TILED_SHAPEFILE",SWIG_From_int((int)(MS_TILED_SHAPEFILE)));
-  SWIG_Python_SetConstant(d, "MS_SDE",SWIG_From_int((int)(MS_SDE)));
-  SWIG_Python_SetConstant(d, "MS_OGR",SWIG_From_int((int)(MS_OGR)));
-  SWIG_Python_SetConstant(d, "MS_UNUSED_1",SWIG_From_int((int)(MS_UNUSED_1)));
-  SWIG_Python_SetConstant(d, "MS_POSTGIS",SWIG_From_int((int)(MS_POSTGIS)));
-  SWIG_Python_SetConstant(d, "MS_WMS",SWIG_From_int((int)(MS_WMS)));
-  SWIG_Python_SetConstant(d, "MS_ORACLESPATIAL",SWIG_From_int((int)(MS_ORACLESPATIAL)));
-  SWIG_Python_SetConstant(d, "MS_WFS",SWIG_From_int((int)(MS_WFS)));
-  SWIG_Python_SetConstant(d, "MS_GRATICULE",SWIG_From_int((int)(MS_GRATICULE)));
-  SWIG_Python_SetConstant(d, "MS_MYSQL",SWIG_From_int((int)(MS_MYSQL)));
-  SWIG_Python_SetConstant(d, "MS_RASTER",SWIG_From_int((int)(MS_RASTER)));
-  SWIG_Python_SetConstant(d, "MS_PLUGIN",SWIG_From_int((int)(MS_PLUGIN)));
-  SWIG_Python_SetConstant(d, "MS_UNION",SWIG_From_int((int)(MS_UNION)));
-  SWIG_Python_SetConstant(d, "MS_UVRASTER",SWIG_From_int((int)(MS_UVRASTER)));
-  SWIG_Python_SetConstant(d, "MS_CONTOUR",SWIG_From_int((int)(MS_CONTOUR)));
-  SWIG_Python_SetConstant(d, "MS_DB_XBASE",SWIG_From_int((int)(MS_DB_XBASE)));
-  SWIG_Python_SetConstant(d, "MS_DB_CSV",SWIG_From_int((int)(MS_DB_CSV)));
-  SWIG_Python_SetConstant(d, "MS_DB_MYSQL",SWIG_From_int((int)(MS_DB_MYSQL)));
-  SWIG_Python_SetConstant(d, "MS_DB_ORACLE",SWIG_From_int((int)(MS_DB_ORACLE)));
-  SWIG_Python_SetConstant(d, "MS_DB_POSTGRES",SWIG_From_int((int)(MS_DB_POSTGRES)));
-  SWIG_Python_SetConstant(d, "MS_JOIN_ONE_TO_ONE",SWIG_From_int((int)(MS_JOIN_ONE_TO_ONE)));
-  SWIG_Python_SetConstant(d, "MS_JOIN_ONE_TO_MANY",SWIG_From_int((int)(MS_JOIN_ONE_TO_MANY)));
-  SWIG_Python_SetConstant(d, "MS_SINGLE",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MS_MULTIPLE",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_SINGLE",SWIG_From_int((int)(MS_QUERY_SINGLE)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_MULTIPLE",SWIG_From_int((int)(MS_QUERY_MULTIPLE)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_IS_NULL",SWIG_From_int((int)(MS_QUERY_IS_NULL)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_POINT",SWIG_From_int((int)(MS_QUERY_BY_POINT)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_RECT",SWIG_From_int((int)(MS_QUERY_BY_RECT)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_SHAPE",SWIG_From_int((int)(MS_QUERY_BY_SHAPE)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_ATTRIBUTE",SWIG_From_int((int)(MS_QUERY_BY_ATTRIBUTE)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_INDEX",SWIG_From_int((int)(MS_QUERY_BY_INDEX)));
-  SWIG_Python_SetConstant(d, "MS_QUERY_BY_FILTER",SWIG_From_int((int)(MS_QUERY_BY_FILTER)));
-  SWIG_Python_SetConstant(d, "MS_ALIGN_LEFT",SWIG_From_int((int)(MS_ALIGN_LEFT)));
-  SWIG_Python_SetConstant(d, "MS_ALIGN_CENTER",SWIG_From_int((int)(MS_ALIGN_CENTER)));
-  SWIG_Python_SetConstant(d, "MS_ALIGN_RIGHT",SWIG_From_int((int)(MS_ALIGN_RIGHT)));
-  SWIG_Python_SetConstant(d, "MS_CJC_NONE",SWIG_From_int((int)(MS_CJC_NONE)));
-  SWIG_Python_SetConstant(d, "MS_CJC_BEVEL",SWIG_From_int((int)(MS_CJC_BEVEL)));
-  SWIG_Python_SetConstant(d, "MS_CJC_BUTT",SWIG_From_int((int)(MS_CJC_BUTT)));
-  SWIG_Python_SetConstant(d, "MS_CJC_MITER",SWIG_From_int((int)(MS_CJC_MITER)));
-  SWIG_Python_SetConstant(d, "MS_CJC_ROUND",SWIG_From_int((int)(MS_CJC_ROUND)));
-  SWIG_Python_SetConstant(d, "MS_CJC_SQUARE",SWIG_From_int((int)(MS_CJC_SQUARE)));
-  SWIG_Python_SetConstant(d, "MS_CJC_TRIANGLE",SWIG_From_int((int)(MS_CJC_TRIANGLE)));
-  SWIG_Python_SetConstant(d, "MS_CJC_DEFAULT_JOIN_MAXSIZE",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MS_SUCCESS",SWIG_From_int((int)(MS_SUCCESS)));
-  SWIG_Python_SetConstant(d, "MS_FAILURE",SWIG_From_int((int)(MS_FAILURE)));
-  SWIG_Python_SetConstant(d, "MS_DONE",SWIG_From_int((int)(MS_DONE)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_PC256",SWIG_From_int((int)(MS_IMAGEMODE_PC256)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_RGB",SWIG_From_int((int)(MS_IMAGEMODE_RGB)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_RGBA",SWIG_From_int((int)(MS_IMAGEMODE_RGBA)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_INT16",SWIG_From_int((int)(MS_IMAGEMODE_INT16)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_FLOAT32",SWIG_From_int((int)(MS_IMAGEMODE_FLOAT32)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_BYTE",SWIG_From_int((int)(MS_IMAGEMODE_BYTE)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_FEATURE",SWIG_From_int((int)(MS_IMAGEMODE_FEATURE)));
-  SWIG_Python_SetConstant(d, "MS_IMAGEMODE_NULL",SWIG_From_int((int)(MS_IMAGEMODE_NULL)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_EQUALS",SWIG_From_int((int)(MS_GEOS_EQUALS)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_DISJOINT",SWIG_From_int((int)(MS_GEOS_DISJOINT)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_TOUCHES",SWIG_From_int((int)(MS_GEOS_TOUCHES)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_OVERLAPS",SWIG_From_int((int)(MS_GEOS_OVERLAPS)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_CROSSES",SWIG_From_int((int)(MS_GEOS_CROSSES)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_INTERSECTS",SWIG_From_int((int)(MS_GEOS_INTERSECTS)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_WITHIN",SWIG_From_int((int)(MS_GEOS_WITHIN)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_CONTAINS",SWIG_From_int((int)(MS_GEOS_CONTAINS)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_BEYOND",SWIG_From_int((int)(MS_GEOS_BEYOND)));
-  SWIG_Python_SetConstant(d, "MS_GEOS_DWITHIN",SWIG_From_int((int)(MS_GEOS_DWITHIN)));
-  SWIG_Python_SetConstant(d, "MS_TRANSFORM_NONE",SWIG_From_int((int)(MS_TRANSFORM_NONE)));
-  SWIG_Python_SetConstant(d, "MS_TRANSFORM_ROUND",SWIG_From_int((int)(MS_TRANSFORM_ROUND)));
-  SWIG_Python_SetConstant(d, "MS_TRANSFORM_SNAPTOGRID",SWIG_From_int((int)(MS_TRANSFORM_SNAPTOGRID)));
-  SWIG_Python_SetConstant(d, "MS_TRANSFORM_FULLRESOLUTION",SWIG_From_int((int)(MS_TRANSFORM_FULLRESOLUTION)));
-  SWIG_Python_SetConstant(d, "MS_TRANSFORM_SIMPLIFY",SWIG_From_int((int)(MS_TRANSFORM_SIMPLIFY)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_LENGTH",SWIG_From_int((int)(12)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_SIZE",SWIG_From_int((int)(MS_STYLE_BINDING_SIZE)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_WIDTH",SWIG_From_int((int)(MS_STYLE_BINDING_WIDTH)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_ANGLE",SWIG_From_int((int)(MS_STYLE_BINDING_ANGLE)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_COLOR",SWIG_From_int((int)(MS_STYLE_BINDING_COLOR)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_OUTLINECOLOR",SWIG_From_int((int)(MS_STYLE_BINDING_OUTLINECOLOR)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_SYMBOL",SWIG_From_int((int)(MS_STYLE_BINDING_SYMBOL)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_OUTLINEWIDTH",SWIG_From_int((int)(MS_STYLE_BINDING_OUTLINEWIDTH)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_OPACITY",SWIG_From_int((int)(MS_STYLE_BINDING_OPACITY)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_OFFSET_X",SWIG_From_int((int)(MS_STYLE_BINDING_OFFSET_X)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_OFFSET_Y",SWIG_From_int((int)(MS_STYLE_BINDING_OFFSET_Y)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_POLAROFFSET_PIXEL",SWIG_From_int((int)(MS_STYLE_BINDING_POLAROFFSET_PIXEL)));
-  SWIG_Python_SetConstant(d, "MS_STYLE_BINDING_POLAROFFSET_ANGLE",SWIG_From_int((int)(MS_STYLE_BINDING_POLAROFFSET_ANGLE)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_LENGTH",SWIG_From_int((int)(9)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_SIZE",SWIG_From_int((int)(MS_LABEL_BINDING_SIZE)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_ANGLE",SWIG_From_int((int)(MS_LABEL_BINDING_ANGLE)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_COLOR",SWIG_From_int((int)(MS_LABEL_BINDING_COLOR)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_OUTLINECOLOR",SWIG_From_int((int)(MS_LABEL_BINDING_OUTLINECOLOR)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_FONT",SWIG_From_int((int)(MS_LABEL_BINDING_FONT)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_PRIORITY",SWIG_From_int((int)(MS_LABEL_BINDING_PRIORITY)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_POSITION",SWIG_From_int((int)(MS_LABEL_BINDING_POSITION)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_SHADOWSIZEX",SWIG_From_int((int)(MS_LABEL_BINDING_SHADOWSIZEX)));
-  SWIG_Python_SetConstant(d, "MS_LABEL_BINDING_SHADOWSIZEY",SWIG_From_int((int)(MS_LABEL_BINDING_SHADOWSIZEY)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LOGICAL_AND",SWIG_From_int((int)(MS_TOKEN_LOGICAL_AND)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LOGICAL_OR",SWIG_From_int((int)(MS_TOKEN_LOGICAL_OR)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LOGICAL_NOT",SWIG_From_int((int)(MS_TOKEN_LOGICAL_NOT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LITERAL_NUMBER",SWIG_From_int((int)(MS_TOKEN_LITERAL_NUMBER)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LITERAL_STRING",SWIG_From_int((int)(MS_TOKEN_LITERAL_STRING)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LITERAL_TIME",SWIG_From_int((int)(MS_TOKEN_LITERAL_TIME)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_LITERAL_SHAPE",SWIG_From_int((int)(MS_TOKEN_LITERAL_SHAPE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_EQ",SWIG_From_int((int)(MS_TOKEN_COMPARISON_EQ)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_NE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_NE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_GT",SWIG_From_int((int)(MS_TOKEN_COMPARISON_GT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_LT",SWIG_From_int((int)(MS_TOKEN_COMPARISON_LT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_LE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_LE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_GE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_GE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_IEQ",SWIG_From_int((int)(MS_TOKEN_COMPARISON_IEQ)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_RE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_RE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_IRE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_IRE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_IN",SWIG_From_int((int)(MS_TOKEN_COMPARISON_IN)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_LIKE",SWIG_From_int((int)(MS_TOKEN_COMPARISON_LIKE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_INTERSECTS",SWIG_From_int((int)(MS_TOKEN_COMPARISON_INTERSECTS)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_DISJOINT",SWIG_From_int((int)(MS_TOKEN_COMPARISON_DISJOINT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_TOUCHES",SWIG_From_int((int)(MS_TOKEN_COMPARISON_TOUCHES)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_OVERLAPS",SWIG_From_int((int)(MS_TOKEN_COMPARISON_OVERLAPS)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_CROSSES",SWIG_From_int((int)(MS_TOKEN_COMPARISON_CROSSES)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_WITHIN",SWIG_From_int((int)(MS_TOKEN_COMPARISON_WITHIN)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_CONTAINS",SWIG_From_int((int)(MS_TOKEN_COMPARISON_CONTAINS)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_BEYOND",SWIG_From_int((int)(MS_TOKEN_COMPARISON_BEYOND)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_COMPARISON_DWITHIN",SWIG_From_int((int)(MS_TOKEN_COMPARISON_DWITHIN)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_LENGTH",SWIG_From_int((int)(MS_TOKEN_FUNCTION_LENGTH)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_TOSTRING",SWIG_From_int((int)(MS_TOKEN_FUNCTION_TOSTRING)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_COMMIFY",SWIG_From_int((int)(MS_TOKEN_FUNCTION_COMMIFY)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_AREA",SWIG_From_int((int)(MS_TOKEN_FUNCTION_AREA)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_ROUND",SWIG_From_int((int)(MS_TOKEN_FUNCTION_ROUND)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_FROMTEXT",SWIG_From_int((int)(MS_TOKEN_FUNCTION_FROMTEXT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_BUFFER",SWIG_From_int((int)(MS_TOKEN_FUNCTION_BUFFER)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_DIFFERENCE",SWIG_From_int((int)(MS_TOKEN_FUNCTION_DIFFERENCE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_SIMPLIFY",SWIG_From_int((int)(MS_TOKEN_FUNCTION_SIMPLIFY)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_SIMPLIFYPT",SWIG_From_int((int)(MS_TOKEN_FUNCTION_SIMPLIFYPT)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_GENERALIZE",SWIG_From_int((int)(MS_TOKEN_FUNCTION_GENERALIZE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_FUNCTION_SMOOTHSIA",SWIG_From_int((int)(MS_TOKEN_FUNCTION_SMOOTHSIA)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_DOUBLE",SWIG_From_int((int)(MS_TOKEN_BINDING_DOUBLE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_INTEGER",SWIG_From_int((int)(MS_TOKEN_BINDING_INTEGER)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_STRING",SWIG_From_int((int)(MS_TOKEN_BINDING_STRING)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_TIME",SWIG_From_int((int)(MS_TOKEN_BINDING_TIME)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_SHAPE",SWIG_From_int((int)(MS_TOKEN_BINDING_SHAPE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_MAP_CELLSIZE",SWIG_From_int((int)(MS_TOKEN_BINDING_MAP_CELLSIZE)));
-  SWIG_Python_SetConstant(d, "MS_TOKEN_BINDING_DATA_CELLSIZE",SWIG_From_int((int)(MS_TOKEN_BINDING_DATA_CELLSIZE)));
-  SWIG_Python_SetConstant(d, "MS_PARSE_TYPE_BOOLEAN",SWIG_From_int((int)(MS_PARSE_TYPE_BOOLEAN)));
-  SWIG_Python_SetConstant(d, "MS_PARSE_TYPE_STRING",SWIG_From_int((int)(MS_PARSE_TYPE_STRING)));
-  SWIG_Python_SetConstant(d, "MS_PARSE_TYPE_SHAPE",SWIG_From_int((int)(MS_PARSE_TYPE_SHAPE)));
-  SWIG_Python_SetConstant(d, "MS_NOOVERRIDE",SWIG_From_int((int)(-1111)));
-  SWIG_Python_SetConstant(d, "SHX_BUFFER_PAGE",SWIG_From_int((int)(1024)));
-  SWIG_Python_SetConstant(d, "MS_SHAPEFILE_POINT",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_SHAPEFILE_ARC",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MS_SHAPEFILE_POLYGON",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "MS_SHAPEFILE_MULTIPOINT",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "MS_SHP_POINTZ",SWIG_From_int((int)(11)));
-  SWIG_Python_SetConstant(d, "MS_SHP_ARCZ",SWIG_From_int((int)(13)));
-  SWIG_Python_SetConstant(d, "MS_SHP_POLYGONZ",SWIG_From_int((int)(15)));
-  SWIG_Python_SetConstant(d, "MS_SHP_MULTIPOINTZ",SWIG_From_int((int)(18)));
-  SWIG_Python_SetConstant(d, "MS_SHP_POINTM",SWIG_From_int((int)(21)));
-  SWIG_Python_SetConstant(d, "MS_SHP_ARCM",SWIG_From_int((int)(23)));
-  SWIG_Python_SetConstant(d, "MS_SHP_POLYGONM",SWIG_From_int((int)(25)));
-  SWIG_Python_SetConstant(d, "MS_SHP_MULTIPOINTM",SWIG_From_int((int)(28)));
-  SWIG_Python_SetConstant(d, "FTString",SWIG_From_int((int)(FTString)));
-  SWIG_Python_SetConstant(d, "FTInteger",SWIG_From_int((int)(FTInteger)));
-  SWIG_Python_SetConstant(d, "FTDouble",SWIG_From_int((int)(FTDouble)));
-  SWIG_Python_SetConstant(d, "FTInvalid",SWIG_From_int((int)(FTInvalid)));
-  SWIG_Python_SetConstant(d, "wkp_none",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "wkp_lonlat",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "wkp_gmerc",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_SIMPLE",SWIG_From_int((int)(MS_SYMBOL_SIMPLE)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_VECTOR",SWIG_From_int((int)(MS_SYMBOL_VECTOR)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_ELLIPSE",SWIG_From_int((int)(MS_SYMBOL_ELLIPSE)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_PIXMAP",SWIG_From_int((int)(MS_SYMBOL_PIXMAP)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_TRUETYPE",SWIG_From_int((int)(MS_SYMBOL_TRUETYPE)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_HATCH",SWIG_From_int((int)(MS_SYMBOL_HATCH)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_SVG",SWIG_From_int((int)(MS_SYMBOL_SVG)));
-  SWIG_Python_SetConstant(d, "MS_SYMBOL_ALLOCSIZE",SWIG_From_int((int)(64)));
-  SWIG_Python_SetConstant(d, "MS_MAXVECTORPOINTS",SWIG_From_int((int)(100)));
-  SWIG_Python_SetConstant(d, "MS_MAXPATTERNLENGTH",SWIG_From_int((int)(10)));
-  SWIG_Python_SetConstant(d, "MS_IMAGECACHESIZE",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "MS_NOERR",SWIG_From_int((int)(0)));
-  SWIG_Python_SetConstant(d, "MS_IOERR",SWIG_From_int((int)(1)));
-  SWIG_Python_SetConstant(d, "MS_MEMERR",SWIG_From_int((int)(2)));
-  SWIG_Python_SetConstant(d, "MS_TYPEERR",SWIG_From_int((int)(3)));
-  SWIG_Python_SetConstant(d, "MS_SYMERR",SWIG_From_int((int)(4)));
-  SWIG_Python_SetConstant(d, "MS_REGEXERR",SWIG_From_int((int)(5)));
-  SWIG_Python_SetConstant(d, "MS_TTFERR",SWIG_From_int((int)(6)));
-  SWIG_Python_SetConstant(d, "MS_DBFERR",SWIG_From_int((int)(7)));
-  SWIG_Python_SetConstant(d, "MS_GDERR",SWIG_From_int((int)(8)));
-  SWIG_Python_SetConstant(d, "MS_IDENTERR",SWIG_From_int((int)(9)));
-  SWIG_Python_SetConstant(d, "MS_EOFERR",SWIG_From_int((int)(10)));
-  SWIG_Python_SetConstant(d, "MS_PROJERR",SWIG_From_int((int)(11)));
-  SWIG_Python_SetConstant(d, "MS_MISCERR",SWIG_From_int((int)(12)));
-  SWIG_Python_SetConstant(d, "MS_CGIERR",SWIG_From_int((int)(13)));
-  SWIG_Python_SetConstant(d, "MS_WEBERR",SWIG_From_int((int)(14)));
-  SWIG_Python_SetConstant(d, "MS_IMGERR",SWIG_From_int((int)(15)));
-  SWIG_Python_SetConstant(d, "MS_HASHERR",SWIG_From_int((int)(16)));
-  SWIG_Python_SetConstant(d, "MS_JOINERR",SWIG_From_int((int)(17)));
-  SWIG_Python_SetConstant(d, "MS_NOTFOUND",SWIG_From_int((int)(18)));
-  SWIG_Python_SetConstant(d, "MS_SHPERR",SWIG_From_int((int)(19)));
-  SWIG_Python_SetConstant(d, "MS_PARSEERR",SWIG_From_int((int)(20)));
-  SWIG_Python_SetConstant(d, "MS_SDEERR",SWIG_From_int((int)(21)));
-  SWIG_Python_SetConstant(d, "MS_OGRERR",SWIG_From_int((int)(22)));
-  SWIG_Python_SetConstant(d, "MS_QUERYERR",SWIG_From_int((int)(23)));
-  SWIG_Python_SetConstant(d, "MS_WMSERR",SWIG_From_int((int)(24)));
-  SWIG_Python_SetConstant(d, "MS_WMSCONNERR",SWIG_From_int((int)(25)));
-  SWIG_Python_SetConstant(d, "MS_ORACLESPATIALERR",SWIG_From_int((int)(26)));
-  SWIG_Python_SetConstant(d, "MS_WFSERR",SWIG_From_int((int)(27)));
-  SWIG_Python_SetConstant(d, "MS_WFSCONNERR",SWIG_From_int((int)(28)));
-  SWIG_Python_SetConstant(d, "MS_MAPCONTEXTERR",SWIG_From_int((int)(29)));
-  SWIG_Python_SetConstant(d, "MS_HTTPERR",SWIG_From_int((int)(30)));
-  SWIG_Python_SetConstant(d, "MS_CHILDERR",SWIG_From_int((int)(31)));
-  SWIG_Python_SetConstant(d, "MS_WCSERR",SWIG_From_int((int)(32)));
-  SWIG_Python_SetConstant(d, "MS_GEOSERR",SWIG_From_int((int)(33)));
-  SWIG_Python_SetConstant(d, "MS_RECTERR",SWIG_From_int((int)(34)));
-  SWIG_Python_SetConstant(d, "MS_TIMEERR",SWIG_From_int((int)(35)));
-  SWIG_Python_SetConstant(d, "MS_GMLERR",SWIG_From_int((int)(36)));
-  SWIG_Python_SetConstant(d, "MS_SOSERR",SWIG_From_int((int)(37)));
-  SWIG_Python_SetConstant(d, "MS_NULLPARENTERR",SWIG_From_int((int)(38)));
-  SWIG_Python_SetConstant(d, "MS_AGGERR",SWIG_From_int((int)(39)));
-  SWIG_Python_SetConstant(d, "MS_OWSERR",SWIG_From_int((int)(40)));
-  SWIG_Python_SetConstant(d, "MS_OGLERR",SWIG_From_int((int)(42)));
-  SWIG_Python_SetConstant(d, "MS_RENDERERERR",SWIG_From_int((int)(43)));
-  SWIG_Python_SetConstant(d, "MS_NUMERRORCODES",SWIG_From_int((int)(44)));
-  SWIG_Python_SetConstant(d, "MESSAGELENGTH",SWIG_From_int((int)(2048)));
-  SWIG_Python_SetConstant(d, "ROUTINELENGTH",SWIG_From_int((int)(64)));
-  SWIG_Python_SetConstant(d, "MS_ERROR_LANGUAGE",SWIG_FromCharPtr("en-US"));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_ERRORSONLY",SWIG_From_int((int)(MS_DEBUGLEVEL_ERRORSONLY)));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_DEBUG",SWIG_From_int((int)(MS_DEBUGLEVEL_DEBUG)));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_TUNING",SWIG_From_int((int)(MS_DEBUGLEVEL_TUNING)));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_V",SWIG_From_int((int)(MS_DEBUGLEVEL_V)));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_VV",SWIG_From_int((int)(MS_DEBUGLEVEL_VV)));
-  SWIG_Python_SetConstant(d, "MS_DEBUGLEVEL_VVV",SWIG_From_int((int)(MS_DEBUGLEVEL_VVV)));
-  SWIG_Python_SetConstant(d, "MS_HASHSIZE",SWIG_From_int((int)(41)));
-  SWIG_Python_SetConstant(d, "MS_DEFAULT_CGI_PARAMS",SWIG_From_int((int)(100)));
-  SWIG_Python_SetConstant(d, "MS_GET_REQUEST",SWIG_From_int((int)(MS_GET_REQUEST)));
-  SWIG_Python_SetConstant(d, "MS_POST_REQUEST",SWIG_From_int((int)(MS_POST_REQUEST)));
-#if PY_VERSION_HEX >= 0x03000000
-  return m;
-#else
-  return;
-#endif
-}
-
diff --git a/mapthread.c b/mapthread.c
index 013f8de..9dec10f 100644
--- a/mapthread.c
+++ b/mapthread.c
@@ -144,7 +144,7 @@ static int thread_debug = 0;
 
 static char *lock_names[] = {
   NULL, "PARSER", "GDAL", "ERROROBJ", "PROJ", "TTF", "POOL", "SDE",
-  "ORACLE", "OWS", "LAYER_VTABLE", "IOCONTEXT", "TMPFILE", "DEBUGOBJ", NULL
+  "ORACLE", "OWS", "LAYER_VTABLE", "IOCONTEXT", "TMPFILE", "DEBUGOBJ", "OGR", "TIME", "FRIBIDI", "WXS", "GEOS", NULL
 };
 #endif
 
diff --git a/mapthread.h b/mapthread.h
index 1f5488b..f0087e5 100644
--- a/mapthread.h
+++ b/mapthread.h
@@ -68,6 +68,7 @@ extern "C" {
 #define TLOCK_TIME      15
 #define TLOCK_FRIBIDI   16
 #define TLOCK_WxS       17
+#define TLOCK_GEOS       18
 
 #define TLOCK_STATIC_MAX 20
 #define TLOCK_MAX       100
diff --git a/mapwcs20.c b/mapwcs20.c
index 402b3a2..3d2d110 100644
--- a/mapwcs20.c
+++ b/mapwcs20.c
@@ -1123,20 +1123,6 @@ static int msWCSValidateAndFindAxes20(
   for(iParamAxis = 0; iParamAxis < params->numaxes; ++iParamAxis) {
     int found = 0;
 
-    /* check if subset is valid */
-    if(params->axes[iParamAxis]->subset != NULL) {
-      if(params->axes[iParamAxis]->subset->timeOrScalar == MS_WCS20_TIME_VALUE) {
-        msSetError(MS_WCSERR, "Time values for subsets are not supported. ",
-                   "msWCSValidateAndFindAxes20()");
-        return MS_FAILURE;
-      }
-      if(params->axes[iParamAxis]->subset->operation == MS_WCS20_SLICE) {
-        msSetError(MS_WCSERR, "Subset operation 'slice' is not supported.",
-                   "msWCSValidateAndFindAxes20()");
-        return MS_FAILURE;
-      }
-    }
-
     /* iterate over all given axes */
     for(iAcceptedAxis = 0; iAcceptedAxis < numAxis; ++iAcceptedAxis ) {
       /* iterate over all possible names for the current axis */
@@ -3216,6 +3202,22 @@ this request. Check wcs/ows_enable_request settings.", "msWCSGetCoverage20()", p
                           "projection", params->version);
   }
 
+  /* iterate over all subsets and check if they are valid*/
+  for(i = 0; i < params->numaxes; ++i) {
+    if(params->axes[i]->subset != NULL) {
+      if(params->axes[i]->subset->timeOrScalar == MS_WCS20_TIME_VALUE) {
+        msSetError(MS_WCSERR, "Time values for subsets are not supported. ",
+                   "msWCSGetCoverage20()");
+        return msWCSException(map, "InvalidSubsetting", "subset", params->version);
+      }
+      if(params->axes[i]->subset->operation == MS_WCS20_SLICE) {
+        msSetError(MS_WCSERR, "Subset operation 'slice' is not supported.",
+                   "msWCSGetCoverage20()");
+        return msWCSException(map, "InvalidSubsetting", "subset", params->version);
+      }
+    }
+  }
+
   {
     wcs20AxisObjPtr *axes;
     axes = msSmallMalloc(sizeof(wcs20AxisObjPtr) * 2);
diff --git a/shp2img.c b/shp2img.c
index 690d190..1790ebe 100644
--- a/shp2img.c
+++ b/shp2img.c
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
       fprintf(stdout,"  -o image: output filename (stdout if not provided)\n");
       fprintf(stdout,"  -e minx miny maxx maxy: extents to render\n");
       fprintf(stdout,"  -s sizex sizey: output image size\n");
-      fprintf(stdout,"  -l layers: layers / groups to enable - make sure they are quoted and space seperated if more than one listed\n" );
+      fprintf(stdout,"  -l layers: layers / groups to enable - make sure they are quoted and space separated if more than one listed\n" );
       fprintf(stdout,"  -all_debug n: Set debug level for map and all layers\n" );
       fprintf(stdout,"  -map_debug n: Set map debug level\n" );
       fprintf(stdout,"  -layer_debug layer_name n: Set layer debug level\n" );

-- 
Packaging for MapServer



More information about the Pkg-grass-devel mailing list