<div dir="ltr">Thank you very much. I just check my WMS using OpenJump. Layers are generating correctly. DEBUG 5 you mean Mapserver DEBUG 5 right?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 7:05 PM, Rahkonen Jukka <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="FI">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">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 <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><a href="http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map" target="_blank">http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">You can test WMS also with browser, this should show Finland for you from your service<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><a href="http://localhost/cgi-bin/ms_ows?map=/home/mwh/osm-demo/basemaps/osm-google.map&" target="_blank">http://localhost/cgi-bin/ms_ows?map=/home/mwh/osm-demo/basemaps/osm-google.map&</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">REQUEST=GetMap&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">SERVICE=WMS&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">VERSION=1.1.1&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">WIDTH=903&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">HEIGHT=636&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">LAYERS=default&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">TRANSPARENT=TRUE&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">FORMAT=image%2Fpng&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">BBOX=683222,8243620,4739737,11100000&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">SRS=EPSG:900913&<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">STYLES=<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">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.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p></font></span><div><div class="h5">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">Hishan Melanga wrote:<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">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
</span>database, checked whether it shows the map correctly using <br>
<br>
<a href="http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all" target="_blank">http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all</a>
<u></u><u></u></p>
</div>
<p class="MsoNormal">Please give me some advice to figure it out.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, May 23, 2013 at 6:08 PM, Hishan Melanga <<a href="mailto:hishanm@gmail.com" target="_blank">hishanm@gmail.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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.
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">When I execute the command <u></u>
<u></u></p>
<pre style="margin-bottom:12.0pt"><span style="font-size:13.5pt;color:#0b5394">mapproxy-util serve-develop mapproxy.yaml</span><u></u><u></u></pre>
<pre><span style="font-size:13.5pt;font-family:"Arial","sans-serif"">It gave me an error as the following</span><span style="font-size:13.5pt"><br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt"><br><span style="color:red">[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml<br><br><u></u><u></u></span></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red">[info]  * Running on <a href="http://127.0.0.1:8080/" target="_blank">http://127.0.0.1:8080/</a><br>Traceback (most recent call last):<br>  File "/usr/bin/mapproxy-util", line 9, in <module><br>
    load_entry_point('MapProxy==1.5.0', 'console_scripts', 'mapproxy-util')()<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red">  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 337, in main<br>    commands[command]['func'](args)<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red">  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 82, in serve_develop_command<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red">    extra_files=[mapproxy_conf])<br>  File "/usr/lib/pymodules/python2.7/mapproxy/util/ext/serving.py", line 568, in run_simple<br>    test_socket.bind((hostname, port))<br>
<br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red">  File "/usr/lib/python2.7/socket.py", line 224, in meth<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:red"><u></u> <u></u></span></pre>
<pre style="margin-bottom:12.0pt"><span style="font-size:13.5pt;color:red">    return getattr(self._sock,name)(*args)<br>socket.error: [Errno 98] Address already in use</span><u></u><u></u></pre>
<pre><span style="font-size:13.5pt">Since it tells the default port 8080 is used. I thought of a different method. In osgeo-6.05 there is a separate menu<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt">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.<br><span style="color:lime"><br>
<br><u></u><u></u></span></span></pre>
<pre><span style="font-size:13.5pt;color:lime"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:#0b5394">[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml<br><br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt;color:#0b5394"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt;color:#0b5394">[info]  * Running on <a href="http://0.0.0.0:8011/" target="_blank">http://0.0.0.0:8011/</a><br>[info]  * Restarting with reloader: stat() polling<br>[2013-05-23 17:04:59,716] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml</span><span style="font-size:13.5pt"><br>
<br><u></u><u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><span style="font-size:13.5pt"><u></u> <u></u></span></pre>
<pre><u></u> <u></u></pre>
<pre style="margin-bottom:12.0pt"><span style="font-size:13.5pt">After that I used the link<br><br><a href="http://localhost:8011/demo/" target="_blank">http://localhost:8011/demo/</a></span><u></u><u></u></pre>
<pre><span style="font-size:13.5pt">and viewed the demo site. </span><u></u><u></u></pre>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">-- <br>
<a href="http://hishanmelanga.blogspot.com/" target="_blank"><span style="font-family:"Iskoola Pota","sans-serif"">හිෂාන්</span>
<span style="font-family:"Iskoola Pota","sans-serif"">මෙලංග</span> | Hishan Melanga</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
<a href="http://hishanmelanga.blogspot.com/" target="_blank"><span style="font-family:"Iskoola Pota","sans-serif"">හිෂාන්</span>
<span style="font-family:"Iskoola Pota","sans-serif"">මෙලංග</span> | Hishan Melanga</a><u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div>