<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> </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> </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 <mapserver@geochem.de><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sandric ionut <sandricionut@yahoo.com><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 -> 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>> <BR>> Hello:<BR>> <BR>> Is it possible to create a mapObj object without having a map file?<BR>> and than
create layers and define symbology and everything for each<BR>> layer, than add the layer to the map?<BR>> <BR>> I am trying to eliminate the need of having the map file and read from<BR>> that map file<BR>> <BR>> Thank you,<BR>> <BR>> Ionut<BR>> <BR>> _______________________________________________<BR>> mapserver-users mailing list<BR>> <A href="mailto:mapserver-users@lists.osgeo.org" ymailto="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR>> <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>