Hi Michael, I tryed this but it seems the featureTypeStyles() method doesn't exist... I'm using geotools 2.5.1 Should I update geotools to a more recent version ? Is changing the pom.xml file all I have to do for this ?
Le 18 févr. 09 à 23:40, Michael Bedward a écrit : > Hi Benoit, > > There is a back door... > > Instead of... > style.addFeatureTypeStyle(fts); > > ...which is deprecated, you can do this... > ((List<FeatureTypeStyle>)style.featureTypeStyles()).add(fts); > > ...which is ugly, but not deprecated :-) > > I've no idea whether that is 'bad practice' or not > > Michael > Benoît Thiébault Société Artenum 24 rue Louis Blanc, 75010 Paris tel: +33 (0)1 46 94 67 54 Artenum - Science & Groupware - http://www.artenum.com ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
