<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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&gt;&amp;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">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

  </pre>
</blockquote>
<br>
</body>
</html>