[mapserver-users] create mapObj without map file

sandric ionut sandricionut at yahoo.com
Sun Feb 1 06:02:44 EST 2009


Thank you Nicol:

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)

Ionut




________________________________
From: Nicol Hermann <mapserver at geochem.de>
To: sandric ionut <sandricionut at yahoo.com>
Sent: Sunday, February 1, 2009 12:47:40 PM
Subject: Re: [mapserver-users] create mapObj without map file

Hello Ionut,

yes it is possible if you are using (PHP) mapscript.
Using PHP mapscript you can do the following

dl('./bin/php_mapscript.so');
$map = ms_newMapObj('') or die('Unable to open mapfile.');
$map -> set ('width', 300);
...
$Layer = ms_newLayerObj($map);

Hope this helps
Best regards
Nicol



Am Sonntag, den 01.02.2009, 02:28 -0800 schrieb sandric ionut:
>  
> Hello:
>  
> 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?
>  
> I am trying to eliminate the need of having the map file and read from
> that map file
>  
> Thank you,
>  
> Ionut
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-- 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090201/a0da62f2/attachment.html


More information about the mapserver-users mailing list