Dear Andrea,
In fact it is a SQL Timestamp.
Cheers,
Ricardo Pereira
From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.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.pere...@emsa.europa.eu<mailto:ricardo.pere...@emsa.europa.eu>> wrote:
Dear Andrea,
Yes…
Please take a look on the attached picture.
Regards,
Ricardo
From: andrea.a...@gmail.com<mailto:andrea.a...@gmail.com>
[mailto:andrea.a...@gmail.com<mailto:andrea.a...@gmail.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<mailto: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.pere...@emsa.europa.eu<mailto:ricardo.pere...@emsa.europa.eu>> 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:ijtur...@gmail.com<mailto:ijtur...@gmail.com>]
Sent: Wednesday, November 8, 2017 11:49 AM
To: PEREIRA Ricardo (EMSA)
Cc: Andrea Aime;
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label
Since you have set - <VendorOption name="autoWrap">60</VendorOption> - 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.pere...@emsa.europa.eu<mailto:ricardo.pere...@emsa.europa.eu>> wrote:
Dear Ian, dear Andrea,
Below you may find the TextSymbolizer portion and also the .png version of the
previous image.
<TextSymbolizer>
<Label>
<ogc:Function name="dateFormat">
<ogc:Literal>yyyy-MM-dd'T'HH:mm:ssZ</ogc:Literal>
<ogc:PropertyName>some_time_property</ogc:PropertyName>
</ogc:Function>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">9</CssParameter>
<CssParameter name="font-style">normal</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
<VendorOption name="autoWrap">60</VendorOption>
<VendorOption name="maxDisplacement">150</VendorOption>
</TextSymbolizer>
Thank you very much for your support,
Ricardo Pereira
From: Ian Turton [mailto:ijtur...@gmail.com<mailto:ijtur...@gmail.com>]
Sent: Wednesday, November 8, 2017 11:37 AM
To: PEREIRA Ricardo (EMSA)
Cc:
geoserver-users@lists.sourceforge.net<mailto: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.pere...@emsa.europa.eu<mailto:ricardo.pere...@emsa.europa.eu>> wrote:
Hi,
After reading the GeoServer documentation for the dateFormat
function<http://docs.geoserver.org/stable/en/user/filter/function_reference.html>
under a SLD style, I put the following in my style:
<ogc:Function name="dateFormat">
<ogc:Literal>yyyy-MM-dd'T'HH:mm:ss.sssZ</ogc:Literal>
<ogc:PropertyName>some_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):
[cid:image001.jpg@01D35D67.13D028A0]
- 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:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
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
--
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<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g>
55054
Massarosa<https://maps.google.com/?q=Via+di+Montramito+3/A+%0D+55054+%C2%A0Massarosa&entry=gmail&source=g>
(LU)
phone: +39 0584 962313<tel:+39%200584%20962313>
fax: +39 0584 1660272<tel:+39%200584%20166%200272>
mob: +39 339 8844549<tel:+39%20339%20884%204549>
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
_______________________________________________
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#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users