tb.minOccurs(att.getMinOccurs());
tb.maxOccurs(att.getMaxOccurs());
tb.restrictions(att.getType().getRestrictions());
if (att instanceof GeometryDescriptor) {
GeometryDescriptor gatt = (GeometryDescriptor) att;
tb.crs(gatt.getCoordinateReferenceSystem());
}
tb.add("z_" + att.getLocalName(), att.getType().getBinding());
}
AttributeDescriptor dataDescriptor = data.getSchema().getDescriptor(dataAttribute);
tb.add("count", Long.class);