MapTools.org

[maplab-users] PHP/Mapscript

Mike Leahy mgleahy@fes.uwaterloo.ca
Thu, 22 May 2003 09:43:20 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_0042_01C32046.9DD5CD20
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,

 

I'm trying to get started with a MapServer installation using
PHP/MapScript.  I have the latest 3.6 dev version of MapServer,
MapScript and MapLab - and they seem to work fine for me.  I'm also
trying to see if I can get MapServer 3.7 with the corresponding
MapScript dev working.  In either case, I have a PHP mapping interface
that was created using GMapFactory in the MapLab 2.0.

 

I'm trying to configure it so I can change the appearance of the map on
the fly.  As an example, I'd like to add different colour classes to a
shapefile or PostGIS layer based on one of its attributes.  Can anyone
make some suggestions on how to get started?  I've been picking through
the PHP code, and in general I understand it, but I don't really know
how to make changes, or what can be done with they way it's currently
setup.  Can I simply pass arguments through the URL to add colour
classes?  Perhaps someone might have some examples of modified versions
of the default scripts created by GMapFactory.

 

I appreciate any help that can be offered.

 

Kind regards,

Mike


------=_NextPart_000_0042_01C32046.9DD5CD20
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-CA link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m trying to get started with a MapServer
installation using PHP/MapScript.&nbsp; I have the latest 3.6 dev =
version of MapServer,
MapScript and MapLab &#8211; and they seem to work fine for me.&nbsp; =
I&#8217;m
also trying to see if I can get MapServer 3.7 with the corresponding =
MapScript
dev working.&nbsp; In either case, I have a PHP mapping interface that =
was
created using GMapFactory in the MapLab 2.0.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m trying to configure it so I can change the
appearance of the map on the fly.&nbsp; As an example, I&#8217;d like to =
add
different colour classes to a shapefile or PostGIS layer based on one of =
its
attributes.&nbsp; Can anyone make some suggestions on how to get =
started?&nbsp;
I&#8217;ve been picking through the PHP code, and in general I =
understand it,
but I don&#8217;t really know how to make changes, or what can be done =
with
they way it&#8217;s currently setup.&nbsp; Can I simply pass arguments =
through
the URL to add colour classes?&nbsp; Perhaps someone might have some =
examples
of modified versions of the default scripts created by =
GMapFactory.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I appreciate any help that can be =
offered.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Kind regards,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Mike</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0042_01C32046.9DD5CD20--




This archive was generated by Pipermail.