Re: [JPP-Devel] wms layer title
On 03.09.2020 19:59, Michaud Michael wrote: > Thank you for this clear description Jukka, > > I will follow Ede's suggestion to log a warning if a (mandatory) title is how about logging it as error. as it seems to be one but will only be logged and hence not obstruct the users experience. > 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 " (untitled)" as its title). what if the name is empty as well? not sure that's technically possible ;) as it seems to be needed to retrieve it. ..ede ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] wms layer title
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 " (untitled)" as its title).Michaëlenvoyé : 3 septembre 2020 à 13:27de : "Rahkonen Jukka (MML)" à : OpenJump develop and use objet : Re: [JPP-Devel] wms layer titleFrom the WMS 1.3.0 standard:7.2.4.6.2 TitleA 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 NameIf, and only if, a layer has a , 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 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 clientshall 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 Lähetetty: torstai 3. syyskuuta 2020 14.10Vastaanottaja: jump-pilot-devel@lists.sourceforge.netAihe: Re: [JPP-Devel] wms layer titlei 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?..edeOn 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">> >> 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 listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel___Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel___Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://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
Re: [JPP-Devel] wms layer title
From the WMS 1.3.0 standard: 7.2.4.6.2 Title A 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 , 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 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 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" >> >> 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
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" >> >> 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
Re: [JPP-Devel] wms layer title
Hi Ede,My last correction fixed the problem. Sorry, the ticket was ambiguous about which title exactly was the cause of the problem.Michaël envoyé : 2 septembre 2020 à 14:07de : edgar.sol...@web.deà : "jump-pilot-devel@lists.sourceforge.net >> jump devel" objet : Re: [JPP-Devel] wms layer titleOn 9/2/2020 14:02, Michaud Michael wrote:Hi Ede,One problem with wms title was with "Layer" title = null. Ticket is ambiguousbecause 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 listJump-pilot-devel@lists.sourceforge.nethttps://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
Re: [JPP-Devel] wms layer title
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ëlenvoyé : 2 septembre 2020 à 14:07de : edgar.sol...@web.deà : "jump-pilot-devel@lists.sourceforge.net >> jump devel" objet : Re: [JPP-Devel] wms layer titleOn 9/2/2020 14:02, Michaud Michael wrote:Hi Ede,One problem with wms title was with "Layer" title = null. Ticket is ambiguousbecause 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 listJump-pilot-devel@lists.sourceforge.nethttps://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
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
[JPP-Devel] wms layer title
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. ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel