[Date Prev][Date Next] [Chronological] [Thread] [Top]

[Mapserver-users] 2bit tiff image recolor on the fly



Zarko Mocnik wrote:
> I Read Raster_HOWTO and searched archive of this and -dev list but I 
> still have problems with recoloring on the fly of 2 color tiff raster.
> I tried with similar configuration as this:
> LAYER
>  NAME 'cl2421'
>  DATA cl2421.tif
>  TYPE RASTER
>  CLASS
>    EXPRESSION "1"
>    COLOR 0 255 0
>  END  # CLASS
>  OFFSITE 0
> END  # LAYER
> 
> but image allways appears as black on white. I also tried with
> EXPRESSION "([pixel==1)" and similar, but allwas with same result. I got 
> the same result with versions 3.5, 3.6 or even 3.7.
> 
> Do any have a *real working example* with recoloring of 2 color tiffs?
> 
> Configuration: Windows XP. I used versions withoud GDAL support (in cas 
> of 3.7 event with GDAL support.

Zarko,

What does gdalinfo report about your file?  My first guess would be that it
is being converted on the fly to RGBA mode by GDAL and this is defeating your
classification.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



From Prashant Desai" <prashant.desai@maptext.com  Fri Apr  4 14:17:39 2003
From: Prashant Desai" <prashant.desai@maptext.com (Prashant Desai)
Date: Fri, 4 Apr 2003 09:17:39 -0500
Subject: [Mapserver-users] Creating a Workspace (dsw) and project (dsp) of MapServer in Visual C++ 6.0
References: <000c01c2fa2a$58580890$377ba8c0@nadir>
Message-ID: <005c01c2fab4$f32b8c90$0f00a8c0@MT15>

This is a multi-part message in MIME format.

------=_NextPart_000_0059_01C2FA8B.09BE2690
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi=20
I have created the VC++ 6.0 workspace and project for MapServer. I =
haven't got a chance to create projects for all its libraries. If you =
need the one for mapserver, let me know, I can send it you.

Prashant
  ----- Original Message -----=20
  From: Rosangela Silva=20
  To: mapserver-users@lists.gis.umn.edu=20
  Sent: Thursday, April 03, 2003 4:45 PM
  Subject: [Mapserver-users] Creating a Workspace (dsw) and project =
(dsp) of MapServer in Visual C++ 6.0


  Helo,

  Anybody know how is the best way that can I create a Workspace with =
MapServer Project=20
  and all libraries needed in Visual C++ 6.0 ??

  I saw the How to compile MapServer, but I'd like to have a workspace =
here and=20
  manipulated it in C++.

  Thanks

  Rosangela.

------=_NextPart_000_0059_01C2FA8B.09BE2690
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have created the VC++ 6.0 workspace =
and project=20
for MapServer. I haven't got a chance to create projects for all its =
libraries.=20
If you need the one for mapserver, let me know, I can send it =
you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Prashant</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Drosangela.silva@zenitpolar.com.br=20
  href=3D"mailto:rosangela.silva@zenitpolar.com.br";>Rosangela Silva</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  title=3Dmapserver-users@lists.gis.umn.edu=20
  =
href=3D"mailto:mapserver-users@lists.gis.umn.edu";>mapserver-users@lists.g=
is.umn.edu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 03, 2003 =
4:45=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Mapserver-users] =
Creating a=20
  Workspace (dsw) and project (dsp) of MapServer in Visual C++ 6.0</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Helo,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial><FONT size=3D2>Anybody know how is the best =
way that can I=20
  create a </FONT><FONT size=3D2>Workspace with MapServer Project=20
  </FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>and all libraries needed in Visual =
C++ 6.0=20
  ??</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I saw the How to compile MapServer, =
but I'd like=20
  to have a workspace here and </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>manipulated it in C++.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial =
size=3D2>Rosangela.</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0059_01C2FA8B.09BE2690--