Opened 18 years ago
Closed 15 years ago
#1722 closed defect (fixed)
[Context] why is wms_onlineresource mandatory
Reported by: | 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:2 by , 18 years ago
Owner: | changed from | to
---|
comment:3 by , 18 years ago
Component: | MapScript-PHP → 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
comment:4 by , 15 years ago
Milestone: | → 5.4 release |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:5 by , 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.