[mapserver-users] problem in wms service
Yves Jacolin
yves.jacolin at camptocamp.com
Tue Aug 16 01:41:01 PDT 2016
Yes, I think map.extent is used for MapServer CGI Template not for MapServer
WMS Request which uses BBOX parameter. As you are using WMS service,
map.extent is useless.
Y.
On Tuesday, August 16, 2016 11:37:00 Ahmet Temiz wrote:
> thank you ,
>
> I noticed later I have missed specifying host in CONNECTION < CONNECTION
> "host=localhost ....
> Do you say map.extent is redundant code and BBOX is doing same ?
>
> regards
>
> On Tue, Aug 16, 2016 at 10:37 AM, Yves Jacolin <yves.jacolin at camptocamp.com>
> wrote:
> > Ok, I suppose that your working test shows something in the picture?
> >
> > I suggest to enable log in your mapfile and check it after running again
> > your
> > not working example.
> >
> > "map.extent=2588830.423584977+4061255.6481961836+54
> > 26172.9135307195+5382087.496964029" in your request should not be useful.
> >
> > Sorry no more idea here. Maybe the log will show you something weird.
> >
> > Y.
> >
> > On Tuesday, August 16, 2016 10:20:43 Ahmet Temiz wrote:
> > > thank you
> > >
> > > it is png file.
> > > $display out.png returns blank image.
> > >
> > > On Tue, Aug 16, 2016 at 10:10 AM, Yves Jacolin <
> >
> > yves.jacolin at camptocamp.com>
> >
> > > wrote:
> > > > On Tuesday, August 16, 2016 10:07:40 Ahmet Temiz wrote:
> > > > > Hi,
> > > > >
> > > > > I am testing my wms, postgis layer it works with QUERY_STRING but
> > > > > not
> > > > > displays anything with curl and QGIS.
> > > > >
> > > > > ** It works
> > > > >
> > > > > mapserv -nh
> > > > > "QUERY_STRING=map=/var/www/ms_map/jeo.map&SERVICE=WMS&
> > > >
> > > > VERSION=1.1.1&REQUEST=
> > > >
> > > > > GetMap&map.extent=2588830.423584977+4061255.6481961836+
> > > >
> > > > 5426172.9135307195+53
> > > >
> > > > > 82087.496964029&LAYERS=jeo&STYLES=&SRS=EPSG:3857&BBOX=
> > > >
> > > > 2588830.423584977,4061
> > > >
> > > > > 255.6481961836,5426172.9135307195,5382087.496964029&
> > > >
> > > > WIDTH=1160&HEIGHT=540&FO
> > > >
> > > > > RMAT=image/png"
> > > > >
> > > > > > out.png
> > > > >
> > > > > -----
> > > > > ** it doesn't work
> > > > >
> > > > > curl --trace -i -X GET -H "Content-Type: image/png" "
> > > > > http://localhost/cgi-bin/mapserv?map=/var/www/ms_map/
> > > >
> > > > jeo.map&SERVICE=WMS&VER
> > > >
> > > > > SION=1.1.1&REQUEST=GetMap&map.extent=2588830.423584977+
> > > >
> > > > 4061255.6481961836+54
> > > >
> > > > > 26172.9135307195+5382087.496964029&LAYERS=jeo&STYLES=&
> > > >
> > > > SRS=EPSG:3857&BBOX=258
> > > >
> > > > > 8830.423584977,4061255.6481961836,5426172.9135307195,
> > > >
> > > > 5382087.496964029&WIDTH
> > > >
> > > > > =1160&HEIGHT=540&FORMAT=image/png"
> > > > >
> > > > > > out.png
> > > > >
> > > > > Can you tell me what the likely reasons are?
> > > > > regards
> > > >
> > > > Hello,
> > > >
> > > > Does out.png is a png file or a text file with an error message in it?
> >
> > If
> >
> > > > so,
> > > > what is this message? If it is not a png file, is it the mapserv cgi
> >
> > file?
> >
> > > > Y.
> > > > --
> > > > Responsable Formation et Support
> > > > Camptocamp France SAS
> > > > Savoie Technolac, BP 352
> > > > 73377 Le Bourget du Lac, Cedex
> > > > Tel (France) : +33 4 58 48 20 43 (new !)
> > > > Tel (Suisse) : +41 21 619 10 43
> > > > Mob. : +33 6 18 75 42 21
> > > > Fax : 04 79 70 15 81
> > > > Mail : yves.jacolin at camptocamp.com
> > > > http://www.camptocamp.com
> >
> > --
> > Responsable Formation et Support
> > Camptocamp France SAS
> > Savoie Technolac, BP 352
> > 73377 Le Bourget du Lac, Cedex
> > Tel (France) : +33 4 58 48 20 43 (new !)
> > Tel (Suisse) : +41 21 619 10 43
> > Mob. : +33 6 18 75 42 21
> > Fax : 04 79 70 15 81
> > Mail : yves.jacolin at camptocamp.com
> > http://www.camptocamp.com
--
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 58 48 20 43 (new !)
Tel (Suisse) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
More information about the MapServer-users
mailing list