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 67 #define SPLITE_AXIS_1 0x51 68 #define SPLITE_AXIS_2 0x52 69 #define SPLITE_AXIS_NAME 0x3e 70 #define SPLITE_AXIS_ORIENTATION 0x3f 79 #ifdef LOADABLE_EXTENSION 80 SPATIALITE_DECLARE
int 81 sqlite3_spatialite_init (sqlite3 * db,
char **pzErrMsg,
82 const sqlite3_api_routines * pApi);
177 const void *ptr,
int verbose);
273 SPATIALITE_DECLARE
int dump_shapefile (sqlite3 * sqlite,
char *table,
274 char *column,
char *shp_path,
275 char *charset,
char *geom_type,
276 int verbose,
int *rows,
299 char *column,
char *shp_path,
300 char *charset,
char *geom_type,
301 int verbose,
int *rows,
302 int colcase_name,
char *err_msg);
325 char *table,
char *column,
326 char *shp_path,
char *charset,
327 char *geom_type,
int verbose,
328 int *rows,
int colcase_name,
354 SPATIALITE_DECLARE
int load_shapefile (sqlite3 * sqlite,
char *shp_path,
355 char *table,
char *charset,
int srid,
356 char *column,
int coerce2d,
357 int compressed,
int verbose,
358 int spatial_index,
int *rows,
398 char *table,
char *charset,
399 int srid,
char *geo_column,
400 char *gtype,
char *pk_column,
401 int coerce2d,
int compressed,
402 int verbose,
int spatial_index,
403 int *rows,
char *err_msg);
443 char *table,
char *charset,
444 int srid,
char *geo_column,
445 char *gtype,
char *pk_column,
446 int coerce2d,
int compressed,
447 int verbose,
int spatial_index,
448 int text_date,
int *rows,
491 const char *shp_path,
493 const char *charset,
int srid,
494 const char *geo_column,
496 const char *pk_column,
497 int coerce2d,
int compressed,
498 int verbose,
int spatial_index,
499 int text_date,
int *rows,
500 int colname_case,
char *err_msg);
543 const char *zip_path,
544 const char *shp_path,
546 const char *charset,
int srid,
547 const char *geo_column,
549 const char *pk_column,
550 int coerce2d,
int compressed,
551 int verbose,
int spatial_index,
552 int text_date,
int *rows,
553 int colname_case,
char *err_msg);
573 SPATIALITE_DECLARE
int load_dbf (sqlite3 * sqlite,
char *dbf_path,
574 char *table,
char *charset,
int verbose,
575 int *rows,
char *err_msg);
594 SPATIALITE_DECLARE
int load_dbf_ex (sqlite3 * sqlite,
char *dbf_path,
595 char *table,
char *pk_column,
596 char *charset,
int verbose,
int *rows,
617 SPATIALITE_DECLARE
int load_dbf_ex2 (sqlite3 * sqlite,
char *dbf_path,
618 char *table,
char *pk_column,
619 char *charset,
int verbose,
620 int text_date,
int *rows,
643 SPATIALITE_DECLARE
int load_dbf_ex3 (sqlite3 * sqlite,
const char *dbf_path,
645 const char *pk_column,
646 const char *charset,
int verbose,
647 int text_date,
int *rows,
648 int colname_case,
char *err_msg);
675 SPATIALITE_DECLARE
int load_zip_dbf (sqlite3 * sqlite,
const char *zip_file,
676 const char *dbf_path,
678 const char *pk_column,
679 const char *charset,
int verbose,
680 int text_date,
int *rows,
681 int colname_case,
char *err_msg);
696 SPATIALITE_DECLARE
int dump_dbf (sqlite3 * sqlite,
char *table,
697 char *dbf_path,
char *charset,
714 SPATIALITE_DECLARE
int dump_dbf_ex (sqlite3 * sqlite,
char *table,
715 char *dbf_path,
char *charset,
716 int *rows,
char *err_msg);
734 SPATIALITE_DECLARE
int dump_dbf_ex2 (sqlite3 * sqlite,
char *table,
735 char *dbf_path,
char *charset,
736 int *rows,
int colname_case,
752 SPATIALITE_DECLARE
int load_XL (sqlite3 * sqlite,
const char *path,
754 unsigned int worksheetIndex,
755 int first_titles,
unsigned int *rows,
765 SPATIALITE_DECLARE
double math_round (
double value);
774 SPATIALITE_DECLARE sqlite3_int64
math_llabs (sqlite3_int64 value);
909 SPATIALITE_DECLARE
char *
srid_get_datum (sqlite3 * sqlite,
int srid);
922 SPATIALITE_DECLARE
char *
srid_get_unit (sqlite3 * sqlite,
int srid);
937 SPATIALITE_DECLARE
char *
srid_get_axis (sqlite3 * sqlite,
int srid,
938 char axis,
char mode);
951 SPATIALITE_DECLARE
int 969 SPATIALITE_DECLARE
int dump_kml (sqlite3 * sqlite,
char *table,
970 char *geom_col,
char *kml_path,
971 char *name_col,
char *desc_col,
990 SPATIALITE_DECLARE
int dump_kml_ex (sqlite3 * sqlite,
char *table,
991 char *geom_col,
char *kml_path,
992 char *name_col,
char *desc_col,
993 int precision,
int *rows);
1084 char *outTable,
char *pKey,
1111 char *pKey,
char *multiId,
1141 char *multiId,
int *rows,
1173 const void *options,
1199 SPATIALITE_DECLARE
int dump_geojson (sqlite3 * sqlite,
char *table,
1200 char *geom_col,
char *outfile_path,
1201 int precision,
int option);
1226 SPATIALITE_DECLARE
int dump_geojson_ex (sqlite3 * sqlite,
char *table,
1227 char *geom_col,
char *outfile_path,
1228 int precision,
int option,
1260 SPATIALITE_DECLARE
int dump_geojson2 (sqlite3 * sqlite,
char *table,
1261 char *geom_col,
char *outfile_path,
1262 int precision,
int lon_lat,
1263 int m_coords,
int indented,
1264 int colname_case,
int *rows,
1265 char **error_message);
1290 SPATIALITE_DECLARE
int load_geojson (sqlite3 * sqlite,
char *path,
1291 char *table,
char *column,
1292 int spatial_index,
int srid,
1293 int colname_case,
int *rows,
1294 char **error_message);
1321 const char *column);
1340 const char *geometry);
1368 const char *geometry,
1432 const char *column);
1483 SPATIALITE_DECLARE
int gaiaDropTable (sqlite3 * sqlite,
const char *table);
1559 char **error_message);
1585 char **error_message);
1613 const char *old_name,
1614 const char *new_name,
1615 char **error_message);
1645 const char *old_name,
1646 const char *new_name,
1647 char **error_message);
1677 const char *report_path,
1678 int *n_rows,
int *n_invalids,
1711 const char *report_path,
1738 const char *output_dir,
1766 const char *output_dir,
1806 const char *tmp_table,
1807 const char *report_path,
1852 const char *tmp_table,
1853 const char *report_path,
1967 SPATIALITE_DECLARE
int gaiaCutter (sqlite3 * db_handle,
const void *cache,
1968 const char *in_db_prefix,
1969 const char *input_table,
1970 const char *input_geom,
1971 const char *blade_db_prefix,
1972 const char *blade_table,
1973 const char *blade_geom,
1974 const char *output_table,
1975 int transaction,
int ram_tmp_store,
1999 const char *geom_column,
2000 const char *from_column,
2001 const char *to_column);
2043 const char *routing_data_table,
2045 *virtual_routing_table,
2046 const char *input_table,
2047 const char *from_column,
2048 const char *to_column,
2049 const char *geom_column,
2050 const char *cost_column,
2051 const char *name_column,
2054 const char *oneway_from,
2055 const char *oneway_to,
2101 SPATIALITE_DECLARE
const char *gaia_create_routing_get_last_error (
const 2105 SPATIALITE_DECLARE
int gaiaGPKG2Spatialite (sqlite3 * handle_in,
2106 const char *gpkg_in_path,
2107 sqlite3 * handle_out,
2108 const char *splite_out_path);
2110 SPATIALITE_DECLARE
int gaiaSpatialite2GPKG (sqlite3 * handle_in,
2111 const char *splite_in_path,
2112 sqlite3 * handle_out,
2113 const char *gpkg_out_path);
2115 SPATIALITE_DECLARE
const void *gaiaGetCurrentProjContext (
const void 2118 SPATIALITE_DECLARE
int gaiaSetCurrentCachedProj (
const void 2120 const char *proj_string_1,
2121 const char *proj_string_2,
2124 SPATIALITE_DECLARE
void *gaiaGetCurrentCachedProj (
const void *cache);
2126 SPATIALITE_DECLARE
int gaiaCurrentCachedProjMatches (
const void *cache,
2133 SPATIALITE_DECLARE
char *gaiaGetDbObjectScope (sqlite3 * handle,
2134 const char *db_prefix,
2135 const char *obj_name);
Geometry handling functions and constants.
SPATIALITE_DECLARE void elementary_geometries_ex3(sqlite3 *sqlite, char *inTable, char *geometry, char *outTable, char *pKey, char *multiId, const void *options, int *rows, int transaction)
Creates a derived table surely containing elementary Geometries.
SPATIALITE_DECLARE int gaiaRenameColumn(sqlite3 *sqlite, const char *prefix, const char *table, const char *old_name, const char *new_name, char **error_message)
Renames a Table's Column.
SPATIALITE_DECLARE int load_zip_shapefile(sqlite3 *sqlite, const char *zip_path, const char *shp_path, const char *table, const char *charset, int srid, const char *geo_column, const char *gtype, const char *pk_column, int coerce2d, int compressed, int verbose, int spatial_index, int text_date, int *rows, int colname_case, char *err_msg)
Loads an external Shapefile (from Zipfile) into a newly created table.
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 elementary_geometries_ex2(sqlite3 *sqlite, char *inTable, char *geometry, char *outTable, char *pKey, char *multiId, int *rows, int transaction)
Creates a derived table surely containing elementary Geometries.
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 void disable_tiny_point(const void *ptr)
Disables the BLOB-TinyPoint encoding.
SPATIALITE_DECLARE int srid_is_geographic(sqlite3 *sqlite, int srid, int *geographic)
checks a SRID definition from the "spatial_ref_sys" table determining if it is of the geographic type
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 gaiaDropTableEx2(sqlite3 *sqlite, const char *prefix, const char *table, int transaction)
Drops a layer-table, removing any related dependency.
SPATIALITE_DECLARE int gaiaDropTable5(sqlite3 *sqlite, const char *prefix, const char *table, char **error_message)
Drops a layer-table, removing any related dependency.
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 void remove_duplicated_rows_ex2(sqlite3 *sqlite, char *table, int *removed, int transaction)
Remove duplicated rows from a table.
SPATIALITE_DECLARE int srid_has_flipped_axes(sqlite3 *sqlite, int srid, int *flipped)
checks a SRID definition from the "spatial_ref_sys" table determining if the axes order is X-Y or Y-X
SPATIALITE_DECLARE char * srid_get_projection(sqlite3 *sqlite, int srid)
checks a SRID definition from the "spatial_ref_sys" table then returning the corresponding Projection...
SPATIALITE_DECLARE char * srid_get_axis(sqlite3 *sqlite, int srid, char axis, char mode)
checks a SRID definition from the "spatial_ref_sys" table then returning an Axis definition
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 int gaia_create_routing(sqlite3 *db_handle, const void *cache, const char *routing_data_table, const char *virtual_routing_table, const char *input_table, const char *from_column, const char *to_column, const char *geom_column, const char *cost_column, const char *name_column, int a_star_enabled, int bidirectional, const char *oneway_from, const char *oneway_to, int overwrite)
Will attempt to create a VirtualRouting from an input table.
SPATIALITE_DECLARE void * spatialite_alloc_connection(void)
Initializes the internal memory block supporting each connection.
SPATIALITE_DECLARE gaiaGeomCollPtr gaiaGetGpkgRTreeFullExtent(sqlite3 *db_handle, const char *db_prefix, const char *name, int srid)
Will attempt to retrieve the Full Extent from an R*Tree (GeoPackage)
SPATIALITE_DECLARE void spatialite_cleanup(void)
Cleanup a SpatiaLite connection.
SPATIALITE_DECLARE int load_zip_dbf(sqlite3 *sqlite, const char *zip_file, const char *dbf_path, const char *table, const char *pk_column, const char *charset, int verbose, int text_date, int *rows, int colname_case, char *err_msg)
Loads an external DBF file (from Zipfile) into a newly created table.
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 load_dbf_ex2(sqlite3 *sqlite, char *dbf_path, char *table, char *pk_column, char *charset, int verbose, int text_date, int *rows, char *err_msg)
Loads an external DBF file into a newly created table.
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 int dump_dbf_ex(sqlite3 *sqlite, char *table, char *dbf_path, char *charset, int *rows, char *err_msg)
Dumps a full table into an external DBF file.
SPATIALITE_DECLARE int dump_shapefile_ex(sqlite3 *sqlite, char *table, char *column, char *shp_path, char *charset, char *geom_type, int verbose, int *rows, int colcase_name, char *err_msg)
Dumps a full geometry-table into an external Shapefile.
SPATIALITE_DECLARE void spatialite_set_verbode_mode(const void *ptr)
Enables reporting GEOS/RTTOPO error and warnings on stderr.
SPATIALITE_DECLARE const char * spatialite_target_cpu(void)
Return the target CPU name.
SPATIALITE_DECLARE void spatialite_set_silent_mode(const void *ptr)
Disables reporting GEOS/RTTOPO error and warnings on stderr.
SPATIALITE_DECLARE void enable_tiny_point(const void *ptr)
Enables the BLOB-TinyPoint encoding.
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 int dump_geojson2(sqlite3 *sqlite, char *table, char *geom_col, char *outfile_path, int precision, int lon_lat, int m_coords, int indented, int colname_case, int *rows, char **error_message)
Dumps a full geometry-table into an external GeoJSON file (RFC 7946)
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 gaiaGeomCollPtr gaiaGetRTreeFullExtent(sqlite3 *db_handle, const char *db_prefix, const char *name, int srid)
Will attempt to retrieve the Full Extent from an R*Tree (SpatiaLite)
SPATIALITE_DECLARE int dump_dbf_ex2(sqlite3 *sqlite, char *table, char *dbf_path, char *charset, int *rows, int colname_case, char *err_msg)
Dumps a full table into an external DBF file.
SPATIALITE_DECLARE int load_dbf_ex3(sqlite3 *sqlite, const char *dbf_path, const char *table, const char *pk_column, const char *charset, int verbose, int text_date, int *rows, int colname_case, char *err_msg)
Loads an external DBF file into a newly created table.
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 int gaiaDropTableEx3(sqlite3 *sqlite, const char *prefix, const char *table, int transaction, char **error_message)
Drops a layer-table, removing any related dependency.
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 char * srid_get_prime_meridian(sqlite3 *sqlite, int srid)
checks a SRID definition from the "spatial_ref_sys" table then returning the corresponding Prime Meri...
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 int load_shapefile_ex2(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 text_date, int *rows, char *err_msg)
Loads an external Shapefile into a newly created table.
SPATIALITE_DECLARE int is_tiny_point_enabled(const void *ptr)
Checks if the BLOB-TinyPoint encoding is enabled or not.
SPATIALITE_DECLARE int dump_geojson_ex(sqlite3 *sqlite, char *table, char *geom_col, char *outfile_path, int precision, int option, int *rows)
Dumps a full geometry-table into an external GeoJSON file (old specification)
SPATIALITE_DECLARE void spatialite_finalize_topologies(const void *ptr)
Partially Cleaning-up a SpatiaLite connection.
SPATIALITE_DECLARE int gaiaCutter(sqlite3 *db_handle, const void *cache, const char *in_db_prefix, const char *input_table, const char *input_geom, const char *blade_db_prefix, const char *blade_table, const char *blade_geom, const char *output_table, int transaction, int ram_tmp_store, char **message)
Will precisely cut the input dataset against polygonal blade(s) and will consequently create and popu...
SPATIALITE_DECLARE int dump_kml_ex(sqlite3 *sqlite, char *table, char *geom_col, char *kml_path, char *name_col, char *desc_col, int precision, int *rows)
Dumps a full geometry-table into an external KML file.
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 load_shapefile_ex3(sqlite3 *sqlite, const char *shp_path, const char *table, const char *charset, int srid, const char *geo_column, const char *gtype, const char *pk_column, int coerce2d, int compressed, int verbose, int spatial_index, int text_date, int *rows, int colname_case, char *err_msg)
Loads an external Shapefile into a newly created table.
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:841
SPATIALITE_DECLARE int gaiaDropTableEx(sqlite3 *sqlite, const char *prefix, const char *table)
Drops a layer-table, removing any related dependency.
SPATIALITE_DECLARE char * srid_get_datum(sqlite3 *sqlite, int srid)
checks a SRID definition from the "spatial_ref_sys" table then returning the corresponding Datum name
SPATIALITE_DECLARE void spatialite_init(int verbose)
Initializes a SpatiaLite connection.
SPATIALITE_DECLARE int gaiaRenameTable(sqlite3 *sqlite, const char *prefix, const char *old_name, const char *new_name, char **error_message)
Renames a Table.
SPATIALITE_DECLARE int gaiaStatisticsInvalidate(sqlite3 *handle, const char *table, const char *geometry)
Immediately and unconditionally invalidates the already existing Statistics.
SPATIALITE_DECLARE int dump_shapefile_ex2(sqlite3 *sqlite, void *proj_ctx, char *table, char *column, char *shp_path, char *charset, char *geom_type, int verbose, int *rows, int colcase_name, char *err_msg)
Dumps a full geometry-table into an external Shapefile.
SPATIALITE_DECLARE int gaiaUpdateMetaCatalogStatistics(sqlite3 *handle, const char *table, const char *column)
Updates the "splite_metacatalog_statistics" table.
SPATIALITE_DECLARE char * srid_get_spheroid(sqlite3 *sqlite, int srid)
checks a SRID definition from the "spatial_ref_sys" table then returning the corresponding Spheroid n...
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 int load_geojson(sqlite3 *sqlite, char *path, char *table, char *column, int spatial_index, int srid, int colname_case, int *rows, char **error_message)
Loads an external GeoJSON file into a newly created table.
SPATIALITE_DECLARE int gaia_create_routing_nodes(sqlite3 *db_handle, const void *cache, const char *prefix, const char *table, const char *geom_column, const char *from_column, const char *to_column)
Will attempt to create the Routing Nodes columns for a spatial table.
SPATIALITE_DECLARE double math_round(double value)
A portable replacement for C99 round()
SPATIALITE_DECLARE int srid_is_projected(sqlite3 *sqlite, int srid, int *projected)
checks a SRID definition from the "spatial_ref_sys" table determining if it is of the projected type
Container for OGC GEOMETRYCOLLECTION Geometry.
Definition: gg_structs.h:226
SPATIALITE_DECLARE gaiaVectorLayersListPtr gaiaGetVectorLayersList(sqlite3 *handle, const char *table, const char *geometry, int mode)
Queries the Metadata tables supporting Vector Layers.
SPATIALITE_DECLARE void elementary_geometries_ex(sqlite3 *sqlite, char *inTable, char *geometry, char *outTable, char *pKey, char *multiId, int *rows)
Creates a derived table surely containing elementary Geometries.
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 char * srid_get_unit(sqlite3 *sqlite, int srid)
checks a SRID definition from the "spatial_ref_sys" table then returning the corresponding Unit name
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 (old specification)
SPATIALITE_DECLARE void spatialite_init_geos(void)
Initializes the GEOS library.