Ticket #1722 (closed defect: fixed)

Opened 7 years ago

Last modified 4 years ago

[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

Changed 7 years ago by bartvde@…

  • component changed from MapScript to MapScript-PHP
Changing component to PHP/Mapscript .....

Changed 7 years ago by bartvde@…

  • owner changed from sdlime to mapserverbugs

Changed 7 years ago by sdlime

  • component changed from MapScript-PHP to WMS Client
Changing component to WMS/Client since there's no context component and it's 
related somewhat. Re-assigning to the component owner...

Steve

Changed 4 years ago by tomkralidis

  • owner changed from mapserverbugs to tomkralidis
  • status changed from new to assigned
  • milestone set to 5.4 release

Changed 4 years ago by tomkralidis

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

Is this still an issue?

Changed 4 years ago by bartvde

  • status changed from assigned to closed
  • resolution set to fixed

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.