Hi,
how could I parse the FeatureType of a Feature to another one?
For example, how could I change a feature from ft1 to ft2:
        
        final AttributeType atShort = 
AttributeTypeFactory.newAttributeType("number", Short.class, false);
        final FeatureTypeBuilder build1 = FeatureTypeBuilder.newInstance("ft1");
        build.addTypes(new AttributeType[] {atShort});
        FeatureType ft1 = build.getFeatureType(); 

        final AttributeType atInteger = 
AttributeTypeFactory.newAttributeType("number", Short.class, false);
        final FeatureTypeBuilder build2 = FeatureTypeBuilder.newInstance("ft2");
        build.addTypes(new AttributeType[] {atInteger});
        FeatureType ft2 = build.getFeatureType(); 


Or even worst, how if ft1 had a String instead of Short?

best regards,
Francisco de Assis.



__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
-------------------------------------------------------------------------
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

Reply via email to