Hi,

I'm using geo/geocode on a site documenting Tibetan cultural monuments that were damaged or destroyed by the Yushu Earthquake on April 14th.

I'm using geocode to compute geodata from an imagefield. The geodata is populated successfully during a regular node/add and node/edit but not during a batch upload using imagefield_import.

If anyone has an idea how to trigger the geocode_widget from inside the nodeapi hook implementation found in imagefield_import, I would really appreciate the help.

Imagefield_import sets up a drupal batch operation that calls the following function on line 663 of the latest dev version:

/**
* Batch API process handler for importing images to separate nodes.
*/
function _imagefield_import_batch_process_multiple($filepath, $form_state_values, &$context) {
$directory = variable_get('imagefield_import_path', '');
if (file_check_location($filepath, $directory) && $info = image_get_info($filepath)) {
list($type, $field_name) = split(':::', variable_get('imagefield_import_field', ''));

// get the field and its validators
$field = content_fields($field_name, $type);
$validators = imagefield_widget_upload_validators($field);

// make sure that the directory exists
$directory = filefield_widget_file_path($field);
field_file_check_directory($directory, FILE_CREATE_DIRECTORY);

// save the file and create a node
if ($file = field_file_save_file($filepath, $validators, $directory)) {
$file['original_path'] = $filepath;
$node = _imagefield_import_create_node($field, $form_state_values, $file);
if (variable_get('imagefield_import_delete', TRUE)) {
file_delete($filepath);
}
$context['results'][] = $filepath;
}
}
}

Thanks in advance for any assistance!!!

-Travis