Function srid_get_unit

Source
pub unsafe extern "C" fn srid_get_unit(
    sqlite: *mut sqlite3,
    srid: c_int,
) -> *mut c_char
Expand description

checks a SRID definition from the “spatial_ref_sys” table then returning the corresponding Unit name

\param sqlite handle to current DB connection \param srid the SRID value uniquely identifying the required EPSG definition

\return the Unit name on succes, NULL on failure

\note you are responsible for freeing the returned name.