[mapserver-users] Python MapScript via WSGI examples
Jeff McKenna
jmckenna at gatewaygeomatics.com
Thu Jul 14 10:48:53 PDT 2016
Hi Tom,
I have added a link to your example from the MapServer wiki[1]. Once
you solve it, it would be great if you could update your example page
with the working code. VIP
[1] https://github.com/mapserver/mapserver/wiki
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-07-13 1:55 PM, Kralidis, Tom (EC) wrote:
> Hi all: we are looking into updating our Python MapScript (CGI-based) wrappers
> to leverage WSGI, and are having integration issues as part of testing.
>
> We are using 6.4.2 on Ubuntu 14.04. See example in [1] (against
> any mapfile is fine). Simple run with python ./mapscript-wsgi.py which makes
> the server available on localhost:8000 by default.
>
> Issues:
>
> - the value in https://gist.github.com/tomkralidis/9adbd4864c03647aa7eb4f96a3c33297#file-mapscript-wsgi-py-L18 ends up being a Python None type for some reason when it should be a string of the content-type
> - issuing a, say, WMS 1.3.0 GetCapabilities request yields the venerable MapServer "This script can ...." default message, when I am expecting Capabilities XML
>
> Any ideas what I'm doing wrong here?
>
> ..Tom
>
> [1] https://gist.github.com/tomkralidis/9adbd4864c03647aa7eb4f96a3c33297
More information about the MapServer-users
mailing list