<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Jacob,</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks for your enlightment.</FONT></DIV>
<DIV><FONT face=Arial size=2>Means a lot for me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>-bino-</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=jacob.delfos@MAUNSELL.COM 
  href="mailto:jacob.delfos@MAUNSELL.COM">Jacob Delfos</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=MAPSERVER-USERS@LISTS.UMN.EDU 
  href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 14, 2005 2:35 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] 
  PhpMapScript vs MapFile</DIV>
  <DIV><BR></DIV><FONT face=Arial size=2>
  <DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
  size=2>Bino,</FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff>Yes, but it's quite a pain to 
  define the styles and classes, as I found out today......</FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff>This is the approach using (for 
  point files), which seems to work:</FONT></DIV>
  <DIV dir=ltr align=left><FONT color=#0000ff></FONT>&nbsp;</DIV>
  <DIV dir=ltr align=left>$datasetlayer = ms_newLayerObj( $oMap 
  );<BR>$datasetlayer-&gt;set( "name", "dataset" );<BR>$datasetlayer-&gt;set( 
  "type", $oLayer-&gt;type);<BR>$datasetlayer-&gt;set( "status", MS_ON 
  );<BR>$datasetlayer-&gt;set( "data", 
  "datasetShapefile");<BR>$datasetlayer-&gt;set( "template", "ttt" 
  );<BR>$datasetlayer-&gt;set( "tolerance", 5 );<BR>$datasetlayer-&gt;set( 
  "toleranceunits", 
  MS_PIXELS);<BR>$datasetlayer-&gt;setProjection($mapprojection);<BR>$queryclass 
  = ms_newClassObj($datasetlayer);<BR>$queryclass-&gt;set("name", "Query 
  result"); <BR>$queryclass-&gt;set("status", MS_ON);<BR>$style = 
  ms_newStyleObj($queryclass);</DIV>
  <DIV>&nbsp;</DIV>
  <DIV dir=ltr align=left>$symbolid = ms_newSymbolObj($oMap, 
  "circle");<BR>$oSymbol = 
  $oMap-&gt;getsymbolobjectbyid($symbolid);<BR>$oSymbol-&gt;setpoints(Array(1,1));<BR>$oSymbol-&gt;set("filled",MS_TRUE);<BR>$oSymbol-&gt;set("inmapfile", 
  MS_TRUE);</DIV>
  <DIV>&nbsp;</DIV>
  <DIV dir=ltr align=left>$style-&gt;color-&gt;setRGB(255, 255, 
  0);<BR>$style-&gt;set("symbolname", "circle");<BR>$style-&gt;set("size", 
  "8");</DIV>
  <DIV dir=ltr align=left>&nbsp;</DIV>
  <DIV dir=ltr align=left>You should be able to figure it out based on the 
  docs:</DIV>
  <DIV dir=ltr align=left><A 
  href="http://www.maptools.org/php_mapscript/index.phtml?page=php_mapscript_docs44.txt">http://www.maptools.org/php_mapscript/index.phtml?page=php_mapscript_docs44.txt</A></DIV>
  <DIV dir=ltr align=left>&nbsp;</DIV>
  <DIV>regards,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Jacob<BR></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
  [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of 
  </B>bino_oetomo<BR><B>Sent:</B> 14 June 2005 15:23<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] 
  PhpMapScript vs MapFile<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV><FONT face=Arial size=2>Hi All .</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Is it true that we can define layer in 
  PHPMapScript so we don't need layer definition in the MapFile ?</FONT></DIV>
  <DIV><FONT face=Arial size=2>If so , kindly please give me url that have 
  example on how to do complette Layer definition (inc all the classes) in 
  PhpMapscript.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Regards</FONT></DIV>
  <DIV><FONT face=Arial 
size=2>-bino-</FONT></DIV></BLOCKQUOTE></FONT></BODY></HTML>