MapTools.org

[Chameleon] PROCESSING directive produces parsing errors in Mapbrowser (Maplab 2.1-RC1)

Jeff Hamm jeff@planyukon.ca
Wed, 01 Oct 2003 14:30:54 -0700
 For a given map file, using PROCESSING "BANDS=5,4,3" directive causes
the following error:

        Warning: [MapServer Error]: getString(): Parsing error near
(END):(line 192) in
        /maplab21/htdocs/common/wrapper/map_session.php on line 215

Under Maplab/MapBrowser, no map output is generated (just the error).
Under Chameleon 1.1, the waitimage remains active indefinitely (no image
produced). Commenting out the PROCESSING directive allows the map to be
rendered (under Mapbrowser, or Chameleon).

Incidentally, GMapFactory will produce the correct multiband image when
using the PROCESSING "BANDS=5,4,3" directive (using the same map file).
So I know that my mapfile/mapserver configuration is capable of
producing the desired output. The Maplab(MapEdit) XML template is
maplab_40.xml.

I've checked logs etc. for more detail, but to no avail. The parsed
mapfile created in the /tmp directory DOES contain the PROCESSING
Directive string (when not commented out in the source mapfile), but
there is an extra 'END' inserted after 'PROCESSING' , which effectively
truncates the mapfile. I'm not certain that the problem lies in the
parsing, but somewhere along the line, this directive gets lost.

Can anyone tell me if this is a GDAL version/multicopy problem, or a PNG
driver problem (possibly related to Mapserver bug 397 - Color problems
when using raster symbols and 8 bits PNG) ??

TIA for any help.

Jeff Hamm
Yukon Land Use Planning Council
Whitehorse, Yukon
jeff@planyukon.ca
(867) 667-7397

---ENVIRONMENT and MAP Configuration details follow:---

    RedHat8
    Apache
    PHP 4.3.2.
    Mapserver 4.0
    PHP Mapscript ($Revision: 1.177 $ $Date: 2003/07/30 19:01:31 $)
    Maplab 2.1-RC1
    InternetExplorer 5.50.4522.1800

MapServer version 4.0 OUTPUT=PNG OUTPUT=WBMP SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF
INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE

GDAL-config --version
    1.1.8

GDAL-config --formats
    gtiff gif png (+ others)

.... and finally....

MAP
  SIZE 600 400
  EXTENT -595040 462926 1461280 1834443
  NAME "Plan Yukon"
  PROJECTION
  "init=epsg:42304"
  END
    IMAGETYPE png24
  OUTPUTFORMAT
    NAME png24
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE RGBA
    TRANSPARENT TRUE
  END

      SYMBOLSET "./etc/symbols.sym"
  WEB
    IMAGEPATH "/tmp/img/"
    IMAGEURL "http://www.planyukon.ca/tmp/img/"
    METADATA
     "wms_title" "Planning Atlas"
     "wms_onlineresource"
"http://www.planyukon.ca/cgi-bin/mapserv?map=wms.map&"
    END
  IMAGETYPE png24
  OUTPUTFORMAT
    NAME png24
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE RGBA
    TRANSPARENT TRUE
  END

LAYER
    DATA "o64_13ref.tif"
    TYPE RASTER
    METADATA
        "wms_title" "Scene 64_13"
        "wms_extent" "146400 1263720 418560 1521150"
        "wms_opaque" "1"
        "wms_srs" "epsg:42304"
    END
    NAME "Scene 64_13"
    PROJECTION
       "init=epsg:42304"
    END
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TRANSPARENCY 75
    UNITS METERS
    PROCESSING  "BANDS=5,4,3"
   OFFSITE 0 0 0
  END
END

---end of message---



This archive was generated by Pipermail.