[mapserver-users] Re: MapScript WMS request

Mr. Puneet Kishor punk.kish at gmail.com
Wed Sep 7 19:12:55 EDT 2011


On Sep 7, 2011, at 5:49 PM, Mr. Puneet Kishor wrote:

> I am trying to convert my MapScript program to a WMS responder. I create my $map where I set all the layers and classes and colors, etc, just like for a normal, non-WMS request that works perfectly correctly.
> 
>  my $map = undef;
>  $map = mapObj(name => 'mymap') unless defined $map;
> 
>  my $req = new mapscript::OWSRequest();
>  $req->setParameter( "SERVICE", "WMS" );
>  $req->setParameter( "VERSION", "1.1.0" );
>  $req->setParameter( "REQUEST", "GetCapabilities" );

I changed the above line to 

   $req->setParameter( "REQUEST", "GetMap");

but, still no improvement.


> 
>  mapscript::msIO_installStdoutToBuffer();
>  my $dispatch_out = $map->OWSDispatch( $req );
>  printf "%s\n", mapscript::msIO_getStdoutBufferString();
> 
> Except, the above doesn't really do anything for me. I get nothing in my browser. Suggestions?
> 
> 
> --
> Puneet Kishor



More information about the mapserver-users mailing list