protected static FeatureType removeGeometryColumn(EditableFeatureType fType) { Iterator iter = fType.iterator(); FeatureAttributeDescriptor attr; while (iter.hasNext()) { attr = (FeatureAttributeDescriptor) iter.next(); if (attr.getDataType() == DataTypes.GEOMETRY) { iter.remove(); } } fType.setDefaultGeometryAttributeName(null); return fType.getNotEditableCopy(); }
protected void loadValue( FeatureProvider featureProvider, int rowIndex, FeatureAttributeDescriptor descriptor) throws ReadException { if (descriptor.getDataType() == DataTypes.GEOMETRY) { return; } else { super.loadValue(featureProvider, rowIndex, descriptor); } }