Hi,

Try using a valid WMS request.  &mode=map is Mapserver option, on the other 
hand your request is missing a few compulsory WMS parameters. Here is an 
excerpt from Mapserver WMS document (http://mapserver.org/ogc/wms_server.html):

Test With a GetMap Request

OK, now that we know that our server can produce a valid XML GetCapabilities 
response we should test the GetMap request. MapServer only checks for a few of 
the required GetMap parameters, so both of the minimum MapServer parameters and 
a valid GetMap request will be explained below.

The following is a list of the required GetMap parameters according to the WMS 
spec:

    VERSION=version: Request version
    REQUEST=GetMap: Request name
    LAYERS=layer_list: Comma-separated list of one or more map layers. Optional 
if SLD parameter is present.
    STYLES=style_list: Comma-separated list of one rendering style per 
requested layer. Optional if SLD parameter is present. NOTE that MapServer does 
not support named styles, so most times you would specify “STYLES=” with an 
empty value. MapServer does support STYLES when used with an SLD.
    SRS=namespace:identifier: Spatial Reference System.
    BBOX=minx,miny,maxx,maxy: Bounding box corners (lower left, upper right) in 
SRS units.
    WIDTH=output_width: Width in pixels of map picture.
    HEIGHT=output_height: Height in pixels of map picture.
    FORMAT=output_format: Output format of map.

Remember when playing with valid WMS requests that BBOX is meaning the output 
extents and BBOX coordinates must suit the SRS.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: [email protected] puolesta: 
[email protected]
Lähetetty: ma 15.6.2009 16:40
Vastaanottaja: [email protected]
Aihe: RE: [mapserver-users] Ignoring top level settings
 
Thanks Jukka,
 
But when I go directly to 
http://localhost/cgi-bin/mapserv.exe?map=../test/service/alex.map&service=WMS&version=1.1.1&layer=gcar&SRS=EPSG:42304&mode=map
 , the map looks identical no matter what I put in &SRS=EPSG:xxxxx
 
Right now the image is okay because my mapfile says the source projection is 
inverted. This makes it output the correct images, but the coordinates are all 
wrong, and I'm gonig to need to use correct coordinates.
 
Thanks again,
Alexandre Laplante

        -----Original Message-----
        From: [email protected] 
[mailto:[email protected]] On Behalf Of Rahkonen Jukka
        Sent: June 12, 2009 7:27 AM
        To: [email protected]; [email protected]
        Subject: Re: [mapserver-users] Ignoring top level settings
        
        
        Hi,
         
        Could it be so that OpenLayers inserts extents and projection in the 
request, and Mapserver gives what it is asked for?  At least in normal WMS 
usage map level PROJECTION and EXTENT do not have an effect, Mapserver is 
sending the image in the requested projection, from a requested area.
         
        -Jukka Rahkonen-


________________________________

                Lähettäjä: [email protected] 
[mailto:[email protected]] Puolesta 
[email protected]
                Lähetetty: 11. kesäkuuta 2009 23:26
                Vastaanottaja: [email protected]
                Aihe: RE: [mapserver-users] Ignoring top level settings
                
                
                
                I I've discovered that the base layer rendering as jpg was a 
problem with my openlayers, not mapserver. However, I still can't change my 
top-level projection or extent. Any help is greatly appreciated.
                 
                Thank you.
                 
                 -----Original Message-----
                From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
                Sent: June 8, 2009 9:35 AM
                To: [email protected]
                Subject: [mapserver-users] Ignoring top level settings
                
                

                        Hello list, 

                        It seems as though my top level settings in my mapfile 
are being ignored. No matter what I put as projection, the output doesn't 
change (unless it's an invalid projection). Changing the values of EXTENT 
doesn't change anything either, as my map always starts zoomed out very far. I 
also have not been able to make my base layer output as anything other than jpg.

                        I have a feeling that this is related to an invalid 
/tmp/ location in the mapfile. I have not been able to write the location of 
the /tmp/ folder (it's on the root of my c: drive) in a way that mapserver will 
use it.

                        Apart from these things, everything works fine. I've 
been able to sort of counter-act the projection ignoring by telling mapserver 
that the layer's projection has lat_0=-49 when in fact, it is in epsg:43204 
meaning lat_0=49.

                        I've attached my mapfile. 

                        Thanks in advance, 
                        Alexandre Laplante
                        Étudiant Co-op / Co-op Student
                        Division de l'Agriculture / Agriculture Division
                        Statistique Canada / Statistics Canada
                        170 Tunney's Pasture Driveway
                        Éd. Jean-Talon, 12è étage D1 / Jean-Talon Building, 
12th floor D1
                        Ottawa, Ontario 
                        <<alex.map>> 


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to