FeatureType comparison indicating if the description provided by two FeatureTypes is similar
to the point data can be exchanged. This comparison is really very focused on the name /
value contract and is willing to overlook details like length restrictions.
When creating compatible FeatureTypes you will find some systems have different abilities
which is reflected in how well they support a given FeatureType.
As an example databases traditionally support variable length strings with a limit of 32
k; while a shapefile is limited to 256 characters. When working with data from both these
data sources you will need to make adjustments based on these abilities. If true is returned
data conforming to the expected FeatureType can be used with the actual FeatureType.
After assertOrderCovered returns without error the following code will work:
for( Property property : feature.getProperties() ){
Object value = property.getValue();
Property target = newFeature.getProperty( property.getName().getLocalPart() );
target.setValue( value );
}
Specifically this says that between the two feature types data is assignable on a name by
name basis.