* illegal
*/
public SimpleFeature readFeature() throws IOException, IllegalAttributeException {
SimpleFeature result = null;
//Iterator<VPFColumn> iter = columns.iterator();
VPFColumn column;
boolean textPrimitive = pathName.endsWith(TEXT_PRIMITIVE);
int size = columns.size();
if (textPrimitive) size++;
Object[] values = new Object[size];
try {
for (int inx = 0; inx < columns.size(); inx++) {
column = (VPFColumn) columns.get(inx);
AttributeDescriptor descriptor = column.getDescriptor();
if ( descriptor.getType().getRestrictions().isEmpty() ||
descriptor.getType().getRestrictions().contains( org.opengis.filter.Filter.INCLUDE )) {
values[inx] = readVariableSizeData(column.getTypeChar());
}
else {
values[inx] = readFixedSizeData(column.getTypeChar(),
column.getElementsNumber());
}
}
if (textPrimitive) {
values[size-1] = "nam";
}