MapServer / MapServer-import

3 stars 2 forks source link

[Context] why is wms_onlineresource mandatory #1722

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: bartvde@osgis.nl Date: 2006/03/22 - 10:39

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 ????
tbonfort commented 12 years ago

Author: bartvde@osgis.nl Date: 2006/03/22 - 10:40

Changing component to PHP/Mapscript .....
tbonfort commented 12 years ago

Author: sdlime Date: 2006/03/22 - 16:11

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

Steve
tbonfort commented 12 years ago

Author: tomkralidis Date: 2009/02/04 - 01:34 Bart: checking mapcontext.c, the code looks for wms_onlineresource. If not found, it uses LAYER.CONNECTION.

Is this still an issue?

tbonfort commented 12 years ago

Author: bartvde Date: 2009/02/04 - 07:55 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 ....