I can“t load my SLD in my mapbuilder application. 

When I use the onlineResource tag, geoserver returns the error: 
remote SLD url error: no protocol: java.net.MalformedURLException: no
protocol

When I use the StyledLayerDescriptor tag into the SLD tag in the Web Map
Context file, geoserver ignores it and use the default style defined for
each layer.

The code of my Web Map Context file is the next:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<ViewContext version="1.0.0" id="atlas_world" 
xmlns="http://www.opengis.net/context"; 
xmlns:geol="http://www.geoloc.com"; 
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.opengis.net/context/1.0.0/context.xsd";>
  <General>
    <Window width="483" height="500"/>
    <BoundingBox SRS="EPSG:23029" minx="474975.63438579434"
miny="4626689.242746784" maxx="692920.5541499901" maxy="4852215.096559235"/>
    <Title>geol:concellos Map</Title>
    <KeywordList>
      <Keyword>Concellos</Keyword>
    </KeywordList>
    <Abstract></Abstract>
  </General>
  <LayerList>
    <Layer queryable="1" hidden="0">
      <Server service="OGC:WMS" version="1.1.1" title="OGC:WMS">
        <OnlineResource xlink:type="simple"
xlink:href="http://127.0.0.1:8080/geoserver/wms?"/>
      </Server>
      <Name>geol:concellos</Name>
      <Title>Concellos</Title>
      <SRS>EPSG:23029</SRS>
      <FormatList><Format current="1">image/png</Format></FormatList>
    </Layer>
    <Layer queryable="1" hidden="0">
      <Server service="OGC:WMS" version="1.1.1" title="OGC:WMS">
        <OnlineResource xlink:type="simple"
xlink:href="http://127.0.0.1:8080/geoserver/wms?"/>
      </Server>
      <Name>geol:documento</Name>
      <Title>Documentos</Title>
      <SRS>EPSG:23029</SRS>
      <FormatList><Format current="1">image/png</Format></FormatList>

       <StyleList>
                <Style current="1">
                        <!-- <Name>geol:documento</Name>
                        <Title>default</Title> -->
                <SLD>
  
<!--
                        
                                <OnlineResource xlink:type="simple" 
                                                
xmlns:xlink="http://www.w3.org/TR/xlink";                                        
                                                                                
                        
xlink:href="http://127.0.0.1:8090/GeoLoc/mapbuilder/sessions/C8A04021AC59876CC36390ACDAEA6148/geoloc_documento.sld"/>
 -->                      
    <StyledLayerDescriptor version="1.0.0"                              
                        xmlns="http://www.opengis.net/sld"; 
                        xmlns:gml="http://www.opengis.net/gml"; 
                        xmlns:ogc="http://www.opengis.net/ogc"; 
                        xmlns:xlink="http://www.w3.org/1999/xlink"; 
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

<NamedLayer xmlns:ogc="http://www.opengis.net/ogc";>
        <Name>geol:documento</Name>
        <UserStyle>
        <Name>point</Name>
        <Title>estilo_documento</Title>

        <IsDefault>true</IsDefault>

        <FeatureTypeStyle>

                <Rule>

                        <ogc:Filter>
                                <ogc:PropertyIsEqualTo>
                                        
<ogc:PropertyName>iddocumento</ogc:PropertyName>
                                        <ogc:Literal>1</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                        </ogc:Filter>
        
        
                        <MinScaleDenominator>0.0</MinScaleDenominator>
                        <MaxScaleDenominator>9.0E99</MaxScaleDenominator>
        
                        <PointSymbolizer>

                                <Graphic>
                                <Mark>
                                        <WellKnownName>star</WellKnownName>
                                        <Fill>
                                                <CssParameter 
name='fill-opacity'>1.0</CssParameter>
                                                <CssParameter 
name='fill'>#FFFF00</CssParameter>
                                        </Fill>
                                        <Stroke>
                                                <CssParameter 
name='stroke'>#FFFF00</CssParameter>
                                                <CssParameter 
name='stroke-width'><Literal>3</Literal></CssParameter>
                                                <CssParameter 
name='stroke-linejoin'>round</CssParameter>
                                                <CssParameter 
name='stroke-opacity'>1.0</CssParameter>
                                                <CssParameter 
name='stroke-linecap'>round</CssParameter>
                                        </Stroke>
                                </Mark>
                                <Opacity>1.0</Opacity>
                                <Size><Literal>12</Literal></Size>
                                <Rotation>0.0</Rotation>
                                </Graphic>
                  </PointSymbolizer>

                </Rule>
        </FeatureTypeStyle>
        </UserStyle>
        </NamedLayer>
</StyledLayerDescriptor>

  </SLD>                        
                        
  </Style>
</StyleList>
   
    </Layer>    
  </LayerList>
</ViewContext>
-- 
View this message in context: 
http://www.nabble.com/Geosever-use-default-SLD%2C-not-my-SLD-in-mapbuilder-tf4165454.html#a11851100
Sent from the MapBuilder Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to