[OSGeo-Discuss] Best tool, shapefile to png, web

Noli Sicad nsicad at gmail.com
Mon Aug 16 21:24:58 PDT 2010


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 <mwtoews at gmail.com> wrote:
> On 16 August 2010 15:39, Peter <webwiz at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss
>



More information about the Discuss mailing list