Skip to content
Permalink
Browse files

emit only required formats for WMS links in ISO metadata (#5667)

  • Loading branch information...
tomkralidis committed Oct 20, 2018
1 parent 8267fa6 commit c6f77b1faddcede08d2be8d3a1c3f05a2fca8c9b
@@ -604,9 +604,7 @@ xmlNodePtr _msMetadataGetDistributionInfo(xmlNsPtr namespace, mapObj *map, layer

/* WMS */
xmlAddChild(psDTONode, _msMetadataGetOnline(namespace, layer, "M", "image/png", "PNG Format", url));

xmlAddChild(psDTONode, _msMetadataGetOnline(namespace, layer, "M", "image/jpeg", "JPEG Format", url));
xmlAddChild(psDTONode, _msMetadataGetOnline(namespace, layer, "M", "image/gif", "GIF Format", url));

/* WCS */
if (layer->type == MS_LAYER_RASTER) {
@@ -253,22 +253,6 @@ Content-type: text/xml
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>http://localhost/ows?service=WMS&amp;version=1.3.0&amp;request=GetMap&amp;width=500&amp;height=300&amp;styles=&amp;layers=toronto&amp;format=image/gif&amp;crs=EPSG:32611&amp;bbox=4945950.00000,456800.00000,4957150.00000,469300.00000</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString>toronto</gco:CharacterString>
</gmd:name>
<gmd:description>
<gco:CharacterString>GIF Format</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
@@ -255,22 +255,6 @@ Content-type: text/xml
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>http://localhost/ows?service=WMS&amp;version=1.3.0&amp;request=GetMap&amp;width=500&amp;height=300&amp;styles=&amp;layers=province&amp;format=image/gif&amp;crs=&amp;bbox=-76361.77343,2253355.75000,515489.03125,2747648.50000</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString>province</gco:CharacterString>
</gmd:name>
<gmd:description>
<gco:CharacterString>GIF Format</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>

0 comments on commit c6f77b1

Please sign in to comment.
You can’t perform that action at this time.