@crossbind/port-spatialite-wasi 2.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +35 -0
  2. package/README.md +11 -0
  3. package/config.guess +1823 -0
  4. package/config.sub +1885 -0
  5. package/crossbind.build.js +1 -0
  6. package/crossbind.config.js +11 -0
  7. package/dist/prebuilt/CMakeLists.txt +57 -0
  8. package/dist/prebuilt/wasi-wasm32-st-release/crossbind-emccflags.fingerprint +1 -0
  9. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/control_points.h +259 -0
  10. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/debug.h +77 -0
  11. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaia_network.h +627 -0
  12. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaia_topology.h +1221 -0
  13. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaaux.h +540 -0
  14. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h +56 -0
  15. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h.in +55 -0
  16. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaconfig.h +68 -0
  17. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaconfig.h.in +67 -0
  18. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiaexif.h +669 -0
  19. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiageo.h +77 -0
  20. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gaiamatrix.h +277 -0
  21. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/geojson.h +586 -0
  22. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/geopackage.h +198 -0
  23. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_advanced.h +5184 -0
  24. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_const.h +606 -0
  25. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_core.h +2294 -0
  26. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_dxf.h +993 -0
  27. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_dynamic.h +416 -0
  28. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_formats.h +2056 -0
  29. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_mbr.h +606 -0
  30. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_sequence.h +173 -0
  31. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_structs.h +880 -0
  32. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_wfs.h +581 -0
  33. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/gg_xml.h +818 -0
  34. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/spatialite_ext.h +64 -0
  35. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/sqlite.h +70 -0
  36. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite/stored_procedures.h +641 -0
  37. package/dist/prebuilt/wasi-wasm32-st-release/include/spatialite.h +2098 -0
  38. package/dist/prebuilt/wasi-wasm32-st-release/lib/libspatialite.a +0 -0
  39. package/dist/prebuilt/wasi-wasm32-st-release/lib/libspatialite.la +41 -0
  40. package/dist/prebuilt/wasi-wasm32-st-release/lib/mod_spatialite.a +0 -0
  41. package/dist/prebuilt/wasi-wasm32-st-release/lib/mod_spatialite.la +41 -0
  42. package/dist/prebuilt/wasi-wasm32-st-release/lib/pkgconfig/spatialite.pc +12 -0
  43. package/e2e/main.c +38 -0
  44. package/e2e/run.mjs +89 -0
  45. package/package.json +40 -0
