<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Thank you Nicol:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am using C# Mapscript. I am trying now to see if is working by just adding a file with the map extension, but with no line inside, just an empty file and than create everything from code (layers etc)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ionut<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Nicol Hermann &lt;mapserver@geochem.de&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sandric ionut &lt;sandricionut@yahoo.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, February 1, 2009 12:47:40 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [mapserver-users] create mapObj without map file<BR></FONT><BR>Hello Ionut,<BR><BR>yes it is possible if you are using (PHP) mapscript.<BR>Using PHP mapscript you can do the following<BR><BR>dl('./bin/php_mapscript.so');<BR>$map = ms_newMapObj('') or die('Unable to open mapfile.');<BR>$map -&gt; set ('width', 300);<BR>...<BR>$Layer = ms_newLayerObj($map);<BR><BR>Hope this helps<BR>Best regards<BR>Nicol<BR><BR><BR><BR>Am Sonntag, den 01.02.2009, 02:28 -0800 schrieb sandric ionut:<BR>&gt;&nbsp; <BR>&gt; Hello:<BR>&gt;&nbsp; <BR>&gt; Is it possible to create a mapObj object without having a map file?<BR>&gt; and than
 create layers and define symbology and everything for each<BR>&gt; layer, than add the layer to the map?<BR>&gt;&nbsp; <BR>&gt; I am trying to eliminate the need of having the map file and read from<BR>&gt; that map file<BR>&gt;&nbsp; <BR>&gt; Thank you,<BR>&gt;&nbsp; <BR>&gt; Ionut<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; mapserver-users mailing list<BR>&gt; <A href="mailto:mapserver-users@lists.osgeo.org" ymailto="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR>-- <BR><BR></DIV></DIV></div><br>



      </body></html>