AttributeDescriptor attributeType = schema.getDescriptor(i);
if (attributeType instanceof GeometryDescriptor) {
GeometryDescriptor geometryType = (GeometryDescriptor) attributeType;
AttributeDescriptor forced;
tb.descriptor( geometryType );
if ( !forceOnlyMissing || geometryType.getCoordinateReferenceSystem() == null ) {
tb.crs( crs );
}
tb.add( geometryType.getLocalName(), geometryType.getType().getBinding() );