[Mapserver-users] extent of expression

Aaron D. Hunt hunt at zedxinc.com
Tue Apr 29 07:20:25 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_01A7_01C30E38.F2C5E9C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am setting a expression using mapscript

$exp =3D ('[STATE_FIPS]' eq '42' or '[STATE_FIPS]' eq '34') ;

$layer_states =3D $map->getLayerByName('STATE');
$class_state =3D $layer_states->getClass(0);=20
$class_state->setExpression($exp) ;


Is there a way to find the extent of the expression so the script can =
auto zoom in the area?

Aaron D. Hunt

------=_NextPart_000_01A7_01C30E38.F2C5E9C0
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>I am setting a expression using=20
mapscript</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>$exp =3D ('[STATE_FIPS]' eq '42' or '[STATE_FIPS]' eq '34') ;</DIV>
<DIV><MAP name=3Dfcst><AREA=20
  onmouseover=3D"window.status=3D'Observation'; return true"=20
  =
onclick=3D"theform.timestep.value=3D'/usr/home/meso/MAP_IMAGES_DEV/AW_030=
428OBS.tif';theform.newmap.value=3D'yes';theform.submit();"=20
  shape=3DRECT coords=3D0,20,110,45 href=3D"#"><AREA=20
  onmouseover=3D"window.status=3D'Day-1'; return true"=20
  =
onclick=3D"theform.timestep.value=3D'/usr/home/meso/MAP_IMAGES_DEV/AW_030=
429FD1.tif';theform.newmap.value=3D'yes';theform.submit();"=20
  shape=3DRECT coords=3D150,20,200,45 href=3D"#"><AREA=20
  onmouseover=3D"window.status=3D'Day-3'; return true"=20
  =
onclick=3D"theform.timestep.value=3D'/usr/home/meso/MAP_IMAGES_DEV/AW_030=
501FD3.tif';theform.newmap.value=3D'yes';theform.submit();"=20
  shape=3DRECT coords=3D230,20,290,45 href=3D"#"><AREA=20
  onmouseover=3D"window.status=3D'Day-5'; return true"=20
  =
onclick=3D"theform.timestep.value=3D'/usr/home/meso/MAP_IMAGES_DEV/AW_030=
503FD5.tif';theform.newmap.value=3D'yes';theform.submit();"=20
  shape=3DRECT coords=3D310,20,370,45 href=3D"#"><AREA=20
  onmouseover=3D"window.status=3D'Day-7'; return true"=20
  =
onclick=3D"theform.timestep.value=3D'/usr/home/meso/MAP_IMAGES_DEV/AW_030=
505FD7.tif';theform.newmap.value=3D'yes';theform.submit();"=20
  shape=3DRECT coords=3D390,20,460,45 href=3D"#"></MAP></DIV>
<DIV><FONT face=3DArial size=3D2>$layer_states =3D=20
$map->getLayerByName('STATE');<BR>$class_state =3D=20
$layer_states->getClass(0); <BR>$class_state->setExpression($e=
xp)=20
;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there a way to find the extent of =
the expression=20
so the script can auto zoom in the area?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Aaron D. =
Hunt<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_01A7_01C30E38.F2C5E9C0--




More information about the MapServer-users mailing list