[Mapserver-users] TIF displays in grayscale

Balkanu GIS gis at balkanu.com.au
Mon Apr 5 00:44:53 PDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C41B35.B673DE40
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Robert
=20
Thanks for your reply.
=20
The posts here:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg00355.ht=
ml
also helped me find a solution.
=20
-- I reduced the number of colours in my TIF file to 64 (using =
'IrfanView')
with no real effect on how it looked. This left plenty of extra colours
available for the raster layers and also vastly reduced the size of the
raster (from 50MB to 13MB).=20
=20
Yuri
=20
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of robert =
fritz
Sent: Friday, 2 April 2004 16:50
To: gis at balkanu.com.au; mapserver-users at lists.gis.umn.edu
Subject: re:[Mapserver-users] TIF displays in grayscale



Received: from 194.175.70.36 by freemailng0705.web.de with HTTP;
Fri, 02 Apr 2004 08:50:04 +0200
Date: Fri, 02 Apr 2004 08:50:04 +0200
Message-Id: <983486967 at web.de>

--- END HEADERS ---

Hello,

maybe I had the same problem. Please take a look :
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0310/msg00425.ht=
ml

Robert
=20
---------------------------------------------
Hi all,

I'm using MapLab 2.1rc3 with MapServer 4.x (as part of ms4w) on Windows
2000, SP4.=20

I've successfully created a WLD file to display a TIF raster file (yay!) =
-
however when the raster is displayed the entire map (not only the =
raster,
but all other layers as well) is rendered in grayscale.=20

I notice in the MapLab documentation it says that MapServer's built-in
support for TIF does not include support for "tiled, 16bit, RGB, or odd
color models". Could this be why it is not displaying in colour? When I
converted the image from JPG (which it was originally) to TIF, I saved =
it
from PhotoShop in 8-bit CMYK. I don't know what constitutes an 'odd =
colour
model'.

Is there perhaps a Style Object I need to include? The Class Object is
essentially empty, as you can see in the relevant mapfile snippet below. =
I'm
afraid I'm still not terribly clued up on the application of Classes to
other Objects.

-----

LAYER

NAME "250k raster"

GROUP "Raster - topographic"

STATUS ON

DATA "../../../../Documents and Settings/All Users/Data/Tables
(MI)/Rasters/Topo_250k/Sd5513.tif"

TYPE RASTER

UNITS DD

SIZEUNITS PIXELS

CLASS

NAME "Cooktown"

MAXSCALE 500000

END

-----

Thanks for any suggestions

Yuri Banens

Hi all,

I'm using MapLab 2.1rc3 with MapServer 4.x (as part of ms4w) on Windows
2000, SP4.=20

I've successfully created a WLD file to display a TIF raster file (yay!) =
-
however when the raster is displayed the entire map (not only the =
raster,
but all other layers as well) is rendered in grayscale.=20

I notice in the MapLab documentation it says that MapServer's built-in
support for TIF does not include support for "tiled, 16bit, RGB, or odd
color models". Could this be why it is not displaying in colour? When I
converted the image from JPG (which it was originally) to TIF, I saved =
it
from PhotoShop in 8-bit CMYK. I don't know what constitutes an 'odd =
colour
model'.

Is there perhaps a Style Object I need to include? The Class Object is
essentially empty, as you can see in the relevant mapfile snippet below. =
I'm
afraid I'm still not terribly clued up on the application of Classes to
other Objects.

-----

LAYER

NAME "250k raster"

GROUP "Raster - topographic"

STATUS ON

DATA "../../../../Documents and Settings/All Users/Data/Tables
(MI)/Rasters/Topo_250k/Sd5513.tif"

TYPE RASTER

UNITS DD

SIZEUNITS PIXELS

CLASS

NAME "Cooktown"

MAXSCALE 500000

END

-----

Thanks for any suggestions

Yuri Banens

=20
-------------------------------------------------------
=20
=20
=20
Hi Robert, thanks for your suggestion. When I tried this=20


------=_NextPart_000_0001_01C41B35.B673DE40
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<STYLE>p {margin: 0px}</STYLE>

<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Verdana" bgColor=3D#ffffff>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN =
class=3D921352000-05042004>Hi=20
Robert</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN></FONT></FONT> </DIV>
<DIV><FONT><SPAN class=3D921352000-05042004></SPAN><FONT =
face=3DTahoma><FONT=20
size=3D2><SPAN class=3D921352000-05042004>Thanks for your=20
reply.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><SPAN class=3D921352000-05042004></SPAN><FONT =
face=3DTahoma><FONT=20
size=3D2><SPAN class=3D921352000-05042004>The posts here: <A=20
href=3D"http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg=
00355.html">http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303=
/msg00355.html</A> also=20
helped me find a solution.</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN></FONT></FONT></FONT></FONT> </DIV=
>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004>-- I reduced the number of colours in my TIF =
file to 64=20
(using 'IrfanView') with no real effect on how it looked. This left =
plenty of=20
extra colours available for the raster layers and also vastly reduced =
the size=20
of the raster (from 50MB to 13MB). =
</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN></FONT></FONT></FONT></FONT> </DIV=
>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004>Yuri</SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN></FONT></FONT></FONT></FONT> </DIV=
>
<DIV><FONT><FONT><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D921352000-05042004></SPAN>-----Original =
Message-----<BR><B>From:</B>=20
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu] <B>On Behalf Of =
</B>robert=20
fritz<BR><B>Sent:</B> Friday, 2 April 2004 16:50<BR><B>To:</B>=20
gis at balkanu.com.au; mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> =

