|
||||
[maplab-users] PHP/MapscriptCharlton Purvis cpurvis@asg.sc.eduThu, 22 May 2003 11:25:20 -0400
|
This is a multi-part message in MIME format. ------_=_NextPart_001_01C32076.5AEB92DD Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi, Mike: =20 Wow, that's a loaded question. Unfortunately, there is no clear answer. Perhaps start here: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.htm l? =20 You should definitely subscribe to the MapServer's users list, if you don't already, and certainly use their Wiki and search their archives. =20 I found Maplab a wonderful place to start learning about MapServer and PHP, but I stepped out of the Maplab world once I began to do dynamic and ad-hoc stuff. Following gmap and rosa is handy (from Maplab), but I'd say the best place is to take a simple .php and .map and then look at the README inside your MapServer (./mapscript/php3/README). Caution: make sure you are looking at the right references for your particular MS version. =20 I don't do URL overloading, but I'm sure you could do almost anything by pulling off the args. =20 Sorry so vague, but looking at examples from the MapServer users list is probably your best bet. At least it worked for me. =20 Charlton =20 -----Original Message----- From: Mike Leahy [mailto:mgleahy@fes.uwaterloo.ca]=20 Sent: Thursday, May 22, 2003 10:43 AM To: maplab-users@dmsolutions.ca Subject: [maplab-users] PHP/Mapscript =20 Hello, =20 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. =20 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. =20 I appreciate any help that can be offered. =20 Kind regards, Mike ------_=_NextPart_001_01C32076.5AEB92DD Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)"> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; 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;} span.EmailStyle18 {font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Hi, Mike:</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Wow, that’s a loaded = question. Unfortunately, there is no clear answer. Perhaps start here: = <a href=3D"http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_= faq.html">http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscrip= t_faq.html</a>?</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>You should definitely subscribe to = the MapServer’s users list, if you don’t already, and certainly use their Wiki and = search their archives.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>I found Maplab a wonderful place to = start learning about MapServer and PHP, but I stepped out of the Maplab world = once I began to do dynamic and ad-hoc stuff. Following gmap and = </span></font><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial; color:navy'>rosa</span></font><font size=3D2 color=3Dnavy = face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:navy'> is handy (from = Maplab), but I’d say the best place is to take a simple .php and .map and = then look at the README inside your MapServer = (./mapscript/php3/README). Caution: make sure you are looking at the right references for = your particular MS version.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>I don’t do URL overloading, = but I’m sure you could do almost anything by pulling off the = args.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Sorry so vague, but looking at = examples from the MapServer users list is probably your best bet. At least = it worked for me.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Charlton</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original = Message-----<br> <b><span style=3D'font-weight:bold'>From:</span></b> Mike Leahy [mailto:mgleahy@fes.uwaterloo.ca] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, May 22, = 2003 10:43 AM<br> <b><span style=3D'font-weight:bold'>To:</span></b> = maplab-users@dmsolutions.ca<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> [maplab-users] PHP/Mapscript</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 = face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'>Hello,</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>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.</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>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.</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>I appreciate = any help that can be offered.</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>Kind = regards,</span></font></p> <p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 = face=3DArial><span lang=3DEN-CA = style=3D'font-size:10.0pt;font-family:Arial'>Mike</span></font></p> </div> </body> </html> =00 ------_=_NextPart_001_01C32076.5AEB92DD--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |