[MapProxy] “could not get any sources: no image returned from source WMS” error in mapproxy demo

Rahkonen Jukka jukka.rahkonen at mmmtike.fi
Thu May 23 06:35:06 PDT 2013


Hi,

You can test WMS services by installing a program like QGis, Kosmo GIS, uDig or OpenJUMP, connecting with you server and reading the WMS layers.  The server URL to use in your case is
http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map

You can test WMS also with browser, this should show Finland for you from your service
http://localhost/cgi-bin/ms_ows?map=/home/mwh/osm-demo/basemaps/osm-google.map&
REQUEST=GetMap&
SERVICE=WMS&
VERSION=1.1.1&
WIDTH=903&
HEIGHT=636&
LAYERS=default&
TRANSPARENT=TRUE&
FORMAT=image%2Fpng&
BBOX=683222,8243620,4739737,11100000&
SRS=EPSG:900913&
STYLES=

However, it may be that your test URL is doing the same by reading source data in EPSG:4326 and sending it out re-projected into EPSG:3857 and thus the location of PROJ_LIB is not the reason for your trouble.   Continue with DEBUG 5 and by looking at the log files.

-Jukka Rahkonen-



Hishan Melanga wrote:

No I did not test whether my WMS service is working and I do not know how to do it. I've just imported OSM data into postgres database, checked whether it shows the map correctly using

http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all
Please give me some advice to figure it out.

On Thu, May 23, 2013 at 6:08 PM, Hishan Melanga <hishanm at gmail.com<mailto:hishanm at gmail.com>> wrote:
First of all I've missed an important information to include in my first question post. I am using osgeo-6.05 where MapProxy comes prebuild.
When I execute the command

mapproxy-util serve-develop mapproxy.yaml

It gave me an error as the following




[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml




[info]  * Running on http://127.0.0.1:8080/
Traceback (most recent call last):
  File "/usr/bin/mapproxy-util", line 9, in <module>
    load_entry_point('MapProxy==1.5.0', 'console_scripts', 'mapproxy-util')()








  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 337, in main
    commands[command]['func'](args)




  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 82, in serve_develop_command




    extra_files=[mapproxy_conf])
  File "/usr/lib/pymodules/python2.7/mapproxy/util/ext/serving.py", line 568, in run_simple
    test_socket.bind((hostname, port))




  File "/usr/lib/python2.7/socket.py", line 224, in meth




    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Since it tells the default port 8080 is used. I thought of a different method. In osgeo-6.05 there is a separate menu








menu called "Start MapProxy". When I hit that option my proxy got started without giving the above error. It produces the following lines when it starts.





[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml




[info]  * Running on http://0.0.0.0:8011/
[info]  * Restarting with reloader: stat() polling
[2013-05-23 17:04:59,716] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml










After that I used the link

http://localhost:8011/demo/

and viewed the demo site.

--
හිෂාන් මෙලංග | Hishan Melanga<http://hishanmelanga.blogspot.com/>



--
හිෂාන් මෙලංග | Hishan Melanga<http://hishanmelanga.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130523/b7be854d/attachment-0001.html>


More information about the MapProxy mailing list