[Mapserver-users] size of points?

Murat Isik muratisik at megatek.com.tr
Wed Dec 17 11:04:35 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0045_01C3C4C8.3AF71340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you:)

Is there any way I can set this within a php code?
I know how to make layers on:

$layer =3D $map->getLayerByName(place_name);
$layer->set("status", MS_ON);

I wonder if some other code also sets label specifications? I have read =
the
php reference but I believe what that reference (and therefore newbeis =
like
me) lacks is examples. I wish there were any examples for complex codes =
in
the reference since one might not have done any php work when he started
working with mapscript....

Have a nice day

----- Original Message -----
From: "David Fawcett" <David.Fawcett at state.mn.us>
To: <mapserver-users at lists.gis.umn.edu>; <muratisik at megatek.com.tr>
Sent: Wednesday, December 17, 2003 5:50 PM
Subject: Re: [Mapserver-users] size of points?


> In your CLASS, set a SYMBOL and SIZE.
>
> http://mapserver.gis.umn.edu/doc40/mapfile-reference.html#class
>
> CLASS
>    SYMBOL 'circle'
>    SIZE 10
> END
>
>
> *to do this, you have to have a symbol file containing a symbol called
> 'circle' or define it in-line
> You can also mess around with MINSIZE and MAXSIZE
>
> David.
>
>
>
> David J. Fawcett
> MN Office of Environmental Assistance
>
> >>> "Murat Isik" <muratisik at megatek.com.tr> 12/17/2003 9:35:47 AM >>>
> Hello,
> I have the following layer which is POINT type:
>
> LAYER
>   NAME place_name
>   TYPE point
>   STATUS OFF
>   DATA place_name
>   LABELCACHE ON
>   LABELITEM 'NAME'
>   CLASS
>    NAME 'NAME'
>    COLOR 0 0 0
>     LABEL
>       TYPE truetype
> #      FORCE true
>       FONT arial
>       COLOR 128 0 64
>       ANGLE AUTO
>       POSITION AUTO
>       MINSIZE 2
>       SIZE 6
>    END
>   END
> END
>
>
> I can get the size of the labels to change but  I could not find how =
to
> print bigger points, the points which get labelled. Is there a way to =
do
> enlarge the points?
>
> Have a nice day
>
> Murat Isik


------=_NextPart_000_0045_01C3C4C8.3AF71340
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3700.6699" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Thank you:)<BR><BR>Is there any way I can set this within a php =
code?<BR>I=20
know how to make layers on:<BR><BR>$layer =3D=20
$map-&gt;getLayerByName(place_name);<BR>$layer-&gt;set("status",=20
MS_ON);<BR><BR>I wonder if some other code also sets label =
specifications? I=20
have read the<BR>php reference but I believe what that reference (and =
therefore=20
newbeis like<BR>me) lacks is examples. I wish there were any examples =
for=20
complex codes in<BR>the reference since one might not have done any php =
work=20
when he started<BR>working with mapscript....<BR><BR>Have a nice=20
day<BR><BR>----- Original Message -----<BR>From: "David Fawcett" &lt;<A=20
href=3D"mailto:David.Fawcett at state.mn.us">David.Fawcett at state.mn.us</A>&g=
t;<BR>To:=20
&lt;<A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>&gt;;=20
&lt;<A=20
href=3D"mailto:muratisik at megatek.com.tr">muratisik at megatek.com.tr</A>&gt;=
<BR>Sent:=20
Wednesday, December 17, 2003 5:50 PM<BR>Subject: Re: [Mapserver-users] =
size of=20
points?<BR><BR><BR>&gt; In your CLASS, set a SYMBOL and =
SIZE.<BR>&gt;<BR>&gt; <A=20
href=3D"http://mapserver.gis.umn.edu/doc40/mapfile-reference.html#class">=
http://mapserver.gis.umn.edu/doc40/mapfile-reference.html#class</A><BR>&g=
t;<BR>&gt;=20
CLASS<BR>&gt;&nbsp;&nbsp;&nbsp; SYMBOL =
'circle'<BR>&gt;&nbsp;&nbsp;&nbsp; SIZE=20
10<BR>&gt; END<BR>&gt;<BR>&gt;<BR>&gt; *to do this, you have to have a =
symbol=20
file containing a symbol called<BR>&gt; 'circle' or define it =
in-line<BR>&gt;=20
You can also mess around with MINSIZE and MAXSIZE<BR>&gt;<BR>&gt;=20
David.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; David J. Fawcett<BR>&gt; MN =
Office of=20
Environmental Assistance<BR>&gt;<BR>&gt; &gt;&gt;&gt; "Murat Isik" =
&lt;<A=20
href=3D"mailto:muratisik at megatek.com.tr">muratisik at megatek.com.tr</A>&gt;=
=20
12/17/2003 9:35:47 AM &gt;&gt;&gt;<BR>&gt; Hello,<BR>&gt; I have the =
following=20
layer which is POINT type:<BR>&gt;<BR>&gt; LAYER<BR>&gt;&nbsp;&nbsp; =
NAME=20
place_name<BR>&gt;&nbsp;&nbsp; TYPE point<BR>&gt;&nbsp;&nbsp; STATUS=20
OFF<BR>&gt;&nbsp;&nbsp; DATA place_name<BR>&gt;&nbsp;&nbsp; LABELCACHE=20
ON<BR>&gt;&nbsp;&nbsp; LABELITEM 'NAME'<BR>&gt;&nbsp;&nbsp;=20
CLASS<BR>&gt;&nbsp;&nbsp;&nbsp; NAME 'NAME'<BR>&gt;&nbsp;&nbsp;&nbsp; =
COLOR 0 0=20
0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&gt;=20
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE=20
true<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
arial<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 128 0=20
64<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANGLE=20
AUTO<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
AUTO<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSIZE=20
2<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE =
6<BR>&gt;&nbsp;&nbsp;&nbsp;=20
END<BR>&gt;&nbsp;&nbsp; END<BR>&gt; END<BR>&gt;<BR>&gt;<BR>&gt; I can =
get the=20
size of the labels to change but&nbsp; I could not find how to<BR>&gt; =
print=20
bigger points, the points which get labelled. Is there a way to =
do<BR>&gt;=20
enlarge the points?<BR>&gt;<BR>&gt; Have a nice day<BR>&gt;<BR>&gt; =
Murat=20
Isik<BR></DIV></BODY></HTML>

------=_NextPart_000_0045_01C3C4C8.3AF71340--




More information about the mapserver-users mailing list