Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Jeff McKenna
Hi sorry long thread and I bet this has already been said, but here were
my thoughts when I read your problems:

- always test your mapfile at the commandline first, using the shp2img
utility (http://mapserver.org/utilities/shp2img.html).  Once your layers
look find there in the generated map image then move to your application

- if using MapServer CGI (mode=map), a blank map often means you are not
specifically telling MapServer to turn on layers; try adding &LAYERS=all

- or setting each of your layer's STATUS values to DEFAULT might work
(but this can cause lots of trouble later, so this is not often recommended)

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2/10/2014, 11:15 AM, Stefanos Anastasiou wrote:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Jörg Thomsen
Hi,

please have a look at your path:
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map
and
> http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map

I guess the first one is correct and that's why you get the error-msg
with the 2nd one. So, what exactly is the result of the request
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map ?
it sounds like a white image, not nothing. In this case you should check
the bboxes and srs first.

regards, Jörg


Am 10.02.2014 16:15, schrieb Stefanos Anastasiou:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Lars Lingner
Hello,

I can see a difference between

map=/home/mapdata/pelop.map&mode=map

and

map=/home/mapdata/pelop/map&mode=map

Hopefully it is just this typo "." vs "/"


Lars

On 10.02.2014 16:15, Stefanos Anastasiou wrote:
> Hello!!
> 
> I'am having my mapfile place in /home/mapdata folder whereas I also keep
> a couple of other mapfiles too. 
> I'm trying to load it in the following form on the
> browser: http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map
> 
> and all I get is a blank page. No errors no nothing. 
> 
> Then I created an html template in order to click it from there by
> creating a simple link (and not a from) in the following hyperlink:   href="http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map>
> This link 
> 
> And I get the following error: msLoadMap(): Unable to access file.  
> 
> Last time this happened I was invoking Mapserver through a form but this
> time it's just a simple link. 
> 
> Why is it happening ? 
> 
> The weird thing is that all the other mapfiles that are seem to be
> working are are having the same permission settings with the
> current: -rw-r--r-- 
> 
> Thanks a lot! 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver can't read mapfile

2014-02-10 Thread Stefanos Anastasiou
Hello!!

I'am having my mapfile place in /home/mapdata folder whereas I also keep a 
couple of other mapfiles too. 
I'm trying to load it in the following form on the browser: 
http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop.map&mode=map


and all I get is a blank page. No errors no nothing. 

Then I created an html template in order to click it from there by creating a 
simple link (and not a from) in the following hyperlink:  http://127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/pelop/map&mode=map> 
This link 

And I get the following error: msLoadMap(): Unable to access file.  

Last time this happened I was invoking Mapserver through a form but this time 
it's just a simple link. 

Why is it happening ? 

The weird thing is that all the other mapfiles that are seem to be working are 
are having the same permission settings with the current: -rw-r--r-- 

Thanks a lot! ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users