Пример #1
0
 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();
 }
Пример #2
0
 protected void loadValue(
     FeatureProvider featureProvider, int rowIndex, FeatureAttributeDescriptor descriptor)
     throws ReadException {
   if (descriptor.getDataType() == DataTypes.GEOMETRY) {
     return;
   } else {
     super.loadValue(featureProvider, rowIndex, descriptor);
   }
 }