Thank you for this clear description Jukka,

I will follow Ede's suggestion to log a warning if a (mandatory) title is missing in a layer to let him a chance to report the problem, but the main thing was to make it possible to use the WMS even if it contains such a layer (it will then contain "<name> (untitled)" as its title).

Michaël

envoyé : 3 septembre 2020 à 13:27
de : "Rahkonen Jukka (MML)" <jukka.rahko...@maanmittauslaitos.fi>
à : OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
objet : Re: [JPP-Devel] wms layer title


From the WMS 1.3.0 standard:

7.2.4.6.2 Title
A <Title> is mandatory for all layers; it is a human-readable string for presentation in a menu. The Title is not inherited by child Layers.
7.2.4.6.3 Name
If, and only if, a layer has a <Name>, then it is a map layer that can be requested by using that Name in the LAYERS parameter of a GetMap request. A Layer that contains a <Name> element is referred to as a “named layer” in this International Standard. If the layer has a Title but no Name, then that layer is only a category title for all the layers nested within. A server that advertises a Layer containing a Name element shall be able to accept that Name as the value of LAYERS argument in a GetMap request and return the corresponding map. A client
shall not attempt to request a layer that has a Title but no Name.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: edgar.sol...@web.de <edgar.sol...@web.de>
Lähetetty: torstai 3. syyskuuta 2020 14.10
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] wms layer title

i see. right. that happens when you don't have a proper test dataset :). we should maybe also log a warning as an empty title is irregular as i understand. is it not?

..ede

On 9/2/2020 14:55, Michaud Michael wrote:

Did you change null title of layer elements ?

Seems that the getTitle you changed is a global title of the main document.

Anyway, I could have a try this morning with the co-worker who
reported the bug, and the bug was still there.

Michaël

>> envoyé : 2 septembre 2020 à 14:07>> de : edgar.sol...@web.de
>> à : "jump-pilot-devel@lists.sourceforge.net >> jump devel"
>> <jump-pilot-devel@lists.sourceforge.net>
>> objet : Re: [JPP-Devel] wms layer title
>>
>>
>> On 9/2/2020 14:02, Michaud Michael wrote:
>>
>>> Hi Ede,
>>>
>>> One problem with wms title was with "Layer" title = null. Ticket is
>>> ambiguous because the exception is thrown during getCapabilities which also have a title.
>>>
>>> Just tried a new fix. Will let you know soon.
>>>
>> why? title was set to an empty String ("") per default by my fix..
>> ede
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to