[Gvsig_english] sld export problems

jaume domínguez faus jaume.dominguez at iver.es
Wed Dec 19 10:58:31 CET 2007


Hi Sven, Abson

Many thanks for your investigation. Maybe you are interested in knowing 
that we have revised the rendering engine for the next big release 1.2. 
Together with the refactoring we are rewriting the SLD support as a 
driver for reading and writing to get full SLD compatibility.

Regarding your point 3, we are now confused. In the specs we got from 
the OGC's web page appear some examples where the "ogc" prefix is used 
and others where not. For example in the <Filter> tag (page 27 in the 
Filter specs). We guessed then that both ways are valid, or at least 
both ways should be supported.

We are interested in hearing opinions about this topic.

Regards



Sven Böhme (WhereGroup) wrote:
> Hi List,
>
> first of all: thanks for the fast help. I solved all the problems and 
> now the sld works fine with geoserver. Here are the problems/bugs:
>
> 1. geoserver needs a schema, etc in the StyledLayerDescriptor 
> parameter, something like this:
>
> <StyledLayerDescriptor version="1.0.0"
>  xsi:schemaLocation="http://www.opengis.net/sld 
> StyledLayerDescriptor.xsd"
>  xmlns="http://www.opengis.net/sld"
>  xmlns:ogc="http://www.opengis.net/ogc"
>  xmlns:xlink="http://www.w3.org/1999/xlink"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> 2. the parameter CssParameter needs the value name, not Name!
>
> 3. In the filter sektion you have to add ogc: infront of all 
> parameters. Like this
>
>          <ogc:Filter>
>            <ogc:PropertyIsEqualTo>
>              <ogc:PropertyName>xxx</ogc:PropertyName>
>              <ogc:Literal>0</ogc:Literal>
>            </ogc:PropertyIsEqualTo>
>          </ogc:Filter>
>
> 4. The Literal "Default" is not a correct value!
>
> But now I have another question. Which script do I have to change and 
> where is it?
>
> Thanks!
> Sven
>
>
> SAE-TANG Musy-abson schrieb:
>> Hi Sven,
>>
>> Indeed, gvSIG doesn't close correctly the <Filter> tag. The end tag 
>> </Filter> should come before the symbology definition.
>> You may have also a problem with the <FeatureTypeStyleName> tag, 
>> remove this tag, or to change it in order to fit the feature name 
>> defined in Geoserver.
>> But according to your sld file, you seem already done those tips. ;-)
>>
>> Nonetheless, your first rule looks strange : 
>> <Literal>Default</Literal>. The value should be a literal not a text. 
>> But normally this rule (and only this) will be skipped by Geoserver.
>> So your sld seem well formed and should works with Geoserver... may 
>> be you have a problem with your adding process, or with your filter 
>> definition... Try to use the sld file without filter.
>>
>> Bye.
>>
>> Abson
>>
>>
>> -------- Message d'origine--------
>> De: gvsig_internacional-bounces at runas.cap.gva.es de la part de "Sven 
>> Böhme (WhereGroup)"
>> Date: mar. 18/12/2007 16:16
>> À: Users and Developers mailing list
>> Objet : Re: [Gvsig_english] sld export problems
>>  
>> ok, in the attachement.
>>
>> thanks
>>
>>
>> Olivier ERTZ schrieb:
>>  
>>> Could you please send us your SLD file so we can dig into it.
>>> Thanks, Olivier.
>>>
>>> Sven Böhme (WhereGroup) wrote:
>>>    
>>>> Hi List,
>>>>
>>>> I have a problem with the export of a sld file. I add a wfs layer 
>>>> an classify the legend. then i save the legend as *.sld. But if I 
>>>> add the sld to geoserver I get a lot of error messages. I modify 
>>>> the sld file, but it doesn´t work.
>>>> Does someone has the same problems with sld? Or is it probably a 
>>>> bug in gvsig? Or do I have to change something?
>>>>
>>>> Thanks
>>>> Sven
>>>> _______________________________________________
>>>> Gvsig_internacional mailing list
>>>> Gvsig_internacional at runas.cap.gva.es
>>>> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>>>>         
>>> _______________________________________________
>>> Gvsig_internacional mailing list
>>> Gvsig_internacional at runas.cap.gva.es
>>> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>>>       
>>
>>
>>   
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Gvsig_internacional mailing list
>> Gvsig_internacional at runas.cap.gva.es
>> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>>   
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>   


-- 
Jaume Dominguez Faus


Àrea de Software Lliure
Equip gvSIG
Iver TI
C. Salamanca, 52
46005 València
Telf: 902 25 25 40 Fax: 96 316 27 16
(Spain)
 


Este mensaje y sus archivos son confidenciales. No está permitida su reproducción o distribución sin la autorización expresa de "IVER Tecnologías de la Información". Si usted no es el destinatario previsto, queda desautorizado cualquier uso, acceso o copia de este mensaje. Si ha recibido este mensaje por error, por favor bórrelo e infórmenos por esta misma vía.



More information about the Gvsig_internacional mailing list