Rahkonen Jukka wrote: Hi,
> >> One quick question: Does anybody know directly if OpenJUMP is parsing the > >> WMS > >> GetCapabilities document and using the GetMap onlineresource that is > >> advertised there? > >> > >> I mean a situation where the server is first contacted in, let's say at > >> http://wms.server.fi/wms/getcapabilities? > >> and it returns the following document: > >> > >> <GetMap> > >> <Format>image/jpeg</Format> > >> <Format>image/png</Format> > >> ? <DCPType> > >> ? <HTTP> > >> ? <Get> > >> <OnlineResource xlink:type="simple" > >> xlink:href="http://wms.server.fi/wms/getmap?"/> > >> </Get> > >> </HTTP> > >> </DCPType> > >> </GetMap> > > > >> Does OpenJUMP now understand to use the URL > >> http://wms.server.fi/wms/getmap? > >> for the GetMap requests? > >> > >> I do not have own WMS service running at the moment so I could test it > >> myself > >> easily. I do know that I will need to use such a WMS service in near > >> future. > > >no, unfortunately that does not work at the moment (the capabilities are only > >used to extract the layer tree IIRC). > > Sad, but not surprising. Would it be very hard to implement? I know that > many other clients do not support this either, and this information is also > wrong in many WMS services. So the most robust WMS client should perhaps > > - first take GetMap URL from the GetCapabilities document > - if that fails, try next the same URL as used for GetCapabilities (the way > it is now in OpenJUMP) > - if even that fails let the user write any URL he wants > yes, that's true, it's sad. I think it's not really worth the effort to change the behaviour, as I cannot think of a scenario where it might be useful. I can think of the following (all not applicable to WMS): * a service can optionally be used via SOAP, so the SOAP URL will be different from the rest * a service can be used transactionally, and for security reasons this uses a different URL The problem is that one cannot determine the failure in the first step properly. Does a connect error mean that the network is down or that the server is misconfigured? So in essence, changing the behaviour to the one you suggested means to obscure errors, making it possibly more difficult to debug networking problems. Changing the behaviour to just use the capabilities' URLs breaks "working" setups. So not changing the behaviour seems like a better option the more one thinks about it... Gruß, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-11 fax ++49 +228 1849629 http://www.lat-lon.de http://www.deegree.org
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel