Function dump_geojson_ex

Source
pub unsafe extern "C" fn dump_geojson_ex(
    sqlite: *mut sqlite3,
    table: *mut c_char,
    geom_col: *mut c_char,
    outfile_path: *mut c_char,
    precision: c_int,
    option: c_int,
    rows: *mut c_int,
) -> c_int
Expand description

Dumps a full geometry-table into an external GeoJSON file

\param sqlite handle to current DB connection \param table the name of the table to be exported \param geom_col the name of the geometry column \param outfile_path pathname for the GeoJSON file to be written to \param precision number of decimal digits for coordinates \param option the format to use for output \param rows on completion will contain the total number of exported rows

\sa dump_geojson

\note valid values for option are:

  • 0 no option
  • 1 GeoJSON MBR
  • 2 GeoJSON Short CRS (e.g EPSG:4326)
  • 3 MBR + Short CRS
  • 4 GeoJSON Long CRS (e.g urn:ogc:def:crs:EPSG::4326)
  • 5 MBR + Long CRS

\return 0 on failure, any other value on success