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
75 #ifdef LOADABLE_EXTENSION
76 SPATIALITE_DECLARE
int
77 sqlite3_spatialite_init (sqlite3 * db,
char **pzErrMsg,
78 const sqlite3_api_routines * pApi);
151 const void *ptr,
int verbose);
201 SPATIALITE_DECLARE
int dump_shapefile (sqlite3 * sqlite,
char *table,
202 char *column,
char *shp_path,
203 char *charset,
char *geom_type,
204 int verbose,
int *rows,
230 SPATIALITE_DECLARE
int load_shapefile (sqlite3 * sqlite,
char *shp_path,
231 char *table,
char *charset,
int srid,
232 char *column,
int coerce2d,
233 int compressed,
int verbose,
234 int spatial_index,
int *rows,
274 char *table,
char *charset,
275 int srid,
char *geo_column,
276 char *gtype,
char *pk_column,
277 int coerce2d,
int compressed,
278 int verbose,
int spatial_index,
279 int *rows,
char *err_msg);
299 SPATIALITE_DECLARE
int load_dbf (sqlite3 * sqlite,
char *dbf_path,
300 char *table,
char *charset,
int verbose,
301 int *rows,
char *err_msg);
320 SPATIALITE_DECLARE
int load_dbf_ex (sqlite3 * sqlite,
char *dbf_path,
321 char *table,
char *pk_column,
322 char *charset,
int verbose,
int *rows,
337 SPATIALITE_DECLARE
int dump_dbf (sqlite3 * sqlite,
char *table,
338 char *dbf_path,
char *charset,
354 SPATIALITE_DECLARE
int load_XL (sqlite3 * sqlite,
const char *path,
356 unsigned int worksheetIndex,
357 int first_titles,
unsigned int *rows,
367 SPATIALITE_DECLARE
double math_round (
double value);
376 SPATIALITE_DECLARE sqlite3_int64
math_llabs (sqlite3_int64 value);
431 SPATIALITE_DECLARE
int
447 SPATIALITE_DECLARE
int dump_kml (sqlite3 * sqlite,
char *table,
448 char *geom_col,
char *kml_path,
449 char *name_col,
char *desc_col,
519 char *outTable,
char *pKey,
542 SPATIALITE_DECLARE
int dump_geojson (sqlite3 * sqlite,
char *table,
543 char *geom_col,
char *outfile_path,
544 int precision,
int option);
590 const char *geometry);
618 const char *geometry,
732 SPATIALITE_DECLARE
int gaiaDropTable (sqlite3 * sqlite,
const char *table);
783 const char *report_path,
784 int *n_rows,
int *n_invalids,
817 const char *report_path,
844 const char *output_dir,
872 const char *output_dir,
912 const char *tmp_table,
913 const char *report_path,
958 const char *tmp_table,
959 const char *report_path,
1036 SPATIALITE_DECLARE
int gaiaGPKG2Spatialite (sqlite3 * handle_in,
1037 const char *gpkg_in_path,
1038 sqlite3 * handle_out,
1039 const char *splite_out_path);
1040 SPATIALITE_DECLARE
int gaiaSpatialite2GPKG (sqlite3 * handle_in,
1041 const char *splite_in_path,
1042 sqlite3 * handle_out,
1043 const char *gpkg_out_path);
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_r(const void *p_cache, 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 void spatialite_cleanup_ex(const void *ptr)
Cleanup a SpatiaLite connection.
SPATIALITE_DECLARE void spatialite_init_ex(sqlite3 *db_handle, const void *ptr, int verbose)
Initializes a SpatiaLite connection.
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 spatialite_shutdown(void)
Finalizes the library.
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 gaiaUpdateMetaCatalogStatisticsFromMaster(sqlite3 *handle, const char *master_table, const char *table_name, const char *column_name)
Updates the "splite_metacatalog_statistics" table (using a Master 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 a SpatiaLite connection.
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 const char * spatialite_target_cpu(void)
Return the target CPU name.
SPATIALITE_DECLARE sqlite3_int64 math_llabs(sqlite3_int64 value)
A portable replacement for C99 llabs()
SPATIALITE_DECLARE int sanitize_all_geometry_columns_r(const void *p_cache, 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 void remove_duplicated_rows_ex(sqlite3 *sqlite, char *table, int *removed)
Remove duplicated rows from a table.
SPATIALITE_DECLARE int check_geometry_column_r(const void *p_cache, 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 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 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.
SPATIALITE_DECLARE int check_all_geometry_columns_r(const void *p_cache, sqlite3 *sqlite, const char *output_dir, int *n_invalids, char **err_msg)
Checks all Geometry Columns for validity.
Container for Vector Layers List.
Definition: gg_structs.h:799
SPATIALITE_DECLARE int gaiaDropTableEx(sqlite3 *sqlite, const char *prefix, const char *table)
Drops a layer-table, removing any related dependency.
SPATIALITE_DECLARE void spatialite_init(int verbose)
Initializes a SpatiaLite connection.
SPATIALITE_DECLARE int gaiaStatisticsInvalidate(sqlite3 *handle, const char *table, const char *geometry)
Immediately and unconditionally invalidates the already existing Statistics.
SPATIALITE_DECLARE int gaiaUpdateMetaCatalogStatistics(sqlite3 *handle, const char *table, const char *column)
Updates the "splite_metacatalog_statistics" table.
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 void spatialite_initialize(void)
Initializes the library.
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 gaiaCreateMetaCatalogTables(sqlite3 *handle)
Creates (or re-creates) the "splite_metacatalog" and "splite_metacalog_statistics" tables...
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.