<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:14pt"><div class="" style=""><span class="" style="">Correction about the last one: I had a typo in the path when running the mapfile straight in the browser. The correct is </span><span style="font-size: 14pt;" class="">http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.map&mode=map</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 14pt; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 14pt;" class=""><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 19px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 14pt;" class="">and it still appears a blank page. </span></div><div class="" style="color:
 rgb(0, 0, 0); font-size: 14pt; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 14pt;" class=""><br></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 19px; font-family: 'bookman old style', 'new york', times, serif; background-color: transparent; font-style: normal;">-Stefanos</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: bookman old style, new york, times, serif; font-size: 14pt;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> Στις 6:57 μ.μ. Δευτέρα, 2 Ιουνίου 2014, ο/η Stefanos Anastasiou <emperor_stef@yahoo.gr> έγραψε:<br class="" style=""> </font> </div>  <br class=""
 style=""><br class="" style=""> <div class="" style=""><div id="yiv8540436401" class="" style=""><div class="" style=""><div style="color:#000;background-color:#fff;font-family:bookman old style, new york, times, serif;font-size:14pt;" class=""><div class="" style=""><span class="" style="">Hi Jeff,</span></div><div class="" style="color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;background-color:transparent;font-style:normal;"><span class="" style="">thanks for your reply. </span></div><div class="" style="color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;background-color:transparent;font-style:normal;"><span class="" style="">- I indeed used the ogrinfo utility and I gave me the extent in GCS_GGRS_1987. So I transformed the coordinates to WGS84. </span></div><div class="" style="color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new
 york', times, serif;background-color:transparent;font-style:normal;"><span class="" style=""><br clear="none" class="" style=""></span></div><div class="" style="color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;background-color:transparent;font-style:normal;">- I also had my moved my data one folder up (that is also my Shapepath /home/mapdata/data/) just to make sure.</div><div class="" style="color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;background-color:transparent;font-style:normal;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;">-The output of "<span class="" style="background-color:transparent;">shp2img -m dasarxeia.map -o test.png -all_debug 3" gives me the following: </span></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york',
 times, serif;font-style:normal;"><span class="" style="background-color:transparent;"><br clear="none" class="" style=""></span></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;font-style:normal;"><span class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].50643 msLoadMap(): 0.001s</span></div><div class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].54233 msDrawMap(): rendering using outputformat named jpeg (AGG/JPEG).</div><div class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].54749 msDrawMap(): Layer 0 (Dasarxeia), 0.000s</div><div class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].54951 msDrawMap(): Drawing Label Cache, 0.000s</div><div class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].55124 msDrawMap() total time:
 0.004s</div><div class="" style="background-color:transparent;">[Mon Jun
  2 18:48:09 2014].75257 msSaveImage(test.png) total time: 0.020s</div><div class="" style="background-color:transparent;">[Mon Jun  2 18:48:09 2014].75714 shp2img total time: 0.026s</div><div class="" style="background-color:transparent;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;font-style:normal;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old style', 'new york', times, serif;font-style:normal;">Another weird thing I noticed is that if I try to run the mapfile itself on the browser (http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/dasarxeia.map&mode=map) it gives me an error</div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:19px;font-family:'bookman old
 style', 'new york', times, serif;font-style:normal;">-----> <span class="" style="font-family:'Times New Roman';font-size:16px;">msLoadMap(): Unable to access file. (/home/stefanos/mapdata/dasarxeia.map) </span></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;">The permissions that are set for the mapfile are:  -rw-rw-rw-</div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;">I was also wondering if it is some kind of a configuration in Apache's http.conf</div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New
 Roman';font-style:normal;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;">Thanks</div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;"><br clear="none" class="" style=""></div><div class="" style="background-color:transparent;color:rgb(0, 0, 0);font-size:16px;font-family:'Times New Roman';font-style:normal;">-Stefanos </div><div class="" style=""><br clear="none" class="" style=""></div> <div class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""></div><div class="" id="yiv8540436401yqt21566" style=""><div class="" style="display:block;"> <div class="" style="font-family:bookman old style, new york, times, serif;font-size:14pt;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica,
 Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div class="" dir="ltr" style=""> <font class="" size="2" face="Arial" style=""> Στις 3:57 μ.μ.
 Δευτέρα, 2 Ιουνίου 2014, ο/η Jeff McKenna <jmckenna@gatewaygeomatics.com> έγραψε:<br clear="none" class="" style=""> </font> </div>  <br clear="none" class="" style=""><br clear="none" class="" style=""> <div class="" style="">Hi Stefanos,<br clear="none" class="" style=""><br clear="none" class="" style="">Some comments:<br clear="none" class="" style=""><br clear="none" class="" style="">- the best way to get the exact extent is to use the ogrinfo commandline<br clear="none" class="" style="">utility with the "-summary" switch:<br clear="none" class="" style=""><br clear="none" class="" style="">  ogrinfo dasarxeia.shp dasarxeia -summary<br clear="none" class="" style=""><br clear="none" class="" style="">- be careful with your SHAPEPATH, if your file is<br clear="none" class="" style="">/home/mapdata/data/dasarxeia.shp then I would put for your SHAPEPATH<br clear="none" class="" style="">"/home/mapdata/data/"<br
 clear="none" class="" style=""><br clear="none" class="" style="">- when using shp2img, at the end of the command add "-all_debug 3" to<br clear="none" class="" style="">see more useful error messages/notices<br clear="none" class="" style=""><br clear="none" class="" style="">- sometimes extent values in QGIS can be confusing, because sometimes it<br clear="none" class="" style="">can display the data in a different projection without you knowing it<br clear="none" class="" style="">(Project Properties/CRS/Enable 'on the fly' transformation)...so be careful<br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style="">-jeff<br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style="">-- <br clear="none" class="" style="">Jeff McKenna<br clear="none" class="" style="">MapServer Consulting and Training
 Services<br clear="none" class="" style=""><a rel="nofollow" shape="rect" class="" target="_blank" href="http://www.gatewaygeomatics.com/" style="">http://www.gatewaygeomatics.com/</a><br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style=""><div class="" id="yiv8540436401yqtfd01168" style=""><br clear="none" class="" style="">On 2014-06-01, 4:31 PM, Stefanos Anastasiou wrote:<br clear="none" class="" style="">> Hi Jeff,<br clear="none" class="" style="">> <br clear="none" class="" style="">> I came to this old post once again and I tried the above mentioned.<br clear="none" class="" style="">> shp2img still produces an image which is blank or whatever the color of<br clear="none" class="" style="">> the mapfile is defined. On the other hand I checked the EXTENT once<br clear="none" class="" style="">> again and it was wrong so I changed to the appropriate one (EXTENT 17.00<br clear="none"
 class="" style="">> 33.00 32.00 42.00) which I checked on
 QGIS in WGS84 so it should be<br clear="none" class="" style="">> fine. If STATUS is set to default or On there's no difference. I also<br clear="none" class="" style="">> changed TYPE to line and polygon just to be sure but nothing. <br clear="none" class="" style="">> <br clear="none" class="" style="">> My shapefile is a polygon with boundaries.  Why wouldn't it appear on<br clear="none" class="" style="">> the browser?<br clear="none" class="" style="">> <br clear="none" class="" style="">> Thanks again and I'm sorry for writing about it so late.<br clear="none" class="" style="">> <br clear="none" class="" style="">> Stefanos<br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> Στις 7:15 μ.μ. Δευτέρα, 10 Φεβρουαρίου 2014, ο/η Jeff McKenna<br clear="none" class="" style="">> <<a rel="nofollow" shape="rect" class=""
 ymailto="mailto:jmckenna@gatewaygeomatics.com" target="_blank" href="mailto:jmckenna@gatewaygeomatics.com" style="">jmckenna@gatewaygeomatics.com</a>> έγραψε:<br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> Hi sorry long thread and I bet this has already been said, but here were<br clear="none" class="" style="">> my thoughts when I read your problems:<br clear="none" class="" style="">> <br clear="none" class="" style="">> - always test your mapfile at the commandline first, using the shp2img<br clear="none" class="" style="">> utility (<a rel="nofollow" shape="rect" class="" target="_blank" href="http://mapserver.org/utilities/shp2img.html" style="">http://mapserver.org/utilities/shp2img.html</a>).  Once your layers<br clear="none" class="" style="">> look find there in the generated map image then move to your application<br clear="none" class=""
 style="">> <br clear="none" class="" style="">> - if using MapServer CGI (mode=map), a blank map often means you are not<br clear="none" class="" style="">> specifically telling MapServer to turn on layers; try adding &LAYERS=all<br clear="none" class="" style="">> <br clear="none" class="" style="">> - or setting each of your layer's STATUS values to DEFAULT might work<br clear="none" class="" style="">> (but this can cause lots of trouble later, so this is not often recommended)<br clear="none" class="" style="">> <br clear="none" class="" style="">> -jeff<br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> -- <br clear="none" class="" style="">> Jeff McKenna<br clear="none" class="" style="">> MapServer Consulting and Training Services<br clear="none" class="" style="">> <a rel="nofollow" shape="rect"
 class="" target="_blank" href="http://www.gatewaygeomatics.com/" style="">http://www.gatewaygeomatics.com/</a><br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> <br clear="none" class="" style="">> On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote:<br clear="none" class="" style="">>> Hello!!<br clear="none" class="" style="">>><br clear="none" class="" style="">>> I'am having my mapfile place in /home/mapdata folder whereas I also keep<br clear="none" class="" style="">>> a couple of other mapfiles too.<br clear="none" class="" style="">>> I'm trying to load it in the following form on the<br clear="none" class="" style="">>> browser:<br clear="none" class="" style="">> <a rel="nofollow" shape="rect" class="" target="_blank"  href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map"
 style="">http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map</a><br clear="none" class="" style="">>><br clear="none" class="" style="">>> and all I get is a blank page. No errors no nothing.<br clear="none" class="" style="">>><br clear="none" class="" style="">>> Then I created an html template in order to click it from there by<br clear="none" class="" style="">>> creating a simple link (and not a from) in the following hyperlink:  <a<br clear="none" class="" style="">>><br clear="none" class="" style="">> href="<a rel="nofollow" shape="rect" class="" target="_blank"  href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map" style="">http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map</a>><br clear="none" class="" style="">>> This link </a><br clear="none" class="" style="">>><br clear="none" class=""
 style="">>> And I get the following error: msLoadMap(): Unable to access file. <br clear="none" class="" style="">>><br clear="none" class="" style="">>> Last time this happened I was invoking Mapserver through a form but this<br clear="none" class="" style="">>> time it's just a simple link.<br clear="none" class="" style="">>><br clear="none" class="" style="">>> Why is it happening ?<br clear="none" class="" style="">>><br clear="none" class="" style="">>> The weird thing is that all the other mapfiles that are seem to be<br clear="none" class="" style="">>> working are are having the same permission settings with the<br clear="none" class="" style="">>> current: -rw-r--r--<br clear="none" class="" style="">>><br clear="none" class="" style="">>> Thanks a lot!<br clear="none" class="" style="">> <br clear="none" class="" style="">>><br clear="none" class=""
 style="">>><br clear="none" class="" style=""><br clear="none" class="" style=""><br clear="none" class="" style="">_______________________________________________<br clear="none" class="" style="">mapserver-users mailing list<br clear="none" class="" style=""><a rel="nofollow" shape="rect" class="" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org" style="">mapserver-users@lists.osgeo.org</a><br clear="none" class="" style=""><a rel="nofollow" shape="rect" class="" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" style="">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div><br clear="none" class="" style=""><br clear="none" class="" style=""></div>  </div> </div>  </div></div> </div></div></div><br class="" style=""><div class="" id="yqt78017" style="">_______________________________________________<br clear="none" class=""
 style="">mapserver-users mailing list<br clear="none" class="" style=""><a shape="rect" ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org" class="" style="">mapserver-users@lists.osgeo.org</a><br clear="none" class="" style=""><a shape="rect" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank" class="" style="">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>