dziadgba dziadgba wrote: > hye, > I would like to produce shape files with geotools. > I saw that this is quite straightforward, but I could not find any > method for writing SLD files. > Is there any possibility to produce such style - files? > thanks for help > dziadgba
To construct an SLD document, you take your Style or (preferred) StyledLayerDescriptor object, and feed it to a SLDTransformer: SLDTransformer st = new SLDTransformer(); String sld = st.transform(style); or a more specific example: http://svn.geotools.org/udig/trunk/plugins/net.refractions.udig.style.sld/src/net/refractions/udig/style/sld/editor/ExportSLD.java Cheers, Cory. ---- Cory Horner Refractions Research http://www.refractions.net ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
