BTW, QGIS has mapserver export plugin that exports *.map file and at this time save your layers (e.g. shapefile, etc.) in various format (png, jpeg, agg, etc) and open your mapserver to see web map.
Noli On 8/17/10, Mike Toews <mwto...@gmail.com> wrote: > On 16 August 2010 15:39, Peter <web...@pl.net> wrote: >> - open a http socket to a CGI eg > > Opps, my bad. MapServer operates in two modes: CGI and MapScript. It > looks like you want to go into MapScript mode for your application. > Available in almost all of the P languages: PHP, Perl and Python. > > #!/usr/bin/python > import mapscript > map = mapscript.mapObj("/home/mapdata/mymap.map") > img = map.draw() > img.save("/home/mapdata/mymap.png") > > Again, the MAP file is required, but you can probably template that > somehow and use it in a temporary file for your script. > > -Mike > _______________________________________________ > Discuss mailing list > Discuss@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/discuss > _______________________________________________ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss