New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with OGCServer #7
Comments
Hi, Which ogcserver version are you using? |
Hi, i downloaded the version at 28 November from here an din changelog the Version is 0.1.0 (is there anywhere a version description in the package?) I have also tested these request with other epsg -> same result. |
I've updated cgiserver.py and common.py. Can you please try again? |
I will try it today at home and tell you my result |
Hi, After I updated the files mentioned the problem with V1.3.0 is gone. Content-Type: text/html
|
wms.py is a cgi script and it is meant to be run from a web server. When running from the command line some variables (i.e. SERVER_PORT) are not defined. Are you running from the command line because you want a test server? |
Something I've already thought of. I've tried the script only on the command line to check whether the previous Actually, I call the script on the above links. |
Try the above links with EXCEPTIONS=application/vnd.ogc.se_xml to see if you get more info. Also, check with -e option in nik2img that the coordinates are ok. If you still get the blank image, can you upload the xml and some data you are using? |
Okay i have changed the EXCEPTIONS Parameter but i get still a blank map. So here is my XML file. Because i don't know how i can upload Files directly to this location, i have used a free hoster. (Sorry) |
The mapfile.xml:
|
Try to ask for all layers: Also, Fluesse Layer name is duplicated. |
Now i have changed the Layers "Fluesse" to "Fluesse1" and "Fluesse2" and started both requests you mentioned above. But i get still a blank white map. I'm helpless. |
You need to add the SRS to your OSM layers: Check with nik2img -v which "Long/lat extent of all layers" are you getting. Paste your GetCapabilities if you still have problems: |
Wow now it runs without any problems. Yours sincerely, |
Thanks to you for reporting the initial bug ;) |
Hello,
i hope this is the correct place for my problem.
I used the OGCServer as a CGI Script (your wms.py) and i think the paths are set correctly.
But when i want to run the Server i have several Problems.
The Requestparameter that i used will work without problems with the UMN Mapserver. So i think the BBox and the projection are correctly set.
My XML File from that i read will also be found form the OGCServer and shows Map with nik2img.py.
What do i wrong to show a map in the Browser.
Traceback (most recent call last):
File "/usr/lib/cgi-bin/wms.py", line 29, in <module>
fcgi.Server({fcgi.FCGI_RESPONDER: OGCServerHandler}).run()
File "/usr/local/lib/python2.6/dist-packages/jon/fcgi.py", line 514, in run
self.handler_types[FCGI_RESPONDER]).process()
File "/usr/local/lib/python2.6/dist-packages/jon/cgi.py", line 476, in process
handler.traceback(self)
File "/usr/local/lib/python2.6/dist-packages/ogcserver/cgiserver.py", line 87, in traceback
eh = ExceptionHandler130(self.debug)
TypeError: __init__() takes at least 3 arguments (2 given)
Traceback (most recent call last):
File "/usr/lib/cgi-bin/wms.py", line 29, in <module>
fcgi.Server({fcgi.FCGI_RESPONDER: OGCServerHandler}).run()
File "/usr/local/lib/python2.6/dist-packages/jon/fcgi.py", line 514, in run
self.handler_types[FCGI_RESPONDER]).process()
File "/usr/local/lib/python2.6/dist-packages/jon/cgi.py", line 476, in process
handler.traceback(self)
File "/usr/local/lib/python2.6/dist-packages/ogcserver/cgiserver.py", line 87, in traceback
eh = ExceptionHandler111(self.debug)
TypeError: __init__() takes at least 3 arguments (2 given)
Could you help me to solve these Problems?
(Sorry for my bad English)
The text was updated successfully, but these errors were encountered: