[Mapserver-users] size of points?
Murat Isik
muratisik at megatek.com.tr
Wed Dec 17 08:04:35 PST 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->getLayerByName(place_name);<BR>$layer->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" <<A=20
href=3D"mailto:David.Fawcett at state.mn.us">David.Fawcett at state.mn.us</A>&g=
t;<BR>To:=20
<<A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>>;=20
<<A=20
href=3D"mailto:muratisik at megatek.com.tr">muratisik at megatek.com.tr</A>>=
<BR>Sent:=20
Wednesday, December 17, 2003 5:50 PM<BR>Subject: Re: [Mapserver-users] =
size of=20
points?<BR><BR><BR>> In your CLASS, set a SYMBOL and =
SIZE.<BR>><BR>> <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>>=20
CLASS<BR>> SYMBOL =
'circle'<BR>> SIZE=20
10<BR>> END<BR>><BR>><BR>> *to do this, you have to have a =
symbol=20
file containing a symbol called<BR>> 'circle' or define it =
in-line<BR>>=20
You can also mess around with MINSIZE and MAXSIZE<BR>><BR>>=20
David.<BR>><BR>><BR>><BR>> David J. Fawcett<BR>> MN =
Office of=20
Environmental Assistance<BR>><BR>> >>> "Murat Isik" =
<<A=20
href=3D"mailto:muratisik at megatek.com.tr">muratisik at megatek.com.tr</A>>=
=20
12/17/2003 9:35:47 AM >>><BR>> Hello,<BR>> I have the =
following=20
layer which is POINT type:<BR>><BR>> LAYER<BR>> =
NAME=20
place_name<BR>> TYPE point<BR>> STATUS=20
OFF<BR>> DATA place_name<BR>> LABELCACHE=20
ON<BR>> LABELITEM 'NAME'<BR>> =20
CLASS<BR>> NAME 'NAME'<BR>> =
COLOR 0 0=20
0<BR>> =20
LABEL<BR>> TYPE truetype<BR>>=20
# FORCE=20
true<BR>> FONT=20
arial<BR>> COLOR 128 0=20
64<BR>> ANGLE=20
AUTO<BR>> POSITION=20
AUTO<BR>> MINSIZE=20
2<BR>> SIZE =
6<BR>> =20
END<BR>> END<BR>> END<BR>><BR>><BR>> I can =
get the=20
size of the labels to change but I could not find how to<BR>> =
print=20
bigger points, the points which get labelled. Is there a way to =
do<BR>>=20
enlarge the points?<BR>><BR>> Have a nice day<BR>><BR>> =
Murat=20
Isik<BR></DIV></BODY></HTML>
------=_NextPart_000_0045_01C3C4C8.3AF71340--
More information about the MapServer-users
mailing list