[Mapbender-users] Re: Printing 288dpi Raster layers problem

Astrid Emde astrid.emde at wheregroup.com
Fri Feb 10 02:36:27 EST 2012


Hello Dave,

looks like your Layer-NAME produces the trouble.

Keep this in mind:
http://mapserver.org/mapfile/layer.html#layer

  NAME
Short name for this layer. This name is the link between the mapfile and
web interfaces that refer to this name. They must be identical. The name
should be unique, unless one layer replaces another at different scales.
Use the GROUP option to associate layers with each other. It is
recommended that the name not contain spaces, special characters, or begin
with a number (which could cause problems through interfaces such as OGC
services).

 From the MapServer-logs it looks like MapServer does not know the layer
that are requested:

msTileCacheGetLayer(): section fiftyk,boundary not found in config file.[Fri
Feb 03 08:55:54 2012].471000 msTileCacheDispatchRequest(): no layer named
fiftyk,boundary in config file.[Fri Feb 03 08:55:54 2012].471000

You have a layer named:
     NAME         "boundary community council perth kinross"

and a layer named
     NAME         "boundary".

Please check, how the layer are named in the getCapabilities XML and in
the Mapbender administration. Looks like something got mixed up. You
should change your layer-names - replace whitespace against _ would help.
When you define the parameter NAME you do not have to define WMS_NAME
again.

Please also add a name to the header section:
MAP
   NAME "wms_tvjb"

or similar.

Astrid



Am 03.02.2012 12:45, schrieb daveyclark:
> Thanks for both replies guys.
>
> I have done all the things you suggested.
>
> Firstly, in the mapbender log, there was the following errors:
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:184:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=topographicarea&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:177:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=gazeteer&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:177:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:209:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary
> community council perth
> kinross&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:218:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary
> community council perth kinross
> proposed&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:201:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary
> community council
> angus&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:178:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=ppd_angus&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:179:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=ppd_dundee&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:178:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=ppd_perth&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:188:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary
> blpu
> angus&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:189:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=boundary
> blpu
> dundee&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:177:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=property&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR: a:0:{}
> 2012.02.03, 08:55:51,ERROR:
> a:1:{i:0;a:4:{s:4:"name";s:7:"default";s:5:"title";s:7:"default";s:9:"legendurl";s:177:"http://gis_d.tvd.jb/cgi-bin/mapserv.exe?MAP=p:/ms4w/apps/tutorial/htdocs/wms.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=domestic&format=image/png&STYLE=default";s:16:"legendurl_format";s:6:"simple";}}
> 2012.02.03, 08:55:51,ERROR:
....



More information about the Mapbender_users mailing list