Hi list.
Hi Mike and Luca.
Alternative.
It is possible to use:
...
        <Layer queryable="1" hidden="0">
            <Server service="OGC:WMS" version="1.0.0" title="OGC:WMS">
      <OnlineResource xlink:type="simple" xlink:href="
http://localhost:8080/geoserver/wms"/>
            </Server>
            <Name>topp:brazil</Name>
            <Title> Brasil</Title>
            <SRS>EPSG:4326</SRS>
            <FormatList>
                <Format current="1">image/gif</Format>
            </FormatList>

            <StyleList>
                <Style current="1">
                    <SLD>
//->Copy my file.sld and I placed here

 <?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns:sld=" http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml";
version=" 1.0.0">
    <sld:UserLayer>
        <sld:LayerFeatureConstraints>
            <sld:FeatureTypeConstraint/>
        </sld:LayerFeatureConstraints>
        <sld:UserStyle>
            <sld:Name>Default Styler</sld:Name>
            <sld:Title>Default Styler</sld:Title>
            <sld:Abstract></sld:Abstract>
            <sld:FeatureTypeStyle>
                <sld:Name>name</sld:Name>
                <sld:Title>title</sld:Title>
                <sld:Abstract>abstract</sld:Abstract>
                <sld:FeatureTypeName>brazil</sld:FeatureTypeName>

<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>

<sld:SemanticTypeIdentifier>colorbrewer:quantile:bugn</sld:SemanticTypeIdentifier>
                <sld:Rule>
                    <sld:Name>rule01</sld:Name>
                    <sld:Title>226966 to 1187356</sld:Title>
                    <sld:Abstract>Abstract</sld:Abstract>
                                                  ...
                                                  ...
                                                  ...
                        </sld:Fill>
                        <sld:VendorOption name="spaceAround">2</sld
:VendorOption>
                    </sld:TextSymbolizer>
                </sld:Rule>
            </sld:FeatureTypeStyle>
        </sld:UserStyle>
    </sld:UserLayer>
</sld:StyledLayerDescriptor>


                    </SLD>



                </Style>
            </StyleList>
        </Layer>
.....


My attempt did not work.
Help me.

Best regards,
Carlos FG

2007/8/2, Mike Adair <[EMAIL PROTECTED]>:
>
> The difference is that OnlineResource is a URL used to generate images
> which get put into <IMG> elements (no cross domain issues) and the SLD
> is an XML document that gets loaded by the browser (same domain issue).
>
> Mike
>
> Carlos Fernando Gonçalves wrote:
> > Hi Luca and Mike.
> > No work.
> > The curiosity is that
> >   <OnlineResource xlink:type="simple" xlink:href="
> > http://localhost:8080/geoserver/wms"/>
> >
> > it work xlink:href with localhost and SLD no work.
> >
> > It will be that it is because of the MapBuilder?
> > Help me.
> > Best regards,
> > Carlos FG
> >
> >
> >
> > 2007/8/2, Mike Adair <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>>:
> >
> >     Just out of curiosity, can you try changing "localhost" to
> >     "127.0.0.1 <http://127.0.0.1>"
> >     ?  or even just as: "/mapbuilder/myapp/brasil.sld".
> >     I think it's an issue of running through the proxy even when it's
> >     on the
> >     same server.
> >
> >     Mike
> >
> >     Luca Giandoso wrote:
> >     >>                     <SLD>
> >     >>                         <OnlineResource xlink:type="simple"
> >     >> xlink:href="
> >     >> http://localhost:8080/mapbuilder/myapp/brasil.sld";; />
> >     >>                     </SLD>
> >     >>
> >     >
> >     > It does not work with localhost.
> >     > For example, to make it work I use virtual host.
> >     >
> >     > Luca
> >     >
> >     >
> >
> >
> >
> >
> > --
> >
> > Carlos FG
>
>


-- 

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