[Mapserver-users] raster layer not turning off

Jim Burnett r000t at adelphia.net
Tue Feb 25 12:29:32 EST 2003


This is a multi-part message in MIME format.

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

For some reason my raster index lasyer will not turn off.  It always =
stays on UNLESS I use php to turn it off like this. If I take this code =
out, it turns on...?? I checked my code and this is the only spot I do =
anything with the layer statuses.

 $layerObj =3D $mapObj->getLayer(0);
 $layerObj->set("status",0);



LAYER
        NAME "Aerial Overlay"
        STATUS OFF
        TILEINDEX "aerial.shp"
        TILEITEM "location"
        TYPE RASTER
        MAXSCALE 10000
END

------=_NextPart_000_028E_01C2DCC9.8CCD09A0
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.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>For some reason my raster index lasyer =
will not=20
turn off.&nbsp; It always stays on UNLESS I use php to turn it off like =
this. If=20
I take this code out, it turns on...?? I checked my code and this is the =
only=20
spot I do anything with the layer statuses.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;$layerObj =3D=20
$mapObj-&gt;getLayer(0);<BR>&nbsp;$layerObj-&gt;set("status",0);</FONT></=
DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>LAYER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
NAME "Aerial Overlay"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
STATUS=20
OFF<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TILEINDEX=20
"aerial.shp"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TILEITEM=20
"location"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE=20
RASTER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXSCALE=20
10000<BR>END<BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_028E_01C2DCC9.8CCD09A0--




More information about the mapserver-users mailing list