On 14. 11. 2017 17:39, PEREIRA Ricardo (EMSA) wrote:
Dear Andrea,
In fact it is a SQL Timestamp.
Cheers,
Ricardo Pereira
From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Thursday, November 9, 2017 11:08 AM
To: PEREIRA Ricardo (EMSA); GeoServer Mailing List List
Cc: Ian Turton
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label
(please keep the conversation on the list)
That is weird, but I’m wondering… is the data in the data source actually a timestamp (e.g., SQL TIMESTAP)?
Or is it a string?
Cheers
Andrea
On Wed, Nov 8, 2017 at 5:49 PM, PEREIRA Ricardo (EMSA) <Ricardo.PEREIRA@anonymised.com> wrote:
Dear Andrea,
Yes…
Please take a look on the attached picture.
Regards,
Ricardo
From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Wednesday, November 8, 2017 3:22 PM
To: PEREIRA Ricardo (EMSA)
Cc: Ian Turton; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label
Hi Ricardo,
what is the data source?
If you do a WFS request do you get the full time?
What about doing a GetFeatureInfo in the map preview on that polygon?
Cheers
Andrea
On Wed, Nov 8, 2017 at 12:55 PM, PEREIRA Ricardo (EMSA) <Ricardo.PEREIRA@anonymised.com> wrote:
Dear Ian,
Thank you for your suggestion.
Well, I don’t really mind with the wrapping, but I am wondering why the hours/minutes/seconds are set to “00:00:00+0000” as I was expecting “15:20:10Z” in this case.
Cheers,
Ricardo Pereira
From: Ian Turton [mailto:ijturton@anonymised.com]
Sent: Wednesday, November 8, 2017 11:49 AM
To: PEREIRA Ricardo (EMSA)
Cc: Andrea Aime; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label
Since you have set - 60 - that is exactly what I would expect. You have asked GeoServer to wrap any label at 60px wide.
Ian
On 8 November 2017 at 11:44, PEREIRA Ricardo (EMSA) <Ricardo.PEREIRA@anonymised.com> wrote:
Dear Ian, dear Andrea,
Below you may find the TextSymbolizer portion and also the .png version of the previous image.
<ogc:Function name=“dateFormat”>
ogc:Literalyyyy-MM-dd’T’HH:mm:ssZ</ogc:Literal>
ogc:PropertyNamesome_time_property</ogc:PropertyName>
</ogc:Function>
Arial
9
normal
bold
0.5
0.5
#000000
60
150
Thank you very much for your support,
Ricardo Pereira
From: Ian Turton [mailto:ijturton@anonymised.com]
Sent: Wednesday, November 8, 2017 11:37 AM
To: PEREIRA Ricardo (EMSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label
We’d need to see the rest of the TextSymbolizer to see what was going on. Also, a larger or png image might help.
Ian
On 8 November 2017 at 11:10, PEREIRA Ricardo (EMSA) <Ricardo.PEREIRA@anonymised.com> wrote:
Hi,
After reading the GeoServer documentation for the dateFormat function under a SLD style, I put the following in my style:
<ogc:Function name=“dateFormat”>
ogc:Literalyyyy-MM-dd’T’HH:mm:ss.sssZ</ogc:Literal>
ogc:PropertyNamesome_time_property</ogc:PropertyName>
</ogc:Function>
When applying the above, I obtain the following result (some_time_property: 2017-11-11 15:20:10.952):
- Do you have an idea what I am missing or if it is even possible to show times in this format?
Ricardo Pereira
Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Ian Turton
–
Ian Turton
–
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
–
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! [http://sdm.link/slashdot](http://sdm.link/slashdot)
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: [http://www.ianturton.com/talks/foss4g.html#/](http://www.ianturton.com/talks/foss4g.html#/)
- The GeoServer user list posting guidelines: [http://geoserver.org/comm/userlist-guidelines.html](http://geoserver.org/comm/userlist-guidelines.html)
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)