[Mapserver-users] running v4 beta as a command line tool
Eduardo Patto Kanegae
eduardo at linkgeo.com.br
Wed Jun 25 07:43:50 PDT 2003
I've tested on MapServer 3.6.4 for Windows, using:
$ mapserv "QUERY_STRING=map=c:\test\mymap.map&mode=map&foo=...." > myresult.gif
but if you try to open "myresult.gif" it crash...
so I opened this file with a text editor and deleted the first two lines(the headers), then it works!
regards
Eduardo Patto Kanegae
eduardo at linkgeo.com.br
http://www.linkgeo.com.br
***************************************
***Fim da Mensagem / End of Message ***
***************************************
On Wed, 25 Jun 2003 14:43:41 +0200, Vincent Schut <schut at sarvision.com> enscreveu:
> De: Vincent Schut <schut at sarvision.com>
> Data: Wed, 25 Jun 2003 14:43:41 +0200
> Para: niklas wörmann <nwoe at privat.utfors.se>, <mapserver-users at lists.gis.umn.edu>
> Assunto: Re: [Mapserver-users] running v4 beta as a command line tool
>
> On Wednesday 25 June 2003 10:06, niklas wörmann wrote:
> > Hi!
> > i am trying to track down the reason mapserver isn´t working on my windows
> > 2000 server.
> >
> > i remember seeing somewhere that it was indeed possible to run mapserver as
> > a command line tool, specifying a map file and an output file
> >
> > anyone know the syntax for this?
>
> On linux:
> ./mapserv "QUERY_STRING=map=/path/to/your/mapfile.map&mode=map"
> This will output headers + image data to stdout (on linux). Probably on
> windows your executable is not named mapserv but something like mapserv.exe?
> And use \ instead of / I think.
>
> you cannot just save the output as image file because the headers are in the
> output too.
> But you can see if it outputs something (lots of ascii: image), or gives an
> error.
> To see the image: type in your browser:
> http://localhost/cgi-bin/mapserv?map=/path/to/your/mapfile.map&mode=map
> change / in path to \ if on windows?
>
> Regards,
> --
> ______________________________________
> Vincent Schut
> Sarvision B.V.
> Wageningen, The Netherlands
> www.sarvision.com
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>
More information about the MapServer-users
mailing list