SLD defined in Web Map Context ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SLD defined in Web Map Context ?

determek
Dear all

I try to define a style directly in the WMC but Deegree doesn't accept it.

1) Does Deegree implement this style management ?
2) Wich syntax must be used ?

An alternative is to write a sld file and reference the file in the WMC but this solution is not suitable in my case.

Here are extracts of the WMC and the logs. I receive a broken pipe error without more indication.

...
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<ViewContext version="1.0.0"
             id="owsview_generated_context"
             xmlns="http://www.opengis.net/context"
             xmlns:xlink="http://www.w3.org/1999/xlink"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengeospatial.net/context/1.0.0/context.xsd">
 <General>
...
<FormatList>
<Format current='1'>image/png</Format>
</FormatList>
<StyleList>
<Style current='1'> <SLD> <StyledLayerDescriptor version="1.0.0" > <NamedLayer> <Name>testLayer</Name> <UserStyle> <FeatureTypeStyle> <Rule> <PolygonSymbolizer> <Fill> <CssParameter name="fill">#FF0000</CssParameter> <CssParameter name="fill-opacity">1</CssParameter> </Fill> </PolygonSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> </SLD> </Style></StyleList>
...

ClientAbortException:  java.net.SocketException: Broken pipe
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:88)
        at java.io.DataOutputStream.write(DataOutputStream.java:90)
        at com.sun.media.jai.codecimpl.IDATOutputStream.flush(PNGImageEncoder.java:207)
        at com.sun.media.jai.codecimpl.IDATOutputStream.write(PNGImageEncoder.java:233)
        at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:161)
        at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
        at com.sun.media.jai.codecimpl.PNGImageEncoder.encodePass(PNGImageEncoder.java:425)
        at com.sun.media.jai.codecimpl.PNGImageEncoder.writeIDAT(PNGImageEncoder.java:470)
        at com.sun.media.jai.codecimpl.PNGImageEncoder.encode(PNGImageEncoder.java:979)
        at com.sun.media.jai.codec.ImageEncoderImpl.encode(ImageEncoderImpl.java:87)
        at org.deegree.graphics.Encoders.encodePng(Encoders.java:122)
        at org.deegree.enterprise.servlet.WMSHandler.writeImage(WMSHandler.java:532)
        at org.deegree.enterprise.servlet.WMSHandler.handleGetMapResponse(WMSHandler.java:300)
        at org.deegree.enterprise.servlet.WMSHandler.handleResponse(WMSHandler.java:222)
        at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:153)
        at org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:129)
        at org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:225)
        ...


Any idea is welcome.






Reply | Threaded
Open this post in threaded view
|

Re: SLD defined in Web Map Context ?

Andreas Poth
Hi,

sorry, but deegree does not implement this feature at the moment.

best regards

ANDREAS

KDT schrieb:

>Dear all
>
>I try to define a style directly in the WMC but Deegree doesn't accept it.
>
>1) Does Deegree implement this style management ?
>2) Wich syntax must be used ?
>
>An alternative is to write a sld file and reference the file in the WMC but
>this solution is not suitable in my case.
>
>Here are extracts of the WMC and the logs. I receive a broken pipe error
>without more indication.
>
>...
><?xml version="1.0" encoding="utf-8" standalone="no" ?>
><ViewContext version="1.0.0"
>             id="owsview_generated_context"
>             xmlns="http://www.opengis.net/context"
>             xmlns:xlink="http://www.w3.org/1999/xlink"
>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>             xsi:schemaLocation="http://www.opengis.net/context
>http://schemas.opengeospatial.net/context/1.0.0/context.xsd">
> <General>
>...
><FormatList>
><Format current='1'>image/png</Format>
></FormatList>
><StyleList>
><Style current='1'>
><SLD>
>  <StyledLayerDescriptor version="1.0.0" >
> <NamedLayer>
> <Name>testLayer</Name>
> <UserStyle>
> <FeatureTypeStyle>
> <Rule>
>  <PolygonSymbolizer>
>            <Fill>
>                    <CssParameter name="fill">#FF0000</CssParameter>
>                    <CssParameter name="fill-opacity">1</CssParameter>
>            </Fill>
>          </PolygonSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
> </StyledLayerDescriptor>
></SLD>
></Style>
></StyleList>
>...
>
>  
>
[...]

>
>Any idea is welcome.
>  
>


--
Dr. Andreas Poth

l a t / l o n  GmbH
Aennchenstrasse 19            53177 Bonn, Germany
phone ++49 +228 18496-0       fax ++49 +228 18496-29
http://www.lat-lon.de         http://www.deegree.org


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users