performance slows down when compiled with gdal

H. Porath porath at WEB.DE
Tue Jun 6 07:27:07 EDT 2006


Hi all,

we have compiled two mapserver-binarys on solaris/sparc 8. The first (i call it "slim") was configured without gdal:
./configure \
  --with-freetype=/usr/local/freetype-2.1.10 \
  --with-gd=/usr/local/gd-2.0.33 \
  --with-proj=/usr/local \
  --with-oraclespatial=/opt/oracle/9.2.0

It runs very well and a wms-request on a "one image png raster layer" lasts less than one second. Here is the layer definition:

    LAYER
       METADATA
            "wms_title" "huek-b256"
        END
        PROJECTION
            "init=epsg:31467"
        END
        NAME         huek-b256
        DATA tk_store/B256km/34105470.png
        TYPE     RASTER
        STATUS   ON
    END

Now we additionally needed GDAL/OGR (for wfs, mrsid etc.) and compiled a second version (i call it fat) with the following configure:
./configure \
  --with-freetype=/usr/local/freetype-2.1.10 \
  --with-gd=/usr/local/gd-2.0.33 \
  --with-proj=/usr/local \
  --with-ogr=/usr/local/gdal-1.3.1/bin/gdal-config \
  --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config \
  --with-wfs\
  --with-oraclespatial=/opt/oracle/9.2.0

This "fat" mapserver binary needs more than three seconds for the same request although i am still requesting png. 
Has anyone an idea why this is so and how i can fix it? Is it possible that the mapserver tries to read the png files with the gdal driver? As far as i know the gdal driver ist much slower than the gd driver. So i added an "outputformat" directive to my mapfile:
    OUTPUTFORMAT
      NAME png
      DRIVER "GD/PNG"
      MIMETYPE "image/png"
      IMAGEMODE PC256
      EXTENSION "png"
   END

The problem is that this directive obviously only has effect on writing of png. Does anyone know if i can force mapserver to use the GD library for reading of png (and jpeg)?

Some additional infos:
-gdal 1.3.1 with support of mrsid, dynamically linked
-the raster data is in the same coordinate system as the wms request
-the raster data is an 8bit png (9 kb of size) georeferenced in a worldfile

Thanks in advance.

Regards


Holger
__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!		
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131



More information about the mapserver-users mailing list