Hey all,
Making Features is a mess in 2.2.x ; I'd like to resolve this.
>From the Javadocs, both GeoAPI and Geotools appear to provide approaches
to building Features but both are problematic.
1) Does the GeoAPI approach even work?
This approach uses AttributeDescriptors, are these
new/functional?
FeatureTypeFactory.createAttributeDescriptor()
FeatureTypeFactory.createFeatureType()
FeatureType.createFeature()
==> results in a org.opengis.feature.Feature, how does this
relate to a Geotools Feature?
2) Does the Geotools approach actually work?
The approach seems to have two branches, via FeatureTypeFactory
or via FeatureTypeBuilder but neither seems complete.
AttributeTypeFactory.newAttributeType()
FeatureTypeFactory.newFeatureType(AttribType [], "name")
==> FeatureTypeFactory is deprecated
FeatureType.create(Object [])
==> this works but uses a deprecated class
AttributeTypeFactory.newAttributeType()
==> can't do: new FeatureTypeBuilder() despite the javadocs.
FeatureTypeBuilder.getFeatureType()
FeatureType.create()
3) Is there going to be yet another approach with the new
Feature Model?
Could someone in the know explain these different paths to me so that I
could document the situation now and as it evolves.
thanks,
adrian
-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel