[Mapserver-users] simple php/mapscript questions
Stephen Clark
stephen.clark at focus.ca
Fri Dec 12 08:11:48 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_006E_01C3C087.96F62EA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Just put the full path name of the file in the data field as follows:
DATA "e:/maps/data/ortho photo database/93 P/tif/93P088.tif"
Stephen
----- Original Message -----=20
From: Murat Isik=20
To: mapserver-users at lists.gis.umn.edu=20
Sent: Friday, December 12, 2003 6:04 AM
Subject: [Mapserver-users] simple php/mapscript questions
Hello,
I have two simple questions for those who know php/mapscript:
-actually first question more about map file. when we write SHAPEPATH =
"data" at the beginning of the file, mapserver goes into "data" to find =
all layer data. Is there a way to get the mapserver to retrieve data for =
each layer from different folders or paths?
-I have a layer like this:
LAYER
NAME lastpoint
TYPE point
DATA lastpoint
STATUS OFF
CLASS
SYMBOL 'circle'
COLOR 102 255 36
SIZE 20
LABEL
COLOR 0 0 0
END
END
END
This layer gets to be called within the php and turned ON. What I want =
to do is to use the same settings for different named layers but without =
rewriting this part multiple times. It is like: the php will get the =
layer by name (lastpoint) but for this layer it will retrieve data from =
firstpoint.shp, firstpoint.shx, firstpoint.dbf
Is there a php code that does this?
Have a nice day:)
Murat Isik
------=_NextPart_000_006E_01C3C087.96F62EA0
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.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Just put the full path name of the file =
in the data=20
field as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> DATA "e:/maps/data/ortho photo =
database/93=20
P/tif/93P088.tif"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Stephen</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dmuratisik at megatek.com.tr =
href=3D"mailto:muratisik at megatek.com.tr">Murat=20
Isik</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
title=3Dmapserver-users at lists.gis.umn.edu=20
=
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, December 12, 2003 =
6:04=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Mapserver-users] =
simple=20
php/mapscript questions</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have two simple questions for those =
who know=20
php/mapscript:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-actually first question more about =
map file.=20
when we write SHAPEPATH "data" at the beginning of the file, mapserver =
goes=20
into "data" to find all layer data. Is there a way to get the =
mapserver to=20
retrieve data for each layer from different folders or =
paths?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-I have a layer like =
this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> =
NAME lastpoint<BR> =20
TYPE point<BR> DATA lastpoint<BR> STATUS =
OFF<BR> =20
CLASS<BR> SYMBOL 'circle'<BR> =
COLOR 102=20
255 36<BR> SIZE 20<BR> =20
LABEL<BR> COLOR 0 0=20
0<BR> END<BR> =
END<BR>END<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This layer gets to be called within =
the php and=20
turned ON. What I want to do is to use the same settings for different =
named=20
layers but without rewriting this part multiple times. It is like: the =
php=20
will get the layer by name (lastpoint) but for this layer it will =
retrieve=20
data from firstpoint.shp, firstpoint.shx, firstpoint.dbf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there a php code that does =
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Have a nice day:)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Murat =
Isik</DIV></BLOCKQUOTE></FONT></BODY></HTML>
------=_NextPart_000_006E_01C3C087.96F62EA0--
More information about the MapServer-users
mailing list