re:[Mapserver-users] TIF displays in=20
grayscale<BR><BR></DIV></FONT></FONT></FONT></FONT>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV>Received: from 194.175.70.36 by freemailng0705.web.de with =
HTTP;<BR>Fri,=20
  02 Apr 2004 08:50:04 +0200<BR>Date: Fri, 02 Apr 2004 08:50:04=20
  +0200<BR>Message-Id: <983486967 at web.de><BR><BR>--- END HEADERS=20
  ---<BR><BR>Hello,<BR><BR>maybe I had the same problem. Please take a =
look :=20
  =
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0310/msg00425.ht=
ml<BR><BR>Robert<BR><SPAN=20
  class=3D921352000-05042004><FONT size=3D2> </FONT></SPAN></DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT=20
  =
size=3D2>---------------------------------------------</FONT></SPAN></DIV=
><SPAN=20
  class=3D921352000-05042004><FONT size=3D2>
  <P>Hi all,</P>
  <P>I'm using MapLab 2.1rc3 with MapServer 4.x (as part of ms4w) on =
Windows=20
  2000, SP4. </P>
  <P>I've successfully created a WLD file to display a TIF raster file =
(yay!) -=20
  however when the raster is displayed the entire map (not only the =
raster, but=20
  all other layers as well) is rendered in grayscale. </P>
  <P>I notice in the MapLab documentation it says that MapServer's =
built-in=20
  support for TIF does not include support for "tiled, 16bit, RGB, or =
odd color=20
  models". Could this be why it is not displaying in colour? When I =
converted=20
  the image from JPG (which it was originally) to TIF, I saved it from =
PhotoShop=20
  in 8-bit CMYK. I don't know what constitutes an 'odd colour =
model'.</P>
  <P>Is there perhaps a Style Object I need to include? The Class Object =
is=20
  essentially empty, as you can see in the relevant mapfile snippet =
below. I'm=20
  afraid I'm still not terribly clued up on the application of Classes =
to other=20
  Objects.</P>
  <P>-----</P>
  <P>LAYER</P>
  <P>NAME "250k raster"</P>
  <P>GROUP "Raster - topographic"</P>
  <P>STATUS ON</P>
  <P>DATA "../../../../Documents and Settings/All Users/Data/Tables=20
  (MI)/Rasters/Topo_250k/Sd5513.tif"</P>
  <P>TYPE RASTER</P>
  <P>UNITS DD</P>
  <P>SIZEUNITS PIXELS</P>
  <P>CLASS</P>
  <P>NAME "Cooktown"</P>
  <P>MAXSCALE 500000</P>
  <P>END</P>
  <P>-----</P>
  <P>Thanks for any suggestions</P>
  <P>Yuri Banens<FONT size=3D2></P>
  <P>Hi all,</P>
  <P>I'm using MapLab 2.1rc3 with MapServer 4.x (as part of ms4w) on =
Windows=20
  2000, SP4. </P>
  <P>I've successfully created a WLD file to display a TIF raster file =
(yay!) -=20
  however when the raster is displayed the entire map (not only the =
raster, but=20
  all other layers as well) is rendered in grayscale. </P>
  <P>I notice in the MapLab documentation it says that MapServer's =
built-in=20
  support for TIF does not include support for "tiled, 16bit, RGB, or =
odd color=20
  models". Could this be why it is not displaying in colour? When I =
converted=20
  the image from JPG (which it was originally) to TIF, I saved it from =
PhotoShop=20
  in 8-bit CMYK. I don't know what constitutes an 'odd colour =
model'.</P>
  <P>Is there perhaps a Style Object I need to include? The Class Object =
is=20
  essentially empty, as you can see in the relevant mapfile snippet =
below. I'm=20
  afraid I'm still not terribly clued up on the application of Classes =
to other=20
  Objects.</P>
  <P>-----</P>
  <P>LAYER</P>
  <P>NAME "250k raster"</P>
  <P>GROUP "Raster - topographic"</P>
  <P>STATUS ON</P>
  <P>DATA "../../../../Documents and Settings/All Users/Data/Tables=20
  (MI)/Rasters/Topo_250k/Sd5513.tif"</P>
  <P>TYPE RASTER</P>
  <P>UNITS DD</P>
  <P>SIZEUNITS PIXELS</P>
  <P>CLASS</P>
  <P>NAME "Cooktown"</P>
  <P>MAXSCALE 500000</P>
  <P>END</P>
  <P>-----</P>
  <P>Thanks for any suggestions</P>
  <P>Yuri Banens</P>
  <DIV></FONT></FONT></SPAN><SPAN =
class=3D921352000-05042004></SPAN> </DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT=20
  =
size=3D2>-------------------------------------------------------</FONT></=
SPAN></DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT =
size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT =
size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT =
size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D921352000-05042004><FONT size=3D2>Hi Robert, thanks =
for your=20
  suggestion. When I tried this =
</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0001_01C41B35.B673DE40--





More information about the MapServer-users mailing list