Hi Andrea,
thank for notifying me about that.
Here is the message again, sent directly through email:
I am trying to get clipping through a SLD rendering transformation to work. For
that I am using the 'gs:Clip' in my SLD as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"
xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>Stream and river planting potential</se:Name>
<UserStyle>
<se:FeatureTypeStyle>
<se:Transformation>
<ogc:Function name="gs:Clip">
<ogc:Function name="parameter">
<ogc:Literal>features</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>clip</ogc:Literal>
<ogc:Literal>POLYGON((360079.99999999994
316420,359945.49696282257 317785.6322541129,359547.15672757896
319098.7840265556,358900.28728611773 320308.9916311372,358029.74746830575
321369.7474683058,356968.99163113715 322240.2872861178,355758.78402655554
322887.156727579,354445.63225411286 323285.4969628226,353079.99999999994
323420,351714.367745887 323285.4969628226,350401.21597344434
322887.156727579,349191.00836886273 322240.2872861178,348130.25253169413
321369.7474683058,347259.71271388215 320308.9916311372,346612.8432724209
319098.7840265556,346214.5030371773 317785.6322541129,346079.99999999994
316420,346214.5030371773 315054.3677458871,346612.8432724209
313741.2159734444,347259.7127138821 312531.0083688628,348130.25253169413
311470.2525316942,349191.00836886273 310599.7127138822,350401.2159734443
309952.843272421,351714.367745887 309554.5030371774,353079.99999999994
309420,354445.63225411286 309554.5030371774,355758.7840265556
309952.843272421,356968.99163113715 310599.71271388215,358029.74746830575
311470.2525316942,358900.28728611773 312531.0083688628,359547.15672757896
313741.21597344434,359945.49696282257 315054.3677458871,360079.99999999994
316420))
</ogc:Literal>
</ogc:Function>
</ogc:Function>
</se:Transformation>
<se:Rule>
<se:Name>Stream and river planting potential</se:Name>
<se:PolygonSymbolizer>
<se:Fill>
<se:SvgParameter name="fill">#99e600</se:SvgParameter>
</se:Fill>
</se:PolygonSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
This is the error I receive in the geoserver log(Verbose logging settings
activated):
2016-05-13 15:32:42,541 TRACE [geotools.util] - Error applying the converter
class org.geotools.xml.XmlConverterFactory$XmlConverter on (Wed May 11 09:39:51
UTC 2016,class java.util.Date)
java.lang.IllegalArgumentException: Failed to parse time Wed May 11 09:39:51
UTC 2016 at:Wed May 11 09:39:51 UTC 2016
at
org.geotools.xml.impl.DatatypeConverterImpl.parseTime(DatatypeConverterImpl.java:189)
at
org.geotools.xml.XmlConverterFactory$XmlConverter.convertFromString(XmlConverterFactory.java:123)
at
org.geotools.xml.XmlConverterFactory$XmlConverter.convert(XmlConverterFactory.java:76)
at org.geotools.util.Converters.convert(Converters.java:168)
at org.geotools.util.Converters.convert(Converters.java:129)
at
org.geotools.temporal.TemporalConverterFactory$2.convert(TemporalConverterFactory.java:51)
at org.geotools.util.Converters.convert(Converters.java:168)
at org.geotools.util.Converters.convert(Converters.java:129)
at
org.geoserver.wps.property.BeanPropertyAccessor.get(BeanPropertyAccessor.java:37)
at
org.geotools.filter.AttributeExpressionImpl.tryAccessor(AttributeExpressionImpl.java:248)
at
org.geotools.filter.AttributeExpressionImpl.evaluate(AttributeExpressionImpl.java:208)
at
org.geotools.filter.temporal.BinaryTemporalOperatorImpl.toInstant(BinaryTemporalOperatorImpl.java:64)
at
org.geotools.filter.temporal.BinaryTemporalOperatorImpl.toTemporal(BinaryTemporalOperatorImpl.java:77)
at
org.geotools.filter.temporal.BinaryTemporalOperatorImpl.evaluate(BinaryTemporalOperatorImpl.java:52)
at org.geotools.filter.AndImpl.evaluate(AndImpl.java:44)
at org.geotools.filter.AndImpl.evaluate(AndImpl.java:44)
at
org.geoserver.wps.MemoryProcessStatusStore.remove(MemoryProcessStatusStore.java:74)
at
org.geoserver.wps.executor.ProcessStatusTracker.cleanExpiredStatuses(ProcessStatusTracker.java:135)
at org.geoserver.wps.WPSStorageCleaner.run(WPSStorageCleaner.java:50)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
The WMS requests returns the image as normal, i.e. not clipped.
My Geoserver version is 2.9RC1. The WPS extension and specifically clipping is
working correctly when directly calling the WPS.
The dataset I want to clip doesn't have any dateTime fields so I also have no
idea where the date/time comes from.
Could anyone help me with this please? Am I misconfiguring something?
Cheers,
Max
________________________________
Von: andrea.a...@gmail.com <andrea.a...@gmail.com> im Auftrag von Andrea Aime
<andrea.a...@geo-solutions.it>
Gesendet: Freitag, 13. Mai 2016 17:20:38
An: Max Stephan
Cc: GeoServer Mailing List List
Betreff: Re: [Geoserver-users] SLD WPS rendering transformation with gs:Clip
not working
Hi,
The style did not reach the mailing list, this likely happened because you
posted via Nabble. It's a good searchable archive but a bad way to post
questions... I'd suggest you do a direct subscription and post again the
message instead
Cheers
Andrea
Il 13 mag 2016 18:56, "xzam" <m...@maxstephan.com<mailto:m...@maxstephan.com>>
ha scritto:
Hi,
I am trying to get clipping through a SLD rendering transformation to work.
For that I am using the 'gs:Clip' in my SLD as shown below:
This is the error I receive in the geoserver log(Verbose logging settings
activated):
The WMS requests returns the image as normal, i.e. not clipped.
My Geoserver version is 2.9RC1. The WPS extension and specifically clipping
is working correctly when directly calling the WPS.
The dataset I want to clip doesn't have any dateTime fields so I also have
no idea where the date/time comes from.
Could anyone help me with this please? Am I misconfiguring something?
Cheers,
Max
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/SLD-WPS-rendering-transformation-with-gs-Clip-not-working-tp5266261.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users