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