Hi Ionut,<br><br>You could create a map object without having to load a mapfile something like this:<br><br>mapObj map = new mapObj(null);<br><a href="http://map.name" target="_blank">map.name</a> = &quot;testmap&quot;;<br>
map.extent = new rectObj(313448.426748,7345979.999602,360571.684951,7413999.938403,0);<br>
map..units = MS_UNITS.MS_METERS;<br>map.height = 400;<br>map.width = 400;<br>map.<br><br>layerObj layer = new layerObj(map);<br>layer.connectiontype = MS_CONNECTION_TYPE.MS_OGR;<br>layer.type = MS_LAYER_TYPE.MS_LAYER_LINE;<br>
layer.connection = &quot;[my ogr connection]&quot;;<br>
layer.status = mapscript.MS_ON;<br><br>classObj class_obj = new classObj(layer);<br>styleObj style= new styleObj(class_obj);<br>style.color = new colorObj(0, 0, 255, 0);<br>style.size = 10;<br><br>etc.<br><br><br>See <a href="http://mapserver.org/mapscript/mapscript.html">http://mapserver.org/mapscript/mapscript.html</a> for more information about the API.<br>
<br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/2/1 sandric ionut <span dir="ltr">&lt;<a href="mailto:sandricionut@yahoo.com" target="_blank">sandricionut@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>

&nbsp;</div>

<div>Hello:</div>
<div>&nbsp;</div>
<div>Is it possible to create a mapObj object without having a map file? and than create layers and define symbology and everything for each layer, than add the layer to the map?</div>
<div>&nbsp;</div>
<div>I am trying to eliminate the need of having the map file and read from that map file</div>
<div>&nbsp;</div>
<div>Thank you,</div>
<div>&nbsp;</div>
<div>Ionut</div></div><br>



      </div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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></blockquote></div><br>