<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=508435609-13102009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=508435609-13102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=508435609-13102009>I fear I can't help you more with this. There
might be something wrong with environment settings or in compiling Mapserver but
I only use MS4W so I have never suffered from these
problems.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=508435609-13102009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=508435609-13102009>-Jukka-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Lähettäjä:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Adrian
Popa<BR><B>Lähetetty:</B> 13. lokakuuta 2009 11:59<BR><B>Vastaanottaja:</B>
Rahkonen Jukka<BR><B>Kopio:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> Re: [mapserver-users]
msProcessProjection(): Projection libraryerror.no system list, errno:
13<BR></FONT><BR></DIV>
<DIV></DIV>Hello Jukka,<BR><BR>I have added the PROJ_LIB statement in the map
file. Unfortunately, nothing changes... strace still shows that shp2img tries
to read /usr/share/proj/null (and it succeeds).<BR>I have added the line with
the google projection to the end of the epsg (and null) file.<BR><BR>I still
get the same error.<BR><BR>Is there any way I can call proj + some parameters
to ask for a projection between WGS84 to Google? I'd like to close in on the
problem.<BR><BR>Thanks,<BR>Adrian<BR><BR>Rahkonen Jukka wrote:
<BLOCKQUOTE
cite=mid:CC197224AC75CE4DB23F739B16891B8601879629@tikka.haapa.mmm.fi
type="cite">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009>Hi,</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009>First, it is possible to tell Mapserver where
to find the projection files in the mapfile, in MAP section.
Excerpt from <A href="http://www.mapserver.org/mapfile/map.html"
moz-do-not-send="true">http://www.mapserver.org/mapfile/map.html</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=078092008-13102009>
<DT><FONT face=Arial color=#0000ff size=2>PROJ_LIB [path]<BR>The CONFIG
parameter can be used to define the location of your EPSG files for the
Proj.4 library. Setting the [key] to PROJ_LIB and the [value] to the
location of your EPSG files will force PROJ.4 to use this value. Using
CONFIG allows you to avoid setting environment variables to point to your
PROJ_LIB directory. Here are some examples:</FONT>
<DT><FONT face=Arial color=#0000ff size=2>Unix</FONT>
<DT><FONT face=Arial color=#0000ff size=2>CONFIG "PROJ_LIB"
"/usr/local/share/proj/"</FONT> </SPAN></DT></DIV>
<DIV dir=ltr><SPAN class=078092008-13102009></SPAN> </DIV></DIV>
<DIV><SPAN class=078092008-13102009></SPAN> </DIV>
<DIV><SPAN class=078092008-13102009><FONT face=Arial color=#0000ff
size=2>Second, M</FONT></SPAN><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009>apserver epsg file ships without Google projection.
Without adding the definition it is impossible to refer to epsg:900913
projection with the code number. Have you added corresponding line to the
epsg file, whitch is usually in /usr/share/proj/epsg?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=078092008-13102009><900913> +proj=merc +a=6378137 +b=6378137
+lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m <A
href="mailto:+nadgrids=@null" moz-do-not-send="true">+nadgrids=@null</A>
+no_defs</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><SPAN class=078092008-13102009><FONT face=Arial color=#0000ff
size=2>Put it on the first line so Mapserver finds it immediately without a
need to go through the whole list. </FONT></SPAN></DIV>
<DIV><SPAN class=078092008-13102009></SPAN> </DIV><SPAN
class=078092008-13102009>
<DIV dir=ltr><SPAN class=078092008-13102009><FONT face=Arial color=#0000ff
size=2>-Jukka Rahkonen-</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>L�hett�j�:</B> <A
class=moz-txt-link-abbreviated
href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</A>
[<A class=moz-txt-link-freetext
href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</A>]
<B>Puolesta </B>Adrian Popa<BR><B>L�hetetty:</B> 13. lokakuuta 2009
10:55<BR><B>Vastaanottaja:</B> Lars Lingner<BR><B>Kopio:</B> <A
class=moz-txt-link-abbreviated
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><B>Aihe:</B>
Re: [mapserver-users] msProcessProjection(): Projection library error.no
system list, errno: 13<BR></FONT><BR></DIV>Update:<BR><BR>I have symlinked
the null file to epsg, and now strace shows that the file is read, but I
still get the same error when trying to call WMS GetMap...
:(<BR><BR>[root@terra map]# ls -l /usr/share/proj/null<BR>lrwxrwxrwx 1
root root 20 Oct 13 10:50 /usr/share/proj/null ->
/usr/share/proj/epsg<BR><BR><BR>Adrian Popa wrote:
<BLOCKQUOTE cite=mid:4AD43115.9050405@romtelecom.ro type="cite">Thank
you for your reply Lars, my info is inline.<BR><BR>Lars Lingner wrote:
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">Adrian Popa schrieb:
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">Hmm, any idea on this one? How can I find out if proj is trying to read
the epsg file? I'm thinking of using strace to see what files it tries
to open, but I don't know what syntax to use to try to project from 4326
to 900913...
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
Just to clarify:
- Your data is in wgs84 (epsg:4326)
</PRE></BLOCKQUOTE>Yes<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- you want to serve mercator projection (epsg:900913)
</PRE></BLOCKQUOTE>Yes (the frontend will be OpenLayers (through
TileCache)<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">A few questions:
- are there any errors in the capabilities document?
</PRE></BLOCKQUOTE>No, it looks ok. I can post it if you want, but
it's a bit large. It outputs an XML which describes the layers,
projections and some settings from the map file. I haven't seen another
working GetCapabilites file, so I can't tell if it's missing
something...<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- did you tried to use mapserver logging (MS_ERRORFILE) and high debug
level (DEBUG 5)
</PRE></BLOCKQUOTE>Here is the output after enabling MS_ERRORFILE and
DEBUG 5 at layer level and at map level:<BR>[Tue Oct 13 10:36:36
2009].954434 msProcessProjection(): Projection library error. no system
list, errno: 13<BR><BR>[Tue Oct 13 10:36:36 2009].954562 mapserv request
processing time (msLoadMap not incl.): 0.000s<BR>[Tue Oct 13 10:36:36
2009].954584 msFreeMap(): freeing map at 0x8496ac8.<BR>[Tue Oct 13
10:36:36 2009].954651 freeLayer(): freeing layer at 0x84a9378.<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- could you try to use shp2img, maybe this gives you a bit more information?
</PRE></BLOCKQUOTE>[root@terra map]# shp2img -o /tmp/out.png -m
/var/www/html/map/rtc_base.map -e "20.259999999999998 43.16
29.700000000000003 49.2016" -s "1250 800" -l "GranitaJudete"<BR>This
works just fine (however it doesn't use WMS!). The image displayed is
correct (and it is projected in mercator projection!).<BR><BR>If I
run:<BR>[root@terra map]# strace shp2img -o /tmp/out.png -m
/var/www/html/map/rtc_base.map -e "20.259999999999998 43.16
29.700000000000003 49.2016" -s "1250 800" -l "GranitaJudete" 2>&1
| grep epsg<BR>.. I don't get any matches on the epsg file that is
supposed to be used by proj.<BR>Looking through the output of strace, I
can see it tries to open some proj-related
files...<BR>open("/usr/share/proj/proj_def.dat", O_RDONLY) = -1 ENOENT
(No such file or directory)<BR>open("/usr/share/proj/null",
O_RDONLY) = -1 ENOENT (No such file or directory)<BR><BR>I wonder
why it tries to open a file called null - maybe an error?<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- did you compile MapServer and the dependencies by yourself?
</PRE></BLOCKQUOTE>Yes. These are my configure
arguments:<BR>./configure --with-freetype --with-png
--with-agg=../agg-2.5 --with-proj --with-ogr --with-gdal --with-xml2
--with-wfs --with-wcs \<BR>--with-wmsclient --with-wfsclient
--with-postgis --with-threads --with-sos --with-mygis --with-geos
--with-tiff<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- what MapServer version do you use?
</PRE></BLOCKQUOTE>version 5.4.1<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">- do you have Proj4 installed? (OpenLayers doesn't use the same lib, it
uses the javascript lib)
</PRE></BLOCKQUOTE>[adrianp@terra mapserver]$ rpm -qa | grep
proj<BR>proj-devel-4.5.0-1.fc5<BR>proj-4.5.0-1.fc5<BR><BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">I hope it does not look like keeping you busy, but without further
information its difficult to help.
</PRE></BLOCKQUOTE>Your help is very much appreciated. Any idea is a
good one because it might get me out of this predicament.
:)<BR>Regards,<BR>Adrian<BR><BR>P.S. If I understand how projections
work - if I "call" the projection with it's EPSG code it needs the epsg
file to get the details about the projection. In my layers I'm using the
EPSG definition instead the EPSG code to define my projections. If I
switch to codes it won't work (I have tried a few months ago). So, to
me, it seems mapserver (or proj) can't get the definitions from the epsg
file (maybe because it searches for the wrong file). I will try to
create the file and try again. I'll let you know how it works.<BR>
<BLOCKQUOTE cite=mid:4AD418F5.7030602@lingner.eu type="cite"><PRE wrap="">Lars
_______________________________________________
mapserver-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:mapserver-users@lists.osgeo.org" moz-do-not-send="true">mapserver-users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A>
</PRE></BLOCKQUOTE><BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
mapserver-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:mapserver-users@lists.osgeo.org" moz-do-not-send="true">mapserver-users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A>
</PRE></BLOCKQUOTE><BR></BLOCKQUOTE></SPAN></BLOCKQUOTE><BR><BR></BLOCKQUOTE></BODY></HTML>