Opened 18 years ago

Closed 15 years ago

#1722 closed defect (fixed)

[Context] why is wms_onlineresource mandatory

Reported by: bartvde@… Owned by: tomkralidis
Priority: high Milestone: 5.4 release
Component: WMS Client Version: 4.8
Severity: normal Keywords:
Cc:

Description

When a LAYER has no wms_onlineresource, you get the following when saving a Context:

<!-- WARNING: Mandatory metadata 'wms_onlineresource' was missing in this
context. -->
        <OnlineResource xlink:type="simple"
xlink:href="http://145.50.148.45:8081/cgi-bin/mapserv"/>
<!-- wms_onlineresource not set, using base URL , but probably not what you want -->

E.g.:
 LAYER
   CONNECTION
"http://145.50.148.45:8081/cgi-bin/mapserv?map=/data/OGC_UMN_services/basispakket_grenzen.map&"
   CONNECTIONTYPE WMS
    METADATA
     "wms_name"  "AAA207"
     "wms_title" "wegendistricten"
     "wms_server_version"  "1.1.1"
     "wms_format"  "image/png"
     "wms_style" ""
    END
   PROJECTION
     "init=epsg:28992"
   END
   TYPE RASTER
   TRANSPARENCY 50
   NAME "wegendistricten"
   STATUS ON
   UNITS METERS
   SIZEUNITS PIXELS
   DUMP TRUE
   TEMPLATE "blank.html"
   TOLERANCE 5
   TOLERANCEUNITS PIXELS
 END #layer

Why does the code not use the CONNECTION instead if wms_onlineresource is not
set ????

Change History (6)

comment:1 by bartvde@…, 18 years ago

Component: MapScriptMapScript-PHP
Changing component to PHP/Mapscript .....

comment:2 by bartvde@…, 18 years ago

Owner: changed from sdlime to mapserverbugs

comment:3 by sdlime, 18 years ago

Component: MapScript-PHPWMS Client
Changing component to WMS/Client since there's no context component and it's 
related somewhat. Re-assigning to the component owner...

Steve

comment:4 by tomkralidis, 15 years ago

Milestone: 5.4 release
Owner: changed from mapserverbugs to tomkralidis
Status: newassigned

comment:5 by tomkralidis, 15 years ago

Bart: checking mapcontext.c, the code looks for wms_onlineresource. If not found, it uses LAYER.CONNECTION.

Is this still an issue?

comment:6 by bartvde, 15 years ago

Resolution: fixed
Status: assignedclosed

Hey Tom, if that's the case then this is not an issue anymore. Thanks for looking into it. Btw, I haven't written a WMC with Mapscript in ages ....

Note: See TracTickets for help on using tickets.