@@ -0,0 +1,540 @@
1
+ /*
2
+ gaiaaux.h -- Gaia common utility functions
3
+
4
+ version 5.1.0, 2023 August 4
5
+
6
+ Author: Sandro Furieri a.furieri@lqt.it
7
+
8
+ ------------------------------------------------------------------------------
9
+
10
+ Version: MPL 1.1/GPL 2.0/LGPL 2.1
11
+
12
+ The contents of this file are subject to the Mozilla Public License Version
13
+ 1.1 (the "License"); you may not use this file except in compliance with
14
+ the License. You may obtain a copy of the License at
15
+ http://www.mozilla.org/MPL/
16
+
17
+ Software distributed under the License is distributed on an "AS IS" basis,
18
+ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19
+ for the specific language governing rights and limitations under the
20
+ License.
21
+
22
+ The Original Code is the SpatiaLite library
23
+
24
+ The Initial Developer of the Original Code is Alessandro Furieri
25
+
26
+ Portions created by the Initial Developer are Copyright (C) 2008-2023
27
+ the Initial Developer. All Rights Reserved.
28
+
29
+ Contributor(s):
30
+
31
+ Alternatively, the contents of this file may be used under the terms of
32
+ either the GNU General Public License Version 2 or later (the "GPL"), or
33
+ the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
34
+ in which case the provisions of the GPL or the LGPL are applicable instead
35
+ of those above. If you wish to allow use of your version of this file only
36
+ under the terms of either the GPL or the LGPL, and not to allow others to
37
+ use your version of this file under the terms of the MPL, indicate your
38
+ decision by deleting the provisions above and replace them with the notice
39
+ and other provisions required by the GPL or the LGPL. If you do not delete
40
+ the provisions above, a recipient may use your version of this file under
41
+ the terms of any one of the MPL, the GPL or the LGPL.
42
+
43
+ */
44
+
45
+ /**
46
+ \file gaiaaux.h
47
+
48
+ Auxiliary/helper functions
49
+ */
50
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
51
+ #ifdef DLL_EXPORT
52
+ #define GAIAAUX_DECLARE __declspec(dllexport)
53
+ #else
54
+ #define GAIAAUX_DECLARE extern
55
+ #endif
56
+ #endif
57
+
58
+ #ifndef _GAIAAUX_H
59
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
60
+ #define _GAIAAUX_H
61
+ #endif
62
+
63
+ #ifdef __cplusplus
64
+ extern "C"
65
+ {
66
+ #endif
67
+
68
+ /* constants */
69
+ /** SQL single quoted string (text constant) */
70
+ #define GAIA_SQL_SINGLE_QUOTE 1001
71
+ /** SQL double quoted string (SQL name) */
72
+ #define GAIA_SQL_DOUBLE_QUOTE 1002
73
+
74
+ /* function prototypes */
75
+
76
+ /**
77
+ Retrieves the Locale Charset
78
+
79
+ \return the GNU ICONV name identifying the locale charset
80
+ */
81
+ GAIAAUX_DECLARE const char *gaiaGetLocaleCharset (void);
82
+
83
+ /**
84
+ Converts a text string from one charset to another
85
+
86
+ \param buf the text string to be converted
87
+ \param fromCs the GNU ICONV name identifying the input charset
88
+ \param toCs the GNU ICONV name identifying the output charset
89
+
90
+ \return 0 on failure, any other value on success.
91
+
92
+ \note this function uses an internal buffer limited to 64KB;
93
+ so it's not safe passing extremely huge-sized text string.
94
+ */
95
+ GAIAAUX_DECLARE int gaiaConvertCharset (char **buf, const char *fromCs,
96
+ const char *toCs);
97
+
98
+ /**
99
+ Creates a persistent UTF8 converter object
100
+
101
+ \param fromCS the GNU ICONV name identifying the input charset
102
+
103
+ \return the handle of the converter object, or NULL on failure
104
+
105
+ \sa gaiaFreeUTF8Converter
106
+
107
+ \note you must properly destroy the converter object
108
+ when it isn't any longer used.
109
+ */
110
+ GAIAAUX_DECLARE void *gaiaCreateUTF8Converter (const char *fromCS);
111
+
112
+ /**
113
+ Destroys an UTF8 converter object
114
+
115
+ \param cvtCS the handle identifying the UTF8 convert object
116
+ (returned by a previous call to gaiaCreateUTF8Converter).
117
+
118
+ \sa gaiaCreateUTF8Converter
119
+ */
120
+ GAIAAUX_DECLARE void gaiaFreeUTF8Converter (void *cvtCS);
121
+
122
+ /**
123
+ Converts a text string to UTF8
124
+
125
+ \param cvtCS the handle identifying the UTF8 convert object
126
+ (returned by a previous call to gaiaCreateUTF8Converter).
127
+ \param buf the input text string
128
+ \param len length (in bytes) of input string
129
+ \param err on completion will contain 0 on success, any other value on failure
130
+
131
+ \return the null-terminated UTF8 encoded string: NULL on failure
132
+
133
+ \sa gaiaCreateUTF8Converter, gaiaFreeUTF8Converter
134
+
135
+ \note this function can safely handle strings of arbitrary length,
136
+ and will return the converted string into a dynamically allocated buffer
137
+ created by malloc().
138
+ You are required to explicitly free() any string returned by this function.
139
+ */
140
+ GAIAAUX_DECLARE char *gaiaConvertToUTF8 (void *cvtCS, const char *buf,
141
+ int len, int *err);
142
+
143
+ /**
144
+ Checks if a name is a reserved SQLite name
145
+
146
+ \param name the name to be checked
147
+
148
+ \return 0 if no: any other value if yes
149
+
150
+ \sa gaiaIsReservedSqlName, gaiaIllegalSqlName
151
+ */
152
+ GAIAAUX_DECLARE int gaiaIsReservedSqliteName (const char *name);
153
+
154
+ /**
155
+ Checks if a name is a reserved SQL name
156
+
157
+ \param name the name to be checked
158
+
159
+ \return 0 if no: any other value if yes
160
+
161
+ \sa gaiaIsReservedSqliteName, gaiaIllegalSqlName
162
+ */
163
+ GAIAAUX_DECLARE int gaiaIsReservedSqlName (const char *name);
164
+
165
+ /**
166
+ Checks if a name is an illegal SQL name
167
+
168
+ \param name the name to be checked
169
+
170
+ \return 0 if no: any other value if yes
171
+
172
+ \sa gaiaIsReservedSqliteName, gaiaIsReservedSqlName
173
+ */
174
+ GAIAAUX_DECLARE int gaiaIllegalSqlName (const char *name);
175
+
176
+ /**
177
+ Properly formats an SQL text constant
178
+
179
+ \param value the text string to be formatted
180
+
181
+ \return the formatted string: NULL on failure
182
+
183
+ \sa gaiaQuotedSql, gaiaDequotedSql
184
+
185
+ \note this function simply is a convenience method corresponding to:
186
+ gaiaQuotedSQL(value, GAIA_SQL_SINGLE_QUOTE);
187
+
188
+ \remark passing a string like "Sant'Andrea" will return 'Sant''Andrea'
189
+ */
190
+ GAIAAUX_DECLARE char *gaiaSingleQuotedSql (const char *value);
191
+
192
+ /**
193
+ Properly formats an SQL name
194
+
195
+ \param value the SQL name to be formatted
196
+
197
+ \return the formatted string: NULL on failure
198
+
199
+ \sa gaiaQuotedSql, gaiaDequotedSql
200
+
201
+ \note this function simply is a convenience method corresponding to:
202
+ gaiaQuotedSQL(value, GAIA_SQL_DOUBLE_QUOTE);
203
+
204
+ \remark passing a string like "Sant\"Andrea" will return "Sant""Andrea"
205
+ */
206
+ GAIAAUX_DECLARE char *gaiaDoubleQuotedSql (const char *value);
207
+
208
+ /**
209
+ Properly formats an SQL generic string
210
+
211
+ \param value the string to be formatted
212
+ \param quote GAIA_SQL_SINGLE_QUOTE or GAIA_SQL_DOUBLE_QUOTE
213
+
214
+ \return the formatted string: NULL on failure
215
+
216
+ \sa gaiaSingleQuotedSql, gaiaDoubleQuotedSql, gaiaDequotedSql
217
+
218
+ \note this function can safely handle strings of arbitrary length,
219
+ and will return the formatted string into a dynamically allocated buffer
220
+ created by malloc().
221
+ You are required to explicitly free() any string returned by this function.
222
+ */
223
+ GAIAAUX_DECLARE char *gaiaQuotedSql (const char *value, int quote);
224
+
225
+ /**
226
+ Properly formats an SQL generic string (dequoting)
227
+
228
+ \param value the string to be dequoted
229
+
230
+ \return the formatted string: NULL on failure
231
+
232
+ \sa gaiaSingleQuotedSql, gaiaDoubleQuotedSql, gaiaQuotedSql
233
+
234
+ \note this function can safely handle strings of arbitrary length,
235
+ and will return the formatted string into a dynamically allocated buffer
236
+ created by malloc().
237
+ You are required to explicitly free() any string returned by this function.
238
+ */
239
+ GAIAAUX_DECLARE char *gaiaDequotedSql (const char *value);
240
+
241
+ /*
242
+ / DEPRECATED FUNCTION: gaiaCleanSqlString()
243
+ / this function must not be used for any new project
244
+ / it's still maintained for backward compatibility,
245
+ / but will be probably removed in future versions
246
+ */
247
+
248
+ /**
249
+ deprecated function
250
+
251
+ \param value the string to be formatted
252
+
253
+ \sa gaiaQuotedSql
254
+
255
+ \note this function is still supported simply for backward compatibility.
256
+ it's intrinsically unsafe (passing huge strings potentially leads to
257
+ buffer overflows) and you are strongly encouraged to use gaiaQuotedSql()
258
+ as a safest replacement.
259
+ */
260
+ GAIAAUX_DECLARE void gaiaCleanSqlString (char *value);
261
+
262
+ /**
263
+ SQL log: statement start
264
+
265
+ \param sqlite handle of the current DB connection
266
+ \param user_agent name of the invoking application, e.g. "spatialite_gui" or "spatialite CLI"
267
+ \param utf8Sql the SQL statement bein executed
268
+ \param sqllog_pk after completion this variable will contain the value
269
+ of the Primary Key identifying the corresponding Log event
270
+
271
+ \sa gaiaUpdateSqlLog
272
+
273
+ \note this function inserts an \b event into the SQL Log, and
274
+ is expected to be invoked immediately \b before executing the SQL
275
+ statement itself.
276
+ */
277
+ GAIAAUX_DECLARE void gaiaInsertIntoSqlLog (sqlite3 * sqlite,
278
+ const char *user_agent,
279
+ const char *utf8Sql,
280
+ sqlite3_int64 * sqllog_pk);
281
+
282
+ /**
283
+ SQL log: statement start
284
+
285
+ \param sqlite handle of the current DB connection
286
+ \param sqllog_pk the Primary Key identifying the corresponding Log event.
287
+ \n expected to be exactely the same returned by the most recent call to gaiaInsertIntoSqlLog()
288
+ \param success expected to be TRUE if the SQL statement was successfully executed.
289
+ \param errMsg expected to be the error message returned by SQLite on failure, NULL on success.
290
+
291
+ \sa gaiaInsertIntoSqlLog
292
+
293
+ \note this function completes an \b event inserted into the SQL Log, and
294
+ is expected to be invoked immediately \b after executing the SQL
295
+ statement itself.
296
+ */
297
+ GAIAAUX_DECLARE void gaiaUpdateSqlLog (sqlite3 * sqlite,
298
+ sqlite3_int64 sqllog_pk,
299
+ int success, const char *errMsg);
300
+
301
+ /**
302
+ Creates a persistent MD5 checksum object
303
+
304
+ \return the handle of an MD5 checksum object, or NULL on failure
305
+
306
+ \sa gaiaFreeMD5Checksum, gaiaUpdateMD5Checksum, gaiaFinalizeMD5Checksum
307
+
308
+ \note you must properly destroy the MD5 object
309
+ when it isn't any longer used.
310
+ */
311
+ GAIAAUX_DECLARE void *gaiaCreateMD5Checksum (void);
312
+
313
+ /**
314
+ Destroys an MD5 checksum object
315
+
316
+ \param md5 the handle of the MD5 checksum object (returned by
317
+ a previous call to gaiaCreateMD5Checksum).
318
+
319
+ \sa gaiaCreateMD5Checksum
320
+ */
321
+ GAIAAUX_DECLARE void gaiaFreeMD5Checksum (void *md5);
322
+
323
+ /**
324
+ Updates an MD5 checksum object
325
+
326
+ \param md5 the handle of the MD5 checksum object (returned by
327
+ a previous call to gaiaCreateMD5Checksum).
328
+ \param blob an arbitrary sequence of binary data
329
+ \param blob_size the length (in bytes) of the binary data
330
+
331
+ \sa gaiaCreateMD5Checksum, gaiaFreeMD5Checksum, gaiaFinalizeMD5Checksum
332
+
333
+ \note you can repeatedly invoke gaiaUpdateMD5Checksum more than a single
334
+ time and always using the same MD5 object.
335
+ In this case the final MD5 checksum returned by gaiaGetMD5Checsum will be
336
+ the total checksum for any data processed by the MD5 object since its
337
+ initialization.
338
+ */
339
+ GAIAAUX_DECLARE void gaiaUpdateMD5Checksum (void *md5,
340
+ const unsigned char *blob,
341
+ int blob_len);
342
+
343
+ /**
344
+ Return an MD5 checksum value
345
+
346
+ \param md5 the handle of the MD5 checksum object (returned by
347
+ a previous call to gaiaCreateMD5Checksum).
348
+
349
+ \return an hexadecimal text string representing the MD checksum:
350
+ NULL on failure
351
+
352
+ \sa gaiaCreateMD5Checksum, gaiaUpdateMD5Checksum, gaiaFreeMD5Checksum
353
+
354
+ \note this function will return the MD5 checksum into a dynamically allocated
355
+ buffer created by malloc().
356
+ You are required to explicitly free() any string returned by this function.
357
+
358
+ \note gaiaFinalizeMD5Checksum will implicitly reset the MD5 object to its
359
+ initial state.
360
+ */
361
+ GAIAAUX_DECLARE char *gaiaFinalizeMD5Checksum (void *md5);
362
+
363
+ /**
364
+ Return longitude and latitude angles from a DMS string
365
+
366
+ \param dms a text string representing a valid DMS (Degrees/Minutes/Seconds)
367
+ expression.
368
+ \param longitude on completion this variable will contain the longitude angle
369
+ expressed in Decimal Degrees.
370
+ \param latitude on completion this variable will contain the latitude angle
371
+ expressed in Decimal Degrees.
372
+
373
+ \return ZERO (FALSE) on failure, any other different value (TRUE) on success.
374
+
375
+ \sa gaiaConvertToDMS
376
+
377
+ \note this function will return a dynamically allocated buffer created
378
+ by malloc().
379
+ You are required to explicitly free() any string returned by this function.
380
+ */
381
+ GAIAAUX_DECLARE int gaiaParseDMS (const char *dms, double *longitude,
382
+ double *latitude);
383
+
384
+ /**
385
+ Return a DMS string - extended
386
+
387
+ \param longitude the angle of longitude expressed in Decimal Degrees.
388
+ \param latitude the angle of latitude expressed in Decimal Degrees.
389
+ \param decimal_digits how many decimal digits must be preserved for
390
+ representing Seconds.
391
+
392
+ \return the corresponding DMS (Degrees/Minutes/Seconds) text string,
393
+ or NULL on failure
394
+
395
+ \sa gaiaLongitudeFromDMS, gaiaLatitudeFromDMS
396
+
397
+ \note this function will return a dynamically allocated buffer created
398
+ by malloc().
399
+ You are required to explicitly free() any string returned by this function.
400
+ */
401
+ GAIAAUX_DECLARE char *gaiaConvertToDMSex (double longitude, double latitude,
402
+ int decimal_digits);
403
+
404
+ /**
405
+ Return a DMS string
406
+
407
+ \param longitude the angle of longitude expressed in Decimal Degrees.
408
+ \param latitude the angle of latitude expressed in Decimal Degrees.
409
+
410
+ \return the corresponding DMS (Degrees/Minutes/Seconds) text string,
411
+ or NULL on failure
412
+
413
+ \sa gaiaConvertToDMSex
414
+
415
+ \note this function will return a dynamically allocated buffer created
416
+ by malloc().
417
+ You are required to explicitly free() any string returned by this function.
418
+
419
+ \note this functions simply defaults to gaiaConvertToDMSex(lon, lat, 0)
420
+ */
421
+ GAIAAUX_DECLARE char *gaiaConvertToDMS (double longitude, double latitude);
422
+
423
+ /**
424
+ Return a percent-encoded URL
425
+
426
+ \param url the URL to be percent-encoded
427
+ \param out_charset the charset encoding adopted by the encoded URL
428
+
429
+ \return the corresponding percent-encoded URL text string,
430
+ or NULL on failure
431
+
432
+ \sa gaiaDecodeURL
433
+
434
+ \note this function will return a dynamically allocated buffer created
435
+ by malloc().
436
+ You are required to explicitly free() any string returned by this function.
437
+ */
438
+ GAIAAUX_DECLARE char *gaiaEncodeURL (const char *url,
439
+ const char *in_charset);
440
+
441
+ /**
442
+ Return a clean URL from its percent-encoded representation
443
+
444
+ \param encoded the percent-encoded URL to be decoded
445
+ \param in_charset the charset encoding adopted by the URL to be decoded
446
+
447
+ \return the corresponding clean URL text string,
448
+ or NULL on failure
449
+
450
+ \sa gaiaEncodeURL
451
+
452
+ \note this function will return a dynamically allocated buffer created
453
+ by malloc().
454
+ You are required to explicitly free() any string returned by this function.
455
+ */
456
+ GAIAAUX_DECLARE char *gaiaDecodeURL (const char *encoded,
457
+ const char *out_charset);
458
+
459
+ /**
460
+ Return the DirName component (if any) from a Path
461
+
462
+ \param path full or relative pathname
463
+
464
+ \return the corresponding DirName text string,
465
+ or NULL on failure
466
+
467
+ \sa gaiaFullFileNameFromPath, gaiaFileNameFromPath, gaiaFileExtFromPath
468
+
469
+ \note this function will return a dynamically allocated buffer created
470
+ by malloc().
471
+ You are required to explicitly free() any string returned by this function.
472
+ */
473
+ GAIAAUX_DECLARE char *gaiaDirNameFromPath (const char *path);
474
+
475
+ /**
476
+ Return the FullFileName from a Path
477
+
478
+ \param path full or relative pathname
479
+
480
+ \return the corresponding FullFileName (including an eventual extension),
481
+ or NULL on failure
482
+
483
+ \sa gaiaDirNameFromPath, gaiaFileNameFromPath, gaiaFileExtFromPath
484
+
485
+ \note this function will return a dynamically allocated buffer created
486
+ by malloc().
487
+ You are required to explicitly free() any string returned by this function.
488
+ */
489
+ GAIAAUX_DECLARE char *gaiaFullFileNameFromPath (const char *path);
490
+
491
+ /**
492
+ Return the FileName from a Path
493
+
494
+ \param path full or relative pathname
495
+
496
+ \return the corresponding FileName (excluding an eventual extension),
497
+ or NULL on failure
498
+
499
+ \sa gaiaDirNameFromPath, gaiaFullFileNameFromPath, gaiaFileExtFromPath
500
+
501
+ \note this function will return a dynamically allocated buffer created
502
+ by malloc().
503
+ You are required to explicitly free() any string returned by this function.
504
+ */
505
+ GAIAAUX_DECLARE char *gaiaFileNameFromPath (const char *path);
506
+
507
+ /**
508
+ Return the FileExtension from a Path
509
+
510
+ \param path full or relative pathname
511
+
512
+ \return the corresponding FileExtension (if any), or NULL on failure
513
+
514
+ \sa gaiaDirNameFromPath, gaiaFullFileNameFromPath, gaiaFileNameFromPath
515
+
516
+ \note this function will return a dynamically allocated buffer created
517
+ by malloc().
518
+ You are required to explicitly free() any string returned by this function.
519
+ */
520
+ GAIAAUX_DECLARE char *gaiaFileExtFromPath (const char *path);
521
+
522
+ /**
523
+ Return a text string containing no repeated whitespaces
524
+
525
+ \param string the input string to be cleaned
526
+
527
+ \return the corresponding string containing no repeated whitespaces,
528
+ or NULL on failure
529
+
530
+ \note this function will return a dynamically allocated buffer created
531
+ by malloc().
532
+ You are required to explicitly free() any string returned by this function.
533
+ */
534
+ GAIAAUX_DECLARE char *gaiaRemoveExtraSpaces (const char *string);
535
+
536
+ #ifdef __cplusplus
537
+ }
538
+ #endif
539
+
540
+ #endif /* _GAIAAUX_H */
@@ -0,0 +1,56 @@
1
+ /* ./src/headers/spatialite/gaiaconfig-msvc.h. Generated from gaiaconfig-msvc.h.in by configure. */
2
+ /* ./src/headers/spatialite/gaiaconfig-msvc.h.in - manually maintained */
3
+
4
+ /* Should be defined in order to enable GCP support. */
5
+ /* #undef ENABLE_GCP */
6
+
7
+ /* Should be defined in order to enable GeoPackage support. */
8
+ #define ENABLE_GEOPACKAGE 1
9
+
10
+ /* Should be defined in order to enable LIBXML2 support. */
11
+ #define ENABLE_LIBXML2 1
12
+
13
+ /* Should be defined in order to enable RTTOPO support. */
14
+ #define ENABLE_RTTOPO 1
15
+
16
+ /* Should be defined in order to enable GEOS_370 support. */
17
+ #define GEOS_370 1
18
+
19
+ /* Should be defined in order to enable GEOS_ADVANCED support. */
20
+ #define GEOS_ADVANCED 1
21
+
22
+ /* Should be defined in order to fully disable GEOS non-thread-safe API. */
23
+ /* #undef GEOS_ONLY_REENTRANT */
24
+
25
+ /* Should be defined in order to enable GEOS_REENTRANT (fully thread-safe). */
26
+ #define GEOS_REENTRANT 1
27
+
28
+ /* Should be defined in order to disable EPSG full support. */
29
+ /* #undef OMIT_EPSG */
30
+
31
+ /* Should be defined in order to disable FREEXL support. */
32
+ #define OMIT_FREEXL 1
33
+
34
+ /* Should be defined in order to disable GEOCALLBACKS support. */
35
+ #define OMIT_GEOCALLBACKS 1
36
+
37
+ /* Should be defined in order to disable GEOS support. */
38
+ /* #undef OMIT_GEOS */
39
+
40
+ /* Should be defined in order to disable ICONV support. */
41
+ /* #undef OMIT_ICONV */
42
+
43
+ /* Should be defined in order to disable KNN support. */
44
+ /* #undef OMIT_KNN */
45
+
46
+ /* Should be defined in order to disable MATHSQL support. */
47
+ /* #undef OMIT_MATHSQL */
48
+
49
+ /* Should be defined in order to disable PROJ.4 support. */
50
+ /* #undef OMIT_PROJ */
51
+
52
+ /* Should be defined in order to enable PROJ.6 support. */
53
+ #define PROJ_NEW 1
54
+
55
+ /* the Version of this package */
56
+ #define SPATIALITE_VERSION "5.1.0"
@@ -0,0 +1,55 @@
1
+ /* ./src/headers/spatialite/gaiaconfig-msvc.h.in - manually maintained */
2
+
3
+ /* Should be defined in order to enable GCP support. */
4
+ #undef ENABLE_GCP
5
+
6
+ /* Should be defined in order to enable GeoPackage support. */
7
+ #define ENABLE_GEOPACKAGE 1
8
+
9
+ /* Should be defined in order to enable LIBXML2 support. */
10
+ #define ENABLE_LIBXML2 1
11
+
12
+ /* Should be defined in order to enable RTTOPO support. */
13
+ #define ENABLE_RTTOPO 1
14
+
15
+ /* Should be defined in order to enable GEOS_370 support. */
16
+ #define GEOS_370 1
17
+
18
+ /* Should be defined in order to enable GEOS_ADVANCED support. */
19
+ #define GEOS_ADVANCED 1
20
+
21
+ /* Should be defined in order to fully disable GEOS non-thread-safe API. */
22
+ /* #undef GEOS_ONLY_REENTRANT */
23
+
24
+ /* Should be defined in order to enable GEOS_REENTRANT (fully thread-safe). */
25
+ #define GEOS_REENTRANT 1
26
+
27
+ /* Should be defined in order to disable EPSG full support. */
28
+ #undef OMIT_EPSG
29
+
30
+ /* Should be defined in order to disable FREEXL support. */
31
+ #undef OMIT_FREEXL
32
+
33
+ /* Should be defined in order to disable GEOCALLBACKS support. */
34
+ #define OMIT_GEOCALLBACKS 1
35
+
36
+ /* Should be defined in order to disable GEOS support. */
37
+ #undef OMIT_GEOS
38
+
39
+ /* Should be defined in order to disable ICONV support. */
40
+ #undef OMIT_ICONV
41
+
42
+ /* Should be defined in order to disable KNN support. */
43
+ #undef OMIT_KNN
44
+
45
+ /* Should be defined in order to disable MATHSQL support. */
46
+ #undef OMIT_MATHSQL
47
+
48
+ /* Should be defined in order to disable PROJ.4 support. */
49
+ #undef OMIT_PROJ
50
+
51
+ /* Should be defined in order to enable PROJ.6 support. */
52
+ #define PROJ_NEW 1
53
+
54
+ /* the Version of this package */
55
+ #undef SPATIALITE_VERSION