[Mapserver-users] Please Help me

Vincent Schut schut@sarvision.com
Thu, 15 May 2003 13:43:09 +0200


the correct way to do this is:
./mapserv "QUERY_STRING=map=/var/mapserver/mapfiles/province2.map&mode=map"
(of course fill in your own mapfile and eventual other parameters. I think you 
need to specify at least map and mode. This example prints the image data to 
stdout, so you will see your png or gif or whatever scrolling as ascii on you 
terminal :-)
Works with mapserver-3.7. Don't know if it works with 3.6.x versions.

Regards,
Vincent.

On Wednesday 14 May 2003 19:42, aborruso@spaziogis.it wrote:
> Dear Palle,
> I have entered your parmameters and I have had:
> "This script can only be used to decode form results and should be
> initiated as a CGI via a httpd server."
>
> What do you think about?
>
> Thank you,
>
> Andrea
>
> |---------+--------------------------->
> |
> |         |           "Palle Due      |
> |         |           Larsen"         |
> |         |           <palle@mail-onli|
> |         |           ne.dk>          |
> |         |
> |         |           13/05/2003 17.33|
> |
> |---------+--------------------------->
> |
>   >------------------------------------------------------------------------
>   >------------------------------------------------------|
>   >
>   |        Per:     aborruso@spaziogis.it,
>   | mapserver-users@lists.gis.umn.edu                                      
>   |               | Cc:                                                    
>   |                                                               |
>   | Oggetto: Re: [Mapserver-users] Please Help me                          
>   |                                               |
>   |
>   >------------------------------------------------------------------------
>   >------------------------------------------------------|
>
> Hi Andrea,
>
> Just enter mapserv -query_string="(all your normal CGI parameters)"
>
> Best regards
>
> Palle Due Larsen
> -----Original Message-----
> From: aborruso@spaziogis.it
> To: "Palle Due Larsen" <palle@mail-online.dk>
> Cc: mapserver-users@lists.gis.umn.edu
> Date: Mon, 12 May 2003 09:51:09 +0200
> Subject: Re: [Mapserver-users] Please Help me
>
> > Palle,
> > could you write me a text to use in mapserv from command line, I'm
> > not able
> > to translate an url to a text for the command line. I know only
> > "mapserv
> > -v".
> > Thank you,
> >
> > Andrea
> >
> > |---------+--------------------------->
> > |
> > |         |           "Palle Due      |
> > |         |           Larsen"         |
> > |         |           <palle@mail-onli|
> > |         |           ne.dk>          |
> > |         |
> > |         |           12/05/2003 09.48|
> > |
> > |---------+--------------------------->
> > |
> > >--------------------------------------------------------------------
> >
> > ----------------------------------------------------------|
> >
> >   |        Per:     aborruso@spaziogis.it
> >   |
> >   |        Cc:
> >   |
> >   |        Oggetto: Re: [Mapserver-users] Please Help me
> > >
> > >--------------------------------------------------------------------
> >
> > ----------------------------------------------------------|
> >
> >
> >
> >
> > Yes, I am aware of that, it was just that your url looked a little
> > funny, so I thought it might be that mapserver misunderstood
> > something.
> > However, I just checked with my installation (Win2000, IIS, ms3.6),
> > and
> > I get expected results when using your url, so it must be something
> > else. Have you tried running mapserv.exe from the command-line - with
> > those parameters - to see if it's returning a correct result?
> >
> > Best regards
> >
> > Palle
> > -----Original Message-----
> > From: aborruso@spaziogis.it
> > To: "Palle Due Larsen" <palle@mail-online.dk>
> > Date: Mon, 12 May 2003 09:19:58 +0200
> > Subject: Re: [Mapserver-users] Please Help me
> >
> > > Palle,
> > > as you can read in my past email, the map file I want to use in my
> > > example
> > > does not exist. Then it would be normal to have an error message,
> >
> > but
> >
> > > I
> > > remember some more specific error messages with the old version.
> >
> > Then
> >
> > > in my
> > > example it should be appeared a message like: "mapserv: impossible
> >
> > to
> >
> > > find
> > > test.map". I have instead: "CGI Error The specified CGI application
> > > misbehaved by not returning a complete set of HTTP headers. The
> > > headers it
> > > did return are:".
> > >
> > > Is this error message normal or is there something wrong in my
> > > installation??
> > >
> > > Thank you,
> > >
> > >
> > > Andrea
> > >
> > > |---------+--------------------------->
> > > |
> > > |         |           "Palle Due      |
> > > |         |           Larsen"         |
> > > |         |           <palle@mail-onli|
> > > |         |           ne.dk>          |
> > > |         |
> > > |         |           12/05/2003 09.09|
> > > |
> > > |---------+--------------------------->
> > >
> > >--------------------------------------------------------------------
> > > ----------------------------------------------------------|
> > >
> > >   |        Per:     aborruso@spaziogis.it,
> > >
> > > mapserver-users@lists.gis.umn.edu
> > >
> > >   |        Cc:
> > >   |
> > >   |        Oggetto: Re: [Mapserver-users] Please Help me
> > >
> > >--------------------------------------------------------------------
> > > ----------------------------------------------------------|
> > >
> > >
> > >
> > >
> > > Could it be that the url is wrong? Your are missing the map
> > > parameter,
> > > try this:
> > >
> > > http://127.0.0.1/cgi-bin/mapserv.exe?map=C:
> > > \Inetpub\wwwroot\mapserver\test.map&mode=map
> > >
> > > Best Regards
> > >
> > > Palle Due Larsen
> > > Carl Bro GIS & IT
> > >
> > > -----Original Message-----
> > > From: aborruso@spaziogis.it
> > > To: mapserver-users@lists.gis.umn.edu
> > > Date: Thu, 8 May 2003 19:27:14 +0200
> > > Subject: [Mapserver-users] Please Help me
> > >
> > > > Dear users,
> > > > some time ago I have learned to build a mapserver powered site
> >
> > (3.2
> >
> > > > version). In the last months I have not had the time to "study"
> >
> > the
> >
> > > > new
> > > > version and features of mapserver.
> > > > Here is my problem. I have tried to build an update manifold
> > >
> > > powered
> > >
> > > > site.
> > > > I have downloaded ms36gif_gdal_pg_wms.zip and ms35_libs.zip, then
> >
> > I
> >
> > > > have
> > > > extracted all files where they could be extracted and then I have
> > > > made a
> > > > simple test; I have written simply this URL:
> > > > http://127.0.0.1/cgi-bin/mapserv.exe?=C:
> > > > \Inetpub\wwwroot\mapserver\test.map&mode=map.
> > > > I have this error message: "CGI Error The specified CGI
> >
> > application
> >
> > > > misbehaved by not returning a complete set of HTTP headers. The
> > > > headers it
> > > > did return are:"
> > > > The file of the test url does not exist, but I remember that with
> > >
> > > the
> > >
> > > > old
> > > > versions I had an error message like "it's impossible to access
> >
> > to
> >
> > > > the file
> > > > ..." (or something similar), instead I have a generic strange
> >
> > error
> >
> > > > message
> > > > and I think there is something strong in my mapserver
> >
> > installation.
> >
> > > > Do you have some tip or advice for me?
> > > >
> > > > I have winxp pro with IIS.
> > > >
> > > >
> > > > Thank you very much,
> > > >
> > > > Andrea
> > > >
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list
> > > > Mapserver-users@lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > > Få en gratis emailkonto her: www.mail-online.dk
> > > -----------------------------------------------
> > > Deltag i en lille brugerundersøgelse på
> > > nettet, og vind et gavekort på 50.000 kroner..!
> > > www.directoffice.dk/konkurrence
> >
> > Få en gratis emailkonto her: www.mail-online.dk
> > -----------------------------------------------
> > Deltag i en lille brugerundersøgelse på
> > nettet, og vind et gavekort på 50.000 kroner..!
> > www.directoffice.dk/konkurrence
>
> Få en gratis emailkonto her: www.mail-online.dk
> -----------------------------------------------
> Deltag i en lille brugerundersøgelse på
> nettet, og vind et gavekort på 50.000 kroner..!
> www.directoffice.dk/konkurrence
>
>
>
>
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users