<!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 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><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> </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> </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> </DIV>
<DIV dir=ltr align=left>$datasetlayer = ms_newLayerObj( $oMap
);<BR>$datasetlayer->set( "name", "dataset" );<BR>$datasetlayer->set(
"type", $oLayer->type);<BR>$datasetlayer->set( "status", MS_ON
);<BR>$datasetlayer->set( "data",
"datasetShapefile");<BR>$datasetlayer->set( "template", "ttt"
);<BR>$datasetlayer->set( "tolerance", 5 );<BR>$datasetlayer->set(
"toleranceunits",
MS_PIXELS);<BR>$datasetlayer->setProjection($mapprojection);<BR>$queryclass =
ms_newClassObj($datasetlayer);<BR>$queryclass->set("name", "Query result");
<BR>$queryclass->set("status", MS_ON);<BR>$style =
ms_newStyleObj($queryclass);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>$symbolid = ms_newSymbolObj($oMap,
"circle");<BR>$oSymbol =
$oMap->getsymbolobjectbyid($symbolid);<BR>$oSymbol->setpoints(Array(1,1));<BR>$oSymbol->set("filled",MS_TRUE);<BR>$oSymbol->set("inmapfile",
MS_TRUE);</DIV>
<DIV> </DIV>
<DIV dir=ltr align=left>$style->color->setRGB(255, 255,
0);<BR>$style->set("symbolname", "circle");<BR>$style->set("size",
"8");</DIV>
<DIV dir=ltr align=left> </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> </DIV>
<DIV>regards,</DIV>
<DIV> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>-bino-</FONT></DIV></FONT></BODY></HTML>