[OpenLayers-Users] Openlayers with mapserv

James McManus jmpmcmanus at yahoo.com
Mon Aug 20 21:27:47 EDT 2007


Christopher Schmidt wrote:
> On Mon, Aug 20, 2007 at 07:15:25PM -0400, James McManus wrote:
>   
>> I am using MS 5.0 beta 4, but have also tried MS 4.10.2 and get the same 
>> error. It looks like mapwms.c is producing the error. The URL to 
>> MDI.html is:
>>
>> http://www.aratasystems.com/OL/MDI.html
>>     
>
> Right, if you view the image:
>
> http://www.aratasystems.com/cgi-bin/mapserv?map=/var/www/html/mapdata/MDI.map&LAYERS=roads&TRANSPARENT=false&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-68.5%2C-288.26755%2C240.94565%2C44.1&WIDTH=540&HEIGHT=580
>
> ... Okay, this changed while I was debugging it. Looks like
> /usr/share/proj/epsg is missing? 
>
>   
/usr/share/proj/epsg is there. I been looking at past list messages with 
similar problems, and they refer to the mapfile having additional 
information, on the projection, for wms access. I added

PROJECTION
   "init=EPSG:4326"
END

to the top of my mapfile and

METADATA
    "wms_srs" "EPSG:4326"
    "wms_format" "image/png"
END

to the layer I am trying to display. Do I need this information in the 
mapfile? Do I need additional information in the mapfile, to give WMS 
access? I am going to look at mapserver documentation to see if they 
have a description on how to do this.

Jim



More information about the Users mailing list