[mapserver-users] Disable automatic metadata in MapServer 7.2

Passmore, James H. jpass at bgs.ac.uk
Fri Oct 19 05:33:07 PDT 2018


Hi Jukka,

I'm not using MS4W, as per your example map file, could that be the difference between our implementations?

I realise too looking at the MapServer documentation https://mapserver.org/ogc/layer_metadata.html that one way around the problem would be to edit the generated metadata to a static file, then add a formal XML metadata link to the edited static content.

James

-----Original Message-----
From: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Sent: 19 October 2018 12:44
To: Passmore, James H. <jpass at bgs.ac.uk>; mapserver-users at lists.osgeo.org
Subject: Re: Disable automatic metadata in MapServer 7.2

Hi James,

Could you make one more test by using the "states.shp" file from the Geoserver demo data and with this mapfile:


MAP
NAME "METADATATEST"
SIZE 800 800
EXTENT -180 -90 180 90
UNITS DD
IMAGECOLOR 20 250 250
SHAPEPATH "c:\ms4w\tmp"
IMAGETYPE "png"
WEB
    METADATA
        "ows_enable_request" "*"
        "wms_srs" "EPSG:4326"
        "wms_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?"
    END
END
# DEBUG 5
CONFIG "PROJ_LIB" "C:/ms4w/proj/nad"
CONFIG "CPL_DEBUG" "ON"
CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/debug.txt"
PROJECTION
"init=epsg:4326"
END

LAYER
NAME "states"
STATUS ON
DATA "c:\ms4w\apps\states"
TYPE POLYGON
PROJECTION
       "init=epsg:4326"
END
METADATA
      "wms_title"         "states
      "wms_srs"           "EPSG:4326"
END
    CLASS
        STYLE
            COLOR 100 200 100
            OUTLINECOLOR 0 0 0
        END
    END
END
END

Do you still see the metadata links? If you do feel free to include this mapfile and test data into the GitHub issue.

-Jukka-

-----Alkuperäinen viesti-----
Lähettäjä: Passmore, James H. [mailto:jpass at bgs.ac.uk]
Lähetetty: 19. lokakuuta 2018 14:19
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>; mapserver-users at lists.osgeo.org
Aihe: RE: Disable automatic metadata in MapServer 7.2

Hi Jukka,

I disabled the INSPIRE content in my service and I still have the generated metadata sections like below in my layers.

<MetadataURL type="ISOTC211/19115">
<Format>text/xml</Format>
<OnlineResource xlink:type="simple" xlink:href="http://ogc2.bgs.ac.uk/cgi-bin/UGA_ARGI/ows?language=eng&request=GetMetadata&layer=RAILWAY"/>
</MetadataURL>

James



-----Original Message-----
From: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Sent: 19 October 2018 12:14
To: Passmore, James H. <jpass at bgs.ac.uk>; mapserver-users at lists.osgeo.org
Subject: Re: Disable automatic metadata in MapServer 7.2

Hi James,

I do not have INSPIRE configurations set and I do not have any metadata links in the body of GetCapabilities.
Without reading the code we can't know if adding INSPIRE stuff adds also something to the body. Fortunately it is easy to test by commenting out everything that seems to relate to INSPIRE in your mapfile. Or write a new as-simple-as-possible mapfile and see how it behaves.

-Jukka-



-----Alkuperäinen viesti-----
Lähettäjä: Passmore, James H. [mailto:jpass at bgs.ac.uk]
Lähetetty: 19. lokakuuta 2018 14:09
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>; mapserver-users at lists.osgeo.org
Aihe: RE: Disable automatic metadata in MapServer 7.2

So I do have INSPIRE configurations set, but the links I refer to are in the body of GetCapabilities response not the INSPIRE extended capabilities section.

-----Original Message-----
From: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Sent: 19 October 2018 12:03
To: Passmore, James H. <jpass at bgs.ac.uk>; mapserver-users at lists.osgeo.org
Subject: Re: Disable automatic metadata in MapServer 7.2

Hi,

I do not see any metadata links at all in our WMS services made with Mapserver 7.2.0 and I have certainly not disabled them in any way.  I guess that something that you have done has enabled those. Have you played for example with some Inspire configurations?

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Passmore, James H.
Lähetetty: 19. lokakuuta 2018 13:48
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Disable automatic metadata in MapServer 7.2

Is it possible to disable/prevent the automatically created ISO metadata links appearing in WMS GetCapabilities response?

The reason for asking is that at the moment these created links are making the GetCapabilities response invalid.

Thanks

James Passmore
-------------------------------
British Geological Survey,
Environmental Science Centre,
KEYWORTH,
United Kingdom,
NG12 5GG

orcid: https://orcid.org/0000-0002-9891-6265
-------------------------------
Phone: +44 (0)115 936 3125
-------------------------------
Skype: BGSjames

________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
________________________________
 This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________


More information about the mapserver-users mailing list