<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Iskoola Pota";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML-esimuotoiltu Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML-esimuotoiltuChar
        {mso-style-name:"HTML-esimuotoiltu Char";
        mso-style-priority:99;
        mso-style-link:HTML-esimuotoiltu;
        font-family:Consolas;
        mso-fareast-language:FI;}
span.Shkpostityyli19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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 <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map">http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You can test WMS also with browser, this should show Finland for you from your service<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">http://localhost/cgi-bin/ms_ows?map=/home/mwh/osm-demo/basemaps/osm-google.map&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">REQUEST=GetMap&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">SERVICE=WMS&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">VERSION=1.1.1&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">WIDTH=903&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">HEIGHT=636&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">LAYERS=default&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">TRANSPARENT=TRUE&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">FORMAT=image%2Fpng&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">BBOX=683222,8243620,4739737,11100000&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">SRS=EPSG:900913&<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">STYLES=<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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 lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Hishan Melanga wrote:<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></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">http://localhost/cgi-bin/mapserv?map=/home/mwh/osm-demo/basemaps/osm-google.map&mode=browse&template=openlayers&layers=all</a>
<o:p></o:p></p>
</div>
<p class="MsoNormal">Please give me some advice to figure it out.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></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:<o:p></o:p></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.
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">When I execute the command <o:p>
</o:p></p>
<pre style="margin-bottom:12.0pt"><span style="font-size:13.5pt;color:#0B5394">mapproxy-util serve-develop mapproxy.yaml</span><o:p></o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></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><o:p></o:p></span></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red">  File "/usr/lib/python2.7/socket.py", line 224, in meth<br><br><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:red"><o:p> </o:p></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><o:p></o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></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><o:p></o:p></span></span></pre>
<pre><span style="font-size:13.5pt;color:lime"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt;color:#0B5394"><o:p> </o:p></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><o:p></o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></span></pre>
<pre><span style="font-size:13.5pt"><o:p> </o:p></span></pre>
<pre><o:p> </o:p></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><o:p></o:p></pre>
<pre><span style="font-size:13.5pt">and viewed the demo site. </span><o:p></o:p></pre>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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><o:p></o:p></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><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>