Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have recently compiled MapServer 6.2 on a CentOS 6.3 machine. Since I compiled it --with-proj=/usr, all the PROJ4 related stuff resides in /usr/share/proj.

I've also installed proj4 with yum install proj, which installed PROJ4-Version 4.7.0.1.

I wanted to establish a simple WMS Server but ended up having these "no system list, errno: 2 " errors when issuing a GetMap-Request.

Weirdly, my PROJ4-Installation did not establish any epsg-File in /usr/share/proj, so I downloaded the current source of PROJ4 and extracted the epsg file from there and copied it to /usr/share/proj/epsg - after that I am getting similar errors, just with errno: 20 instead of errno: 2.

Here is my mapfile: wms.map

This is the request I am getting errors with:

http://*.*.ch/wms?map=wms.map&SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&LAYERS=Axis_NS&STYLES=&SRS=EPSG:21781&WIDTH=400&HEIGHT=300&FORMAT=image/png&BBOX=591800,185500,615000,201000

How can I debug this, and why did my PROJ4-Package not have an EPSG File included? Notice there is also no /nad-Folder, just two files nad27 and nad83 as well as nad.lst.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The PROJ_LIB parameter must point to a directory.

    STATUS ON
    CONFIG "PROJ_LIB" "/usr/share/proj/"
    SIZE 400 300

Appropriately: errno 20 (ENOTDIR) means "not a directory"

share|improve this answer
    
That did the trick, thanks. Still, from where do you know the meaning of those errno's? –  wnstnsmth Dec 20 '12 at 13:28
    
Google 'errno 20' or open errno.h in an editor –  unicoletti Dec 20 '12 at 13:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.