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: > 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: http://mapserver.org/ogc/wms_server.html. > > The GetCapabilities request works: > http://terra/cgi-bin/mapserv?map=/var/www/html/map/rtc_base.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > The GetMap request fails: > 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 > > > The output returned is: > <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?> > <!DOCTYPE ServiceExceptionReport SYSTEM > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > <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 +nadgri...@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 > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
