<!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.1400" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=359102913-28022005>Hallo
Liste,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=359102913-28022005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=359102913-28022005>endlich habe ich mein Problem mit der Erzeugung und
korrekten Darstellung eines neuen layers in php mapscript gelöst
;-)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=359102913-28022005>Hier
mein Script :</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff
size=2>$neulayerObj=ms_newLayerObj($karte);<BR>$neulayerObj->set(name,
"Abfrage");<BR>$neulayerObj->set(type, 2);<BR>$neulayerObj->set(data,
"shape1");<BR>$neulayerObj->set(status, MS_ON);</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff
size=2>$neuclassObj=ms_newClassObj($neulayerObj);<BR>$neuclassObj->set(name,
"Neue
Abfrage");<BR>$ex="($express)";<BR>$neuclassObj->setExpression($ex);</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff
size=2>$neustyleObj=ms_newStyleObj($neuclassObj);<BR>$neustyleObj->set(symbol,
3);<BR>$neustyleObj->set(size,
3); <BR>$neustyleObj->color->setRGB(255, 0, 255);</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2>Das Problem bestand <SPAN class=609213213-28022005>in der richtigen
(!) Typbezeichnung: statt "POLYGON" type
=2.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=609213213-28022005>Na ja, (fast) alle Probleme haben einfache
Lösungen.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=609213213-28022005></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=609213213-28022005>Liebe
Grüsse</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=609213213-28022005></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=359102913-28022005><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=609213213-28022005>Claudia</SPAN></FONT></FONT></FONT></SPAN></DIV></DIV>
<DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> Claudia Rodat
[mailto:claudia@rodat.de]<BR><B>Gesendet:</B> Donnerstag, 24. Februar 2005
17:11<BR><B>An:</B> mapserver-de@freegis.org<BR><B>Betreff:</B> [Mapserver-DE]
php mapscript : neuer layer<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=515514615-24022005>Hallo Liste
und vorallem php-Freaks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=515514615-24022005>ich möchte
on-the-fly einen neuen layer erstellen. Er wird auch erzeugt, allerdings ist
die farbige Darstellung merkwürdig: statt einer, in diesem Fall flächigen
Anzeige von "blau" werden nach dem Augenschein nur die Stützpunkte des
polygons angezeigt. Was habe ich übersehen ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=515514615-24022005>Hier der
Quellcode:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>$newlayerObj=ms_newLayerObj($karte);<BR>$newlayerObj->set(name,
"Abfrage");<BR>$newlayerObj->set(type,
"POLYGON");<BR>$newlayerObj->set(data,
"shape1");<BR>$newlayerObj->set(status, 1);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>$newclassObj=ms_newClassObj($newlayerObj);<BR>$newclassObj->set(name,
"Neue
Abfrage");<BR>$ex="($express)";<BR>$newclassObj->setExpression($ex);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$newclassObj=ms_newStyleObj($<SPAN
class=515514615-24022005>new</SPAN>classObj);<BR>$newclassObj->color->setRGB(0,
0, 255);<BR>$newclassObj->set('symbolname', <SPAN
class=515514615-24022005>'</SPAN>fein<SPAN
class=515514615-24022005>'</SPAN>);<BR>$newclassObj->outlinecolor->setRGB(0,
0, 255);<BR>$newclassObj->set('size',
3);<BR>$newclassObj->backgroundcolor->setRGB(0, 0, 0);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=515514615-24022005>Liebe Grüsse und
vielen Dank</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>Claudia Rodat</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV></DIV></BLOCKQUOTE></BODY></HTML>