Opened 20 years ago

Closed 20 years ago

#721 closed defect (duplicate)

Can't get wms_dataurl, wms_logourl, or wms_metadataurl to print out in XML file

Reported by: tmelhuish@… Owned by: mapserverbugs
Priority: high Milestone: 4.4 release
Component: WMS Client Version: 4.2
Severity: normal Keywords:
Cc:

Description

I can't seem to get the "dataurl", "logourl" or "metadataurl" to print out in
the xml file. I have added the following 3 lines are in my wmsxx.map file as
WEB=>METADATA objects. I'm using mapserver 4.0.2 and  WMT_MS_Capabilities
version="1.1.0" updateSequence="0". All the other information, such as contact
information and address information prints out fine.

"WMS_ONLINERESOURCE"   
"http://192.168.119.20/cgi-bin/mapserv?map=nconemap_parcels.map"
"wms_dataurl"
"http://204.168.68.180/mainpage.cfm?category_level_id=628&content_id=745"
"wms_logourl" "163 125 gif http://152.31.96.22/java/applet/images/shield.gif" 


I see in the mapcontent.c file the following lines that support wms_dataurl &
wms_logourl.

+++++++++++++++++++++++++++++++++++++++
 // DataURL
  msGetMapContextXMLHashValueDecode(psMapContext, 
                                   "General.DataURL.OnlineResource.xlink:href",
                                   &(map->web.metadata), "wms_dataurl");

  // LogoURL
  // The logourl have a width, height, format and an URL
  // The metadata will be structured like this: "width height format logourl"
  psChild = CPLGetXMLNode(psMapContext, "General.LogoURL");
  if(psChild != NULL)
  {
      msCombineXMLValueInHash(psChild, "width", "height", "format", 
                              "OnlineResource.xlink:href", 
                              &(map->web.metadata), "wms_logourl");
  }
++++++++++++++++++++++++++++++++++++++++


I don't see any reference to the "wms_metadataurl" in the mapcontext.c file. Is
this support? 

	"WMS_METADATAURL"
"http://204.168.68.180/mainpage.cfm?category_level_id=628&content_id=745"


I'm using the following versions
+++++++
	<WMT_MS_Capabilities version="1.1.0" updateSequence="0">
	 MapServer version 4.0.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE 
++++++++


Please let me know if I need to provide any other information.
Thanks,
Tom Melhuish

Change History (3)

comment:1 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:2 by dmorissette, 20 years ago

You didn't specify that, but I assume you would like your dataurl and logourl
values to be used in GetCapabilities?

mapcontext.c deals only with WMS context documents, and not with WMS
GetCapabilities. Those metadata entries will have to be implemented in mapwms.c
to be supported in GetCapabilities.

comment:3 by dmorissette, 20 years ago

Resolution: duplicate
Status: newclosed
If I understand correctly, this would be a duplicate of bug 438.

*** This bug has been marked as a duplicate of 438 ***
Note: See TracTickets for help on using tickets.