I use a StyleBuidler class to create my Styles so they are like you say : "naked".
My objective is to have a grahic SLD editor, and i'm not far to have a first working version. Problem is how do I make a SLD file with those GT styles ??? Must I make my own class for this ? and use a stringbuilder to concat everything? thx johann sorel > -----Original Message----- > From: [EMAIL PROTECTED] > Sent: Mon, 31 Mar 2008 11:56:27 -0700 > To: [EMAIL PROTECTED] > Subject: Re: [Geotools-devel] GT Style to SLD > > 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 ____________________________________________________________ Receive Notifications of Incoming Messages Easily monitor multiple email accounts & access them with a click. Visit http://www.inbox.com/notifier and check it out! ------------------------------------------------------------------------- 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
