Andrea Peri wrote:
> Hi,
>
> I'm try-ing to port some code from 2.4.4 to 2.5M2.
>   
Welcome to trunk :-) 2.5.RC0 should be out very soon now.
> my code will use the FeatureType and AttributeType
>   
On trunk these are now known as:
- SimpleFeatureType
- AttributeDescriptor
- AttributeType

There are a bunch of links below to help with this stuff - I recently 
updated the javadocs for these concepts:
- 
http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/feature/type/package-summary.html
- 
http://geoapi.sourceforge.net/snapshot/javadoc/org/opengis/feature/simple/package-summary.html

There are a couple of diagrams above that should help.
> org.geotools.feature.FeatureType ft = featureStore.getSchema();
> org.geotools.feature.AttributeType at = ft.getAttributeType(0);
>
> Now I see they are deprecated on 2.5M2
>
> But I don't understand how to retrieve now the AttributeType informations .
>   
Have a look in the user guide there are lots of examples; you may find 
this page of examples helpful?
- 
http://docs.codehaus.org/display/GEOTDOC/03+SimpleFeatureTypeBuilder+and+SimpleFeatureBuilder
- 
http://docs.codehaus.org/display/GEOTDOC/04+SimpleFeature+and+SimpleFeatureBuilder
- http://docs.codehaus.org/display/GEOTDOC/Feature+Model+Guide



-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to