[mapserver-users] Tile mode & multiple layers

Clément MONIER Clement.MONIER at v-trafic.com
Wed Aug 25 09:10:34 EDT 2010


I’ve already correctly specified my output format inside the mapfile.

Anyway, these 2 requests doesn’t give the same rendering :
(tile mode)
http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer1
(wms)
http://localhost/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=y1,x1,y2,x2&WIDTH=256&HEIGHT=256
But maybe I didn’t understand the appropriate use of tile mode.

Should I expect these 2 requests to give the same png output by the way ?

Thanks

De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Wim Vanbelle
Envoyé : mercredi 25 août 2010 14:52
À : mapserver-users at lists.osgeo.org
Objet : Re: [mapserver-users] Tile mode & multiple layers

Hi Clément,

Under your MAP you can specify an OUTPUTFORMAT tag.

See http://mapserver.org/mapfile/outputformat.html for details. There's also some additional information about the format options at the bottom.

Use AGG for best quality results.

On 25 August 2010 14:37, Clément MONIER <Clement.MONIER at v-trafic.com<mailto:Clement.MONIER at v-trafic.com>> wrote:
Thanks a lot !

I have another bothering issue :

PNG outputs of my MS CGI requests now don’t look nicely rendered any more (i.e no smoothly antialiased AGG display)
http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer1 layer2<http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer1%20layer2>
as it was with similar WMS requests targeting the same mapfile though

Where should I specify the desired output format ?

Thank you for your help

De : mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>] De la part de Wim Vanbelle
Envoyé : mercredi 25 août 2010 13:50
À : mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Objet : Re: [mapserver-users] Tile mode & multiple layers

Hi Clément,


Your request is wrong ;).

Try using a space instead. Take a look here :

http://mapserver.org/output/tile_mode.html

Good luck.
On 25 August 2010 13:47, Clément MONIER <Clement.MONIER at v-trafic.com<mailto:Clement.MONIER at v-trafic.com>> wrote:

Hi,

I’m facing a (probable widely encountered) problem using MapServer with tile-mode option.
It seems like multiple layers aren’t allowed ??

http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer1 => ok
http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer2 => ok

http://localhost/cgi-bin/mapserv.exe?mode=tile&tilemode=gmap&tile=X+Y+S&map=mymapfile.map&LAYERS=layer1,layer2 => ko !

Why ?

Thanks & Regards

Clément


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100825/7f93c8a2/attachment-0001.html


More information about the mapserver-users mailing list