johann Sorel wrote:
> hello,
>
> I searching for a wait to translate GeoTools Styles to
> SLD files.
>
> I have found :
> http://docs.codehaus.org/display/GEOTDOC/12+Render
>
> The exemple works for SLD > Style
>
> but on the other way I'm stuck?
>   
How so?
> //missing part <----- insert myStyles in the SLD
>   
well do you not already have your Styles in an SLD object? What are they 
doing running around naked?
> //translate to xml string
> SLDTransformer styleTransform = new SLDTransformer();
> try{
>     String xml = styleTransform.transform(sld);
> } catch(Exception e){
>     e.printStackTrace();
> }
>   
You can probably output a Style object using the styleTransformer as 
well; they are just not going to be a valid document (only an xml fragment).

Cheers;
Jody

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to