if( schema ==null ){
return;
}
geom = schema.getGeometryDescriptor();
}
FeatureTypeEditor editor = dialog.getEditor();
SimpleFeatureType ft = editor.createDefaultFeatureType();
SimpleFeatureTypeBuilder builder = editor.builderFromFeatureType(ft);
String defaultGeometry = ft.getGeometryDescriptor().getLocalName();
if( defaultGeometry == null ){
return;
}
builder.remove(defaultGeometry);