<!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">
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...<br>
<br>
<br>
Adrian Popa wrote:
<blockquote cite="mid:4AD32DF2.1030603@romtelecom.ro" type="cite">
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
Hello, <br>
<br>
Thanks for your answers.<br>
<br>
I had already included the google EPSG in the proj main file:<br>
[root@terra map]# cat /usr/share/proj/epsg | grep 900913<br>
<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 +nadgrids=@null +no_defs<br>
<br>
I have added "wms_srs" "EPSG:900913 EPSG:4326" to my map file, but the
GetMap request fails for both SRS 900913 and SRS 4326 with the same
error message.<br>
<br>
My linux version is Fedora Core 5. I'm not sure if the location of theĀ
epsg is correct, but it works ok with openlayers (running on the same
server).<br>
<br>
Regards,<br>
Adrian<br>
<br>
Milo van der Linden wrote:
<blockquote cite="mid:4AD32582.1090909@zeelandnet.nl" type="cite">
<pre wrap="">Hello Adrian,
Change the METADATA section of your mapfile from:
"wms_srs" "EPSG:900913"
to
"wms_srs" "EPSG:900913 EPSG:4326 EPSG:<whatever projections you want to
expose>"
the wms_srs parameter for the MAP is a collection of space separated
EPSG codes that tells the wms-server what projections it supports.
Please use this space seperated list ONLY at the MAP section, when in
Layers, wms_srs needs to be a single EPSG-code that is native to the
particular layer
Good luck!
Milo van der Linden
Adrian Popa schreef:
</pre>
<blockquote type="cite">
<pre wrap="">Hello all!
I'm trying to convert my regular MAP file to be WMS compliant and to
be able to get the contents through WMS requests. I am following the
tutorial here: <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://mapserver.org/ogc/wms_server.html">http://mapserver.org/ogc/wms_server.html</a>.
The GetCapabilities request works:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities">http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</a>
The GetMap request fails:
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=GranitaJudete&STYLES=&SRS=EPSG:4326">http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=GranitaJudete&STYLES=&SRS=EPSG:4326</a>
The output returned is:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"</a>>
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msProcessProjection(): Projection library error. no system list,
errno: 13
</ServiceException>
</ServiceExceptionReport>
The Map file has the following definitions:
MAP
...
WEB
...
METADATA
...
"wms_title" "Basic Map"
"wms_attribution_title" "Basic Map"
"wms_srs" "EPSG:900913"
END
END
PROJECTION
#spherical mercator/google
"+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 +nadgrids=@null +no_defs"
END
LAYER
NAME "GranitaJudete"
...
METADATA
"wms_title" "GranitaJudete"
"wms_srs" "EPSG:4326"
END
PROJECTION
#WGS84
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
END
...
END
END
The thing is (if I remember correctly) my mapserver doesn't really
recognize projections by their EPSG code, but it works if I supply the
other definition. I'm not sure how to correct that and I don't know if
this is the cause.
I've looked into PROJ4 source code and I found refrences to errorcode
-13 in this function: PJ *pj_latlong_from_proj( PJ *pj_in ) from
src/pj_utils.c. It returns errorcode -13 if can't find "datum",
"ellps" or "a".
I'm not sure where to go from here, as google doesn't find this
particular error code...
Thanks
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
<br>
<pre class="moz-signature" cols="72">--
---
Adrian Popa
NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP & Metro
Compartiment IP Core & Backbone
Phone: +40 21 400 3099
</pre>
</body>
</html>