[−][src]Function spatialite_sys::sanitize_all_geometry_columns
pub unsafe extern "C" fn sanitize_all_geometry_columns(
sqlite: *mut sqlite3,
tmp_prefix: *const c_char,
output_dir: *const c_char,
not_repaired: *mut c_int,
err_msg: *mut *mut c_char
) -> c_int
Sanitizes all Geometry Columns making all invalid geometries to be valid
\param sqlite handle to current DB connection \param tmp_prefix name-prefix for temporary tables \param output_dir pathname of the directory to be created for report-files \param not_repaired if this variable is not NULL on successful completion will contain the total count of repair failures (i.e. Geometries beyond possible repair) \param err_msg if this variable is not NULL and the return status is ZERO (failure), an appropriate error message will be returned
\sa sanitize_all_geometry_columns_r, check_geometry_column, check_all_geometry_columns, sanitize_geometry_column
\note this function will attempt to make valid all invalid geometries found within all Geometry Columns (vector layers); a temporary table is required so to support each input table. \n if the process has full success the temprary table will be deleted; otherwise it will be preserved for further inspection. a HTML report will be produced as well. \n an eventual error message returned via err_msg requires to be deallocated by invoking free()\n not reentrant and thread unsafe.
\return 0 on failure, any other value on success