[][src]Function spatialite_sys::load_shapefile

pub unsafe extern "C" fn load_shapefile(
    sqlite: *mut sqlite3,
    shp_path: *mut c_char,
    table: *mut c_char,
    charset: *mut c_char,
    srid: c_int,
    column: *mut c_char,
    coerce2d: c_int,
    compressed: c_int,
    verbose: c_int,
    spatial_index: c_int,
    rows: *mut c_int,
    err_msg: *mut c_char
) -> c_int

Loads an external Shapefile into a newly created table

\param sqlite handle to current DB connection \param shp_path pathname of the Shapefile to be imported (no suffix) \param table the name of the table to be created \param charset a valid GNU ICONV charset to be used for DBF text strings \param srid the SRID to be set for Geometries \param column the name of the geometry column \param coerce2d if TRUE any Geometry will be casted to 2D [XY] \param compressed if TRUE compressed Geometries will be created \param verbose if TRUE a short report is shown on stderr \param spatial_index if TRUE an R*Tree Spatial Index will be created \param rows on completion will contain the total number of imported rows \param err_msg on completion will contain an error message (if any)

\return 0 on failure, any other value on success

\sa load_shapefile_ex, load_shapefile_ex2

\note this function simply calls load_shapefile_ex by passing implicit gype="AUTO" and pk_column=NULL arguments