Mandatory metadata warnings

Graham Davis gdavis at REFRACTIONS.NET
Mon Jan 9 17:01:00 PST 2006


Hi James,

Try the following:

MAP
    NAME              "SYSTEM"
    IMAGETYPE          jpeg
    EXTENT             140 -41 150 -33
    SIZE               1024 1024
    DEBUG         ON
    IMAGECOLOR    0 0 0 # The background Color.

    WEB
        LOG       'my_log.txt' # The Debug Log.
        TEMPLATE  'start_template.html'
        IMAGEPATH '/var/www/html/tmp/'
        IMAGEURL  '/tmp/'
       WMS_TITLE "My Title"
    END

    PROJECTION
        "init=epsg:4283"
    END

    LAYER
        NAME     "my_map"
        DATA     "/my_map_GDA94.tif"
        TYPE     RASTER
        STATUS    DEFAULT
        METADATA
            wms_title    "my_map"
            wms_srs        "EPSG:4283"
        END
    END

-- 
Graham Davis
Refractions Research Inc.
gdavis at refractions.net




James Net wrote:

> Hi all,
>
> I just did a REQUEST=GetCapabilities on my wms map and I got a few 
> mandatory warnings. How and where do I add this metadata?
>
> The first warning is:
> ...
> <WMT_MS_Capabilities version="1.1.1">
>     <!--
> MapServer version 4.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
> SUPPORTS=WMS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=TIFF 
> INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG
> -->
>     <Service>
> <Name>OGC:WMS</Name>
>
>     <!--
> WARNING: Mandatory metadata '..._title' was missing in this context.
> -->
> <Title>SYSTEM</Title>
> <OnlineResource 
> xlink:href="http://test/cgi-bin/mapserv?map=vicmap.map&"/>
> </Service>
> ...
>
> Where should I add "wms_title" in my map file?
>
> Next warning:
> ...
> <Layer>
> <Name>SYSTEM</Name>
>     <!--
> WARNING: Mandatory metadata '..._title' was missing in this context.
> -->
> <Title>SYSTEM</Title>
> <SRS>EPSG:4283</SRS>
> <LatLonBoundingBox minx="140" miny="-41" maxx="150" maxy="-33"/>
> <BoundingBox SRS="EPSG:4283" minx="140" miny="-41" maxx="150" 
> maxy="-33"/>
> <Layer queryable="0" opaque="0" cascaded="0">
> <Name>my_map</Name>
> <Title>my_map</Title>
> <SRS>EPSG:4283</SRS>
> </Layer>
> ...
>
> Why does SYSTEM report as a layer? And where do I add "wms_title" to 
> stop this warning???
>
> And here is my simple map file:
>
> MAP
>     NAME               SYSTEM
>     IMAGETYPE          jpeg
>     EXTENT             140 -41 150 -33
>     SIZE               1024 1024
>     DEBUG         ON
>     IMAGECOLOR    0 0 0 # The background Color.
>
>     WEB
>         LOG       'my_log.txt' # The Debug Log.
>         TEMPLATE  'start_template.html'
>         IMAGEPATH '/var/www/html/tmp/'
>         IMAGEURL  '/tmp/'
>     END
>
>     PROJECTION
>         "init=epsg:4283"
>     END
>
>     LAYER
>         NAME     "my_map"
>         DATA     "/my_map_GDA94.tif"
>         TYPE     RASTER
>         STATUS    DEFAULT
>         METADATA
>             wms_title    "my_map"
>             wms_srs        "EPSG:4283"
>         END
>     END
>
>
> Thanks heap in advance.
>
> _________________________________________________________________
> realestate.com.au: the biggest address in property   
> http://ninemsn.realestate.com.au



More information about the MapServer-users mailing list