50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 #define SPATIALITE_DECLARE __declspec(dllexport)
55 #define SPATIALITE_DECLARE extern
58 #define SPATIALITE_DECLARE __attribute__ ((visibility("default")))
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
168 SPATIALITE_DECLARE
int dump_shapefile (sqlite3 * sqlite,
char *table,
169 char *column,
char *shp_path,
170 char *charset,
char *geom_type,
171 int verbose,
int *rows,
197 SPATIALITE_DECLARE
int load_shapefile (sqlite3 * sqlite,
char *shp_path,
198 char *table,
char *charset,
int srid,
199 char *column,
int coerce2d,
200 int compressed,
int verbose,
201 int spatial_index,
int *rows,
241 char *table,
char *charset,
242 int srid,
char *geo_column,
243 char *gtype,
char *pk_column,
244 int coerce2d,
int compressed,
245 int verbose,
int spatial_index,
246 int *rows,
char *err_msg);
266 SPATIALITE_DECLARE
int load_dbf (sqlite3 * sqlite,
char *dbf_path,
267 char *table,
char *charset,
int verbose,
268 int *rows,
char *err_msg);
287 SPATIALITE_DECLARE
int load_dbf_ex (sqlite3 * sqlite,
char *dbf_path,
288 char *table,
char *pk_column,
289 char *charset,
int verbose,
int *rows,
304 SPATIALITE_DECLARE
int dump_dbf (sqlite3 * sqlite,
char *table,
305 char *dbf_path,
char *charset,
321 SPATIALITE_DECLARE
int load_XL (sqlite3 * sqlite,
const char *path,
323 unsigned int worksheetIndex,
324 int first_titles,
unsigned int *rows,
334 SPATIALITE_DECLARE
double math_round (
double value);
343 SPATIALITE_DECLARE sqlite3_int64
math_llabs (sqlite3_int64 value);
398 SPATIALITE_DECLARE
int
414 SPATIALITE_DECLARE
int dump_kml (sqlite3 * sqlite,
char *table,
415 char *geom_col,
char *kml_path,
416 char *name_col,
char *desc_col,
469 char *outTable,
char *pKey,
492 SPATIALITE_DECLARE
int dump_geojson (sqlite3 * sqlite,
char *table,
493 char *geom_col,
char *outfile_path,
494 int precision,
int option);
545 const char *geometry,
605 SPATIALITE_DECLARE
int gaiaDropTable (sqlite3 * sqlite,
const char *table);
631 const char *report_path,
632 int *n_rows,
int *n_invalids,
653 const char *output_dir,
689 const char *tmp_table,
690 const char *report_path,
SPATIALITE_DECLARE void spatialite_init_ex(sqlite3 *db_handle, void *ptr, int verbose)
Initializes the library.
Geometry handling functions and constants.
SPATIALITE_DECLARE int insert_epsg_srid(sqlite3 *sqlite, int srid)
Inserts some inlined EPSG definition into the "spatial_ref_sys" table.
SPATIALITE_DECLARE int sanitize_geometry_column(sqlite3 *sqlite, const char *table, const char *geom, const char *tmp_table, const char *report_path, int *n_invalids, int *n_repaired, int *n_discarded, int *n_failures, char **err_msg)
Sanitizes a Geometry Column making all invalid geometries to be valid.
SPATIALITE_DECLARE int spatial_ref_sys_init(sqlite3 *sqlite, int verbose)
Inserts the inlined EPSG dataset into the "spatial_ref_sys" table.
SPATIALITE_DECLARE void remove_duplicated_rows(sqlite3 *sqlite, char *table)
Remove duplicated rows from a table.
SPATIALITE_DECLARE void check_duplicated_rows(sqlite3 *sqlite, char *table, int *dupl_count)
Checks for duplicated rows into the same table.
SPATIALITE_DECLARE int spatial_ref_sys_init2(sqlite3 *sqlite, int mode, int verbose)
Inserts the inlined EPSG dataset into the "spatial_ref_sys" table.
SPATIALITE_DECLARE int load_shapefile(sqlite3 *sqlite, char *shp_path, char *table, char *charset, int srid, char *column, int coerce2d, int compressed, int verbose, int spatial_index, int *rows, char *err_msg)
Loads an external Shapefile into a newly created table.
SPATIALITE_DECLARE int is_kml_constant(sqlite3 *sqlite, char *table, char *column)
Checks if a column is actually defined into the given table.
SPATIALITE_DECLARE int gaiaDropTable(sqlite3 *sqlite, const char *table)
Drops a layer-table, removing any related dependency.
SPATIALITE_DECLARE int load_dbf(sqlite3 *sqlite, char *dbf_path, char *table, char *charset, int verbose, int *rows, char *err_msg)
Loads an external DBF file into a newly created table.
SPATIALITE_DECLARE int load_XL(sqlite3 *sqlite, const char *path, const char *table, unsigned int worksheetIndex, int first_titles, unsigned int *rows, char *err_msg)
Loads an external spreadsheet (.xls) file into a newly created table.
SPATIALITE_DECLARE int load_dbf_ex(sqlite3 *sqlite, char *dbf_path, char *table, char *pk_column, char *charset, int verbose, int *rows, char *err_msg)
Loads an external DBF file into a newly created table.
SPATIALITE_DECLARE void * spatialite_alloc_connection(void)
Initializes the internal memory block supporting each connection.
SPATIALITE_DECLARE void spatialite_cleanup(void)
Cleanup spatialite.
SPATIALITE_DECLARE int dump_shapefile(sqlite3 *sqlite, char *table, char *column, char *shp_path, char *charset, char *geom_type, int verbose, int *rows, char *err_msg)
Dumps a full geometry-table into an external Shapefile.
SPATIALITE_DECLARE int check_geometry_column(sqlite3 *sqlite, const char *table, const char *geom, const char *report_path, int *n_rows, int *n_invalids, char **err_msg)
Checks a Geometry Column for validity.
SPATIALITE_DECLARE sqlite3_int64 math_llabs(sqlite3_int64 value)
A portable replacement for C99 llabs()
SPATIALITE_DECLARE int dump_kml(sqlite3 *sqlite, char *table, char *geom_col, char *kml_path, char *name_col, char *desc_col, int precision)
Dumps a full geometry-table into an external KML file.
SPATIALITE_DECLARE void elementary_geometries(sqlite3 *sqlite, char *inTable, char *geometry, char *outTable, char *pKey, char *multiId)
Creates a derived table surely containing elementary Geometries.
SPATIALITE_DECLARE void gaiaFreeVectorLayersList(gaiaVectorLayersListPtr ptr)
Destroys a VectorLayersList object.
SPATIALITE_DECLARE int check_all_geometry_columns(sqlite3 *sqlite, const char *output_dir, int *n_invalids, char **err_msg)
Checks all Geometry Columns for validity.
SPATIALITE_DECLARE void spatialite_cleanup_ex(void *ptr)
Cleanup spatialite.
SPATIALITE_DECLARE int sanitize_all_geometry_columns(sqlite3 *sqlite, const char *tmp_prefix, const char *output_dir, int *not_repaired, char **err_msg)
Sanitizes all Geometry Columns making all invalid geometries to be valid.
SPATIALITE_DECLARE gaiaGeomCollPtr gaiaGetLayerExtent(sqlite3 *handle, const char *table, const char *geometry, int mode)
Queries the Metadata tables returning the Layer Full Extent.
Container for Vector Layers List.
Definition: gg_structs.h:799
SPATIALITE_DECLARE void spatialite_init(int verbose)
Initializes the library.
SPATIALITE_DECLARE int load_shapefile_ex(sqlite3 *sqlite, char *shp_path, char *table, char *charset, int srid, char *geo_column, char *gtype, char *pk_column, int coerce2d, int compressed, int verbose, int spatial_index, int *rows, char *err_msg)
Loads an external Shapefile into a newly created table.
SPATIALITE_DECLARE const char * spatialite_version(void)
Return the current library version.
SPATIALITE_DECLARE int update_layer_statistics(sqlite3 *sqlite, const char *table, const char *column)
Updates the LAYER_STATICS metadata table.
SPATIALITE_DECLARE double math_round(double value)
A portable replacement for C99 round()
Container for OGC GEOMETRYCOLLECTION Geometry.
Definition: gg_structs.h:216
SPATIALITE_DECLARE gaiaVectorLayersListPtr gaiaGetVectorLayersList(sqlite3 *handle, const char *table, const char *geometry, int mode)
Queries the Metadata tables supporting Vector Layers.
SPATIALITE_DECLARE int dump_dbf(sqlite3 *sqlite, char *table, char *dbf_path, char *charset, char *err_msg)
Dumps a full table into an external DBF file.
SPATIALITE_DECLARE int dump_geojson(sqlite3 *sqlite, char *table, char *geom_col, char *outfile_path, int precision, int option)
Dumps a full geometry-table into an external GeoJSON file.
SPATIALITE_DECLARE void spatialite_init_geos(void)
Initializes the GEOS library.