SDE Raster support

These enhancements to Mapserver 4.2.0 add support for SDE raster layers. A function msSDELayerQueryByAttributes for fast queries on SDE layers is also included. Usage:

  CONNECTIONTYPE sde
  CONNECTION "mapserver.gis.gr.ch,port:5151,'',username,password"
  TYPE raster
  DATA "KONTEXT.LANDESKARTE_50_KOMBINIERT.IMAGE,SHAPE"

The connection has the following arguments: server,instance,database,username,password The work was kindly sponsored by the GIS-Kompetenzzentrum of Graubünden, Switzerland.

SDE Query speedup

This patch against Mapserver 4.2 activates the call of msSDELayerQueryByAttributes.

--- ms-4.2.3.orig/mapquery.c    2004-09-29 09:47:26.000000000 +0200
+++ ./mapquery.c        2004-09-29 09:27:37.000000000 +0200
@@ -292,7 +292,11 @@
   else
     lp->project = MS_FALSE;
 #endif
-  status = msLayerWhichShapes(lp, searchrect);
+  if (lp->connectiontype == MS_SDE) {
+    status = msSDELayerQueryByAttributes(lp);
+  } else {
+    status = msLayerWhichShapes(lp, searchrect);
+  }
   if(status == MS_DONE) { // no overlap
     msLayerClose(lp);
      msSetError(MS_NOTFOUND, "No matching record(s) found, layer and area of interest do not overlap.", "

Ruby MapScript for Mapserver 4.0

Ruby MapScript is included in the current Mapserver version. Ruby MapScript is a Ruby interface to the UMN Mapserver library. The compiled version is also integrated in the binaries of MapDesk. Download the source package. In order to compile you will need:

  • Sources of UMN MapServer (version >= 4.0)
  • Ruby (version >= 1.6)
  • Optional: Swig (version >= 1.3a5)