No subject
Mon Oct 7 05:54:23 PDT 2024
OUTPUTFORMAT
NAME png24
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE rgba
EXTENSION "png"
TRANSPARENT ON
END
LAYER
NAME "City Streets"
METADATA
DESCRIPTION "City Streets"
wms_title "City_Streets"
"RESULT_FIELDS" "street_name"
END
TYPE POLYGON
CONNECTIONTYPE OGR
connection "MapInfo\Cadastre\City_Streets.TAB"
LABELITEM "street_name"
TRANSPARENCY 50
CLASS
name "City Streets"
template "dummy.html"
color 145 137 103
END
end
=20
=20
Thanks,
Mike Merrett
=20
------_=_NextPart_001_01C63F0A.8A40497E
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=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.5296.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006>Hi:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006> I =
have a=20
queryByAttributes result which gives me a shapeobj =
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006> &nbs=
p; =20
-- if I then try to draw that shape it does draw but it is not =
transparent like=20
the layer is set to</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006> &nbs=
p;Should=20
it? (is this a feature or a bug)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D491331721-03032006>Below =
is the code I=20
am using ( assume a zoom in to show the features at a scale which show =
that it=20
isn't transparent - I cut out that part for clarity)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> $oParcelLayer =3D=20
$gpoMap->getLayerByName("City Streets" );</FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2> $y =3D=20
@$oParcelLayer->queryByAttributes('street_name', $the_street, =
MS_SINGLE=20
);<SPAN class=3D491331721-03032006> // assume it found one =
(real code=20
has an if)</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> $oResult =3D=20
$oParcelLayer->getResult(0=20
);<BR> $oParcelLayer->open();<BR> &n=
bsp; $oShape=20
=3D $oParcelLayer->getShape($oResult->tileindex, =
$oResult->shapeindex=20
);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> $img =3D=20
$gpoMap->draw();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> $rrr =3D=20
$oShape->draw( $gpoMap, $oParcelLayer, $img);<BR></DIV>
<DIV></FONT><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D491331721-03032006>From =
the map file=20
(relevant parts)</SPAN></FONT></DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D491331721-03032006>
<DIV><BR>OUTPUTFORMAT<BR> NAME png24<BR> DRIVER =
"GD/PNG"<BR> =20
MIMETYPE "image/png"<BR> IMAGEMODE rgba<BR> EXTENSION=20
"png"<BR> TRANSPARENT ON<BR>END</DIV>
<DIV><BR>LAYER<BR> NAME "City=20
Streets"<BR> METADATA<BR> DESCRIPTION "City=20
Streets"<BR> wms_title=20
"City_Streets"<BR> "RESULT_FIELDS"=20
"street_name"<BR> END<BR> TYPE=20
POLYGON<BR> CONNECTIONTYPE OGR<BR> connection=20
"MapInfo\Cadastre\City_Streets.TAB"<BR> LABELITEM=20
"street_name"<BR> TRANSPARENCY=20
50<BR> CLASS<BR> name "City=20
Streets"<BR> template =
"dummy.html"<BR> color=20
145 137 103<BR> END<BR> end</DIV>
<DIV></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D491331721-03032006><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV align=3Dleft><FONT face=3DArial =
color=3D#0000ff><STRONG> Mike=20
Merrett</STRONG></FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial color=3D#0000ff=20
size=3D2><EM> </EM></FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C63F0A.8A40497E--
More information about the MapServer-users
mailing list