[mapserver-users] msLoadMap(): Unable to access file.

Sangita M Shirode sangita.shirode at igate.com
Thu Nov 29 03:05:02 PST 2012


This is my first example on mapserver

Trying to simulate application given here http://spatialhorizons.com/2007/12/09/sample-dataset-world-map/



I'm getting the following error

msLoadMap(): Unable to access file. (/home/sangitas/softwares/ex1/world_mapfile.map)

while opening the following link from the browser

http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map

where as http://10.210.43.209/cgi-bin/mapserv<http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map> link works as expected.

I made the changes in the map file as followes

 'wms_onlineresource'  'http://localhost/cgi-bin/mapserv.exe?map=/home/sangitas/softwares/ex1/world_mapfile.map&'



LAYER

NAME 'world_raster'

TYPE RASTER

DATA '/home/sangitas/softwares/ex1/img/world_raster.tif'



LAYER

NAME 'world_adm0'

TYPE POLYGON

DATA '/home/sangitas/softwares/ex1/data/world_adm0.shp'



Also added following in httpd.conf

<Directory "/home/sangitas/softwares/ex1">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride all
        Allow from all
        Order allow,deny
</Directory>
<Directory "/home/sangitas/softwares/ex1/img">
 AllowOverride all
        Allow from all
</Directory>
<Directory "/home/sangitas/softwares/ex1/data">
        AllowOverride all
        Allow from all
</Directory>

Request you to guide me to run this so that I can move further & try the same application with openlayers.




Thanks & Regards,
Sangita

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igate.com <mailto:mailadmin at igate.com>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit www.igate.com <http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121129/6b9e6910/attachment-0001.html>


More information about the mapserver-users mailing list