From: apreciado <apr...@in...> - 2008-10-14 07:17:47
|
It is a example: SimpleFeatureType pointType = FeatureTypes.newFeatureType( typesNew, style.getName()); SimpleFeature ptF = SimpleFeatureBuilder.build(pointType,new Object[] {point,figuraDTO.getIdentificador(), figuraDTO},null); goodbye. ruantong wrote: > > > hi, > Traditionally, I use FeatureTypeFactory.newFeatureType(.... ) to > create > a featuretype,but I found the abstract class is deprecated in Getools > 2.4.5 > and 2.5. I want to use : > FeatureTypeFactory.createFeatureType(...), but in new version > FeatureTypeFactory is an interface, > I want to use BasicFactories.getFeatureTypeFactory() or getTypeFactory(), > but found they are also deprecated. > see: > http://javadoc.geotools.fr/2.5-M3/org/geotools/factory/BasicFactories.html#getFeatureTypeFactory() > Thus I wound like to know, which is not deprecated? > Thanks a lot. > > > vicky > -- > View this message in context: > http://n2.nabble.com/How-to-creat-a-featuretype-in-Getools-2.5--tp1303099p1303099.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://www.nabble.com/How-to-creat-a-featuretype-in-Getools-2.5--tp19934270p19968229.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |