Skip to end of metadata
Go to start of metadata

Much of the api for building features has been deprecated on geotools trunk. The TypeBuilder and FeatureBuilder interfaces developed on the fm branch are intended to be used as the alternative. So in preparation for the new feature model, these classes can be used to create features based on the current model.

Building a Feature Type

Before
After

Builing a Feature

Before
After

Shifting to these new apis can be mostly isolated to the following methods currently used to build features:

  • AttributeTypeFactory.newAttributeType() ( 666 errors )
  • DataUtilities.createType()
  • FeatureTypes.newFeatureType()
  • FeatureType.create() ( 160 errors )
  • No labels

1 Comment

  1. So, if the new FeatureTypeImplementation supports the new APIs, this is not a show stopper but in fact a useful step forward we would benefit from doing ASAP ?

    Also, not sure that I want to set the CRS for the featureType. I think the CRS should be set per geometry attribute. Its perfectly sensible to have different geometries in different CRS (0-D, 2-D and 3-D representations of a building for instance)