MapTools.org

[Chameleon] Raster Processing Option

Jeff Hamm jeff@planyukon.ca
Tue, 27 Jan 2004 23:16:11 -0800
This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C3E52B.8D88E7E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I've still not had any resolution of my problem of enabling the =
PROCESSING "BANDS=3D5,4,3" for raster images within Chameleon 1.1alpha6. =
My map file (with Landsat image) works fine under Mapserver 4, but won't =
produce any image using MapDHTML widget(just the waitimage), unless I =
comment out the PROCESSING directive, in which Chameleon produces a map, =
without any processing. Same thing occurs with other PROCESSING options, =
such as SCALE.

Some pertinent extracts from the Map file:

IMAGETYPE png24:

  OUTPUTFORMAT
    NAME png24
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    IMAGEMODE RGBA
 END
 LAYER
    DATA "o55_18ref.tif"
    NAME "o55_18"
    GROUP "Base"
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TRANSPARENCY 50
    TYPE RASTER
    UNITS METERS
    PROCESSING "BANDS=3D5,4,3"=20
    OFFSITE 255 255 255
    PROJECTION
    "proj=3Daea"
    "ellps=3DGRS80"
    "lat_0=3D59"
    "lon_0=3D-132.5"
    "lat_1=3D61.667"
    "lat_2=3D68"
    "x_0=3D500000.0"
    "y_0=3D500000.0"
    "units=3Dm"
    "no_defs"
    END
    METADATA
     "wms_title" "o55_18"
     "wms_group_title" "Base"
    END
END

Is there a workaround? Because the Map file seems to get corrupted when =
the PROCESSING directive is included (an extra END gets inserted in the =
LAYER object according to the tmp map files), is there a parsing issue =
somewhere?
If anyone has Landsat processing working within Chameleon, what's the =
proper configuration in a Linux/Apache installation of Mapserver 4.0:

MapServer version 4.0 OUTPUT=3DPNG OUTPUT=3DWBMP SUPPORTS=3DPROJ =
SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT =
INPUT=3DTIFF INPUT=3DEPPL7 INPUT=3DPOSTGIS INPUT=3DOGR INPUT=3DGDAL =
INPUT=3DSHAPEFILE

I'd really prefer to put the Chameleon version into production, which =
works well enough aside from this problem (I'm being generous), but this =
is a show stopper. Any helpful comments appreciated.

Jeff Hamm
GIS and Planning Advisor
Yukon Land Use Planning Council
Whitehorse, Yukon
867 667 7397


------=_NextPart_000_0005_01C3E52B.8D88E7E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've still not had any resolution of my =
problem of=20
enabling the PROCESSING "BANDS=3D5,4,3" for raster images within =
Chameleon=20
1.1alpha6.&nbsp;My&nbsp;map file (with Landsat image) works fine under =
Mapserver=20
4, but won't produce any image using MapDHTML widget(just the =
waitimage), unless=20
I comment out the PROCESSING directive, in which Chameleon produces a =
map,=20
without&nbsp;any processing. Same thing occurs with other PROCESSING =
options,=20
such as SCALE.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Some pertinent extracts from the Map=20
file:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>IMAGETYPE png24:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; =
OUTPUTFORMAT<BR>&nbsp;&nbsp;&nbsp; NAME=20
png24<BR>&nbsp;&nbsp;&nbsp; MIMETYPE "image/png"<BR>&nbsp;&nbsp;&nbsp; =
DRIVER=20
"GD/PNG"<BR>&nbsp;&nbsp;&nbsp; IMAGEMODE RGBA<BR>&nbsp;END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp; DATA=20
"o55_18ref.tif"<BR>&nbsp;&nbsp;&nbsp; NAME =
"o55_18"<BR>&nbsp;&nbsp;&nbsp; GROUP=20
"Base"<BR>&nbsp;&nbsp;&nbsp; SIZEUNITS PIXELS<BR>&nbsp;&nbsp;&nbsp; =
STATUS=20
ON<BR>&nbsp;&nbsp;&nbsp; TOLERANCE 0<BR>&nbsp;&nbsp;&nbsp; =
TOLERANCEUNITS=20
PIXELS<BR>&nbsp;&nbsp;&nbsp; TRANSPARENCY 50<BR>&nbsp;&nbsp;&nbsp; TYPE=20
RASTER<BR>&nbsp;&nbsp;&nbsp; UNITS METERS<BR>&nbsp;&nbsp;&nbsp; =
PROCESSING=20
"BANDS=3D5,4,3" <BR>&nbsp;&nbsp;&nbsp; OFFSITE 255 255 =
255<BR>&nbsp;&nbsp;&nbsp;=20
PROJECTION<BR>&nbsp;&nbsp;&nbsp; "proj=3Daea"<BR>&nbsp;&nbsp;&nbsp;=20
"ellps=3DGRS80"<BR>&nbsp;&nbsp;&nbsp; "lat_0=3D59"<BR>&nbsp;&nbsp;&nbsp; =

"lon_0=3D-132.5"<BR>&nbsp;&nbsp;&nbsp; =
"lat_1=3D61.667"<BR>&nbsp;&nbsp;&nbsp;=20
"lat_2=3D68"<BR>&nbsp;&nbsp;&nbsp; =
"x_0=3D500000.0"<BR>&nbsp;&nbsp;&nbsp;=20
"y_0=3D500000.0"<BR>&nbsp;&nbsp;&nbsp; "units=3Dm"<BR>&nbsp;&nbsp;&nbsp; =

"no_defs"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp;=20
METADATA<BR>&nbsp;&nbsp;&nbsp; &nbsp;"wms_title" =
"o55_18"<BR>&nbsp;&nbsp;&nbsp;=20
&nbsp;"wms_group_title" "Base"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there a workaround? Because the Map =
file seems=20
to get corrupted&nbsp;when the PROCESSING directive is included (an =
extra END=20
gets inserted in the LAYER object according to the tmp map files), is =
there a=20
parsing issue somewhere?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If anyone has Landsat processing =
working within=20
Chameleon, what's the proper configuration in a Linux/Apache =
installation of=20
Mapserver 4.0:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#000000=20
face=3D"Arial, Helvetica, sans-serif" size=3D2>MapServer version 4.0 =
OUTPUT=3DPNG=20
OUTPUT=3DWBMP SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER=20
SUPPORTS=3DWMS_CLIENT INPUT=3DTIFF INPUT=3DEPPL7 INPUT=3DPOSTGIS =
INPUT=3DOGR INPUT=3DGDAL=20
INPUT=3DSHAPEFILE</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'd really prefer to put the Chameleon =
version into=20
production, which works well enough aside from this problem (I'm being=20
generous), but this is a show stopper. Any helpful comments=20
appreciated.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jeff Hamm</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>GIS and Planning Advisor</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Yukon Land Use Planning =
Council</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Whitehorse, Yukon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>867 667 7397</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0005_01C3E52B.8D88E7E0--



This archive was generated by Pipermail.