Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-15 Thread Peter Kovac

Hi Ricardo,

is your data source an Oracle database? I used to have some trouble when 
I had DATE columns in Oracle (which, interestingly, stores also the time 
information, despite its type name). I proposed a fix for my use case 
and it has landed on 2.12, but there might be other code paths which 
were not covered. My issue had the same symptoms as yours - TIMESTAMP 
output appeared with time information zeroed.


Regards,

Peter Kovac

On 14. 11. 2017 17:39, PEREIRA Ricardo (EMSA) wrote:


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+” 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 - 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.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.




 



   -MM-dd'T'HH:mm:ssZ

some_time_property







Arial

9

normal

bold









0.5

0.5









#00



60

150



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:




-MM-dd'T'HH:mm:ss.sssZ

some_time_property



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:
- 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

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-14 Thread Andrea Aime
Hi Ricardo,
oook... then I have no clue as to what is happening.
I'd suggest you open a bug report in Jira (
https://osgeo-org.atlassian.net/projects/GEOS/summary )
and attach all the necessary bits to reproduce the problem:

   - Data (sql dump)
   - Style
   - Request

Cheers
Andrea


On Tue, Nov 14, 2017 at 5:39 PM, PEREIRA Ricardo (EMSA) <
ricardo.pere...@emsa.europa.eu> wrote:

> 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> wrote:
>
> Dear Andrea,
>
>
>
> Yes…
>
>
>
> Please take a look on the attached picture.
>
>
>
> Regards,
>
> Ricardo
>
> *From:* 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
>
>
> *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> 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]
> *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.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.
>
>
>
>
>
>  
>
>
>
>  -MM-dd'T'HH:mm:ssZ
>
>  some_time_property
>
>
>
>  
>
>  
>
>Arial
>
>9
>
>normal
>
>    bold
>
>      
>
>  
>
>
>
>  
>
>0.5
>
>0.5
>
>  
>
>
>
>  
>
>  
>
>#00
>
>  
>
>  60
>
>  150
>
>
>
>
>
> Thank you very much for your support,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> When applying the above, I obtain the following result
> (some_tim

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-14 Thread PEREIRA Ricardo (EMSA)
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+” 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 - 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.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.

   
 
   
 -MM-dd'T'HH:mm:ssZ
 some_time_property
   
 
 
   Arial
   9
   normal
   bold
 
 
   
 
   0.5
   0.5
 
   
 
 
   #00
 
 60
 150
   

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:

 -MM-dd'T'HH:mm:ss.sssZ
some_time_property


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.

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-09 Thread Andrea Aime
(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> wrote:

> Dear Andrea,
>
>
>
> Yes…
>
>
>
> Please take a look on the attached picture.
>
>
>
> Regards,
>
> Ricardo
>
> *From:* 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
>
> *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> 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+” as I was expecting
> “15:20:10Z” in this case.
>
>
>
> Cheers,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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.
>
>
>
>
>
>  
>
>
>
>  -MM-dd'T'HH:mm:ssZ
>
>  some_time_property
>
>
>
>  
>
>  
>
>Arial
>
>9
>
>normal
>
>bold
>
>  
>
>  
>
>
>
>  
>
>0.5
>
>        0.5
>
>      
>
>    
>
>  
>
>  
>
>#00
>
>  
>
>  60
>
>  150
>
>
>
>
>
> Thank you very much for your support,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> 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:
> - 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
>

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread Andrea Aime
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> 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+” as I was expecting
> “15:20:10Z” in this case.
>
>
>
> Cheers,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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.
>
>
>
>
>
>  
>
>
>
>  -MM-dd'T'HH:mm:ssZ
>
>  some_time_property
>
>
>
>  
>
>  
>
>Arial
>
>9
>
>normal
>
>bold
>
>  
>
>  
>
>
>
>  
>
>0.5
>
>0.5
>
>  
>
>
>
>  
>
>  
>
>#00
>
>      
>
>      60
>
>      150
>
>    
>
>
>
> Thank you very much for your support,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> 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:
> - 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
>
>
>
>
>
> --
>
> 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 proce

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread PEREIRA Ricardo (EMSA)
Dear Ian, dear Andrea,

Below you may find the TextSymbolizer portion and also the .png version of the 
previous image.

   
 
   
 -MM-dd'T'HH:mm:ssZ
 some_time_property
   
 
 
   Arial
   9
   normal
   bold
 
 
   
 
   0.5
   0.5
 
   
 
 
   #00
 
 60
 150
   

Thank you very much for your support,
Ricardo Pereira
From: Ian Turton [mailto:ijtur...@gmail.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.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:

 -MM-dd'T'HH:mm:ss.sssZ
some_time_property


When applying the above, I obtain the following result (some_time_property: 
2017-11-11 15:20:10.952):
[cid:image001.jpg@01D35886.EA784990]


-  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
--
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


Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread PEREIRA Ricardo (EMSA)
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+” as I was expecting “15:20:10Z” 
in this case.

Cheers,
Ricardo Pereira
From: Ian Turton [mailto:ijtur...@gmail.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.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.

   
 
   
 -MM-dd'T'HH:mm:ssZ
 some_time_property
   
 
 
   Arial
   9
   normal
   bold
 
 
   
 
   0.5
   0.5
 
   
 
 
   #00
 
 60
 150
   

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:

 -MM-dd'T'HH:mm:ss.sssZ
some_time_property


When applying the above, I obtain the following result (some_time_property: 
2017-11-11 15:20:10.952):
[cid:image001.jpg@01D35888.700D9050]


-  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
--
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


Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread Ian Turton
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.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.
>
>
>
>
>
>  
>
>
>
>  -MM-dd'T'HH:mm:ssZ
>
>  some_time_property
>
>
>
>  
>
>  
>
>Arial
>
>9
>
>normal
>
>bold
>
>  
>
>  
>
>
>
>  
>
>0.5
>
>0.5
>
>  
>
>
>
>  
>
>  
>
>#00
>
>  
>
>  60
>
>  150
>
>
>
>
>
> Thank you very much for your support,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.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.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:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> 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:
> - 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
>
>
>
>
>
> --
>
> Ian Turton
>



-- 
Ian Turton
--
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


Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread Andrea Aime
Hi Ricardo,
could you share the full SLD, or at least the full TextSymbolizer portion?

Cheers
Andrea

On Wed, Nov 8, 2017 at 12:10 PM, PEREIRA Ricardo (EMSA) <
ricardo.pere...@emsa.europa.eu> wrote:

> Hi,
>
>
>
> After reading the GeoServer documentation for the dateFormat function
> 
> under a SLD style, I put the following in my style:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> 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:
> - 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
>
>


-- 

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


Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-08 Thread Ian Turton
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> wrote:

> Hi,
>
>
>
> After reading the GeoServer documentation for the dateFormat function
> 
> under a SLD style, I put the following in my style:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> 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:
> - 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
>
>


-- 
Ian Turton
--
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