@crossbind/port-spatialite-wasm 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 (78) hide show
  1. package/LICENSE +35 -0
  2. package/README.md +12 -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/wasm-wasm32-mt-release/crossbind-emccflags.fingerprint +1 -0
  9. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/control_points.h +259 -0
  10. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/debug.h +77 -0
  11. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaia_network.h +627 -0
  12. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaia_topology.h +1221 -0
  13. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaaux.h +540 -0
  14. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig-msvc.h +56 -0
  15. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig-msvc.h.in +55 -0
  16. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig.h +68 -0
  17. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig.h.in +67 -0
  18. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaexif.h +669 -0
  19. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiageo.h +77 -0
  20. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiamatrix.h +277 -0
  21. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/geojson.h +586 -0
  22. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/geopackage.h +198 -0
  23. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_advanced.h +5184 -0
  24. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_const.h +606 -0
  25. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_core.h +2294 -0
  26. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_dxf.h +993 -0
  27. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_dynamic.h +416 -0
  28. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_formats.h +2056 -0
  29. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_mbr.h +606 -0
  30. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_sequence.h +173 -0
  31. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_structs.h +880 -0
  32. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_wfs.h +581 -0
  33. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_xml.h +818 -0
  34. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/spatialite_ext.h +64 -0
  35. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/sqlite.h +70 -0
  36. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/stored_procedures.h +641 -0
  37. package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite.h +2098 -0
  38. package/dist/prebuilt/wasm-wasm32-mt-release/lib/libspatialite.a +0 -0
  39. package/dist/prebuilt/wasm-wasm32-mt-release/lib/libspatialite.la +41 -0
  40. package/dist/prebuilt/wasm-wasm32-mt-release/lib/mod_spatialite.a +0 -0
  41. package/dist/prebuilt/wasm-wasm32-mt-release/lib/mod_spatialite.la +41 -0
  42. package/dist/prebuilt/wasm-wasm32-mt-release/lib/pkgconfig/spatialite.pc +12 -0
  43. package/dist/prebuilt/wasm-wasm32-st-release/crossbind-emccflags.fingerprint +1 -0
  44. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/control_points.h +259 -0
  45. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/debug.h +77 -0
  46. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaia_network.h +627 -0
  47. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaia_topology.h +1221 -0
  48. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaaux.h +540 -0
  49. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h +56 -0
  50. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h.in +55 -0
  51. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig.h +68 -0
  52. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig.h.in +67 -0
  53. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaexif.h +669 -0
  54. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiageo.h +77 -0
  55. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiamatrix.h +277 -0
  56. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/geojson.h +586 -0
  57. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/geopackage.h +198 -0
  58. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_advanced.h +5184 -0
  59. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_const.h +606 -0
  60. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_core.h +2294 -0
  61. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_dxf.h +993 -0
  62. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_dynamic.h +416 -0
  63. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_formats.h +2056 -0
  64. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_mbr.h +606 -0
  65. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_sequence.h +173 -0
  66. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_structs.h +880 -0
  67. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_wfs.h +581 -0
  68. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_xml.h +818 -0
  69. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/spatialite_ext.h +64 -0
  70. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/sqlite.h +70 -0
  71. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/stored_procedures.h +641 -0
  72. package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite.h +2098 -0
  73. package/dist/prebuilt/wasm-wasm32-st-release/lib/libspatialite.a +0 -0
  74. package/dist/prebuilt/wasm-wasm32-st-release/lib/libspatialite.la +41 -0
  75. package/dist/prebuilt/wasm-wasm32-st-release/lib/mod_spatialite.a +0 -0
  76. package/dist/prebuilt/wasm-wasm32-st-release/lib/mod_spatialite.la +41 -0
  77. package/dist/prebuilt/wasm-wasm32-st-release/lib/pkgconfig/spatialite.pc +12 -0
  78. package/package.json +39 -0
@@ -0,0 +1,77 @@
1
+ /*
2
+ gaiageo.h -- Gaia common support for geometries
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
+ Klaus Foerster klaus.foerster@svg.cc
31
+
32
+ Alternatively, the contents of this file may be used under the terms of
33
+ either the GNU General Public License Version 2 or later (the "GPL"), or
34
+ the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
35
+ in which case the provisions of the GPL or the LGPL are applicable instead
36
+ of those above. If you wish to allow use of your version of this file only
37
+ under the terms of either the GPL or the LGPL, and not to allow others to
38
+ use your version of this file under the terms of the MPL, indicate your
39
+ decision by deleting the provisions above and replace them with the notice
40
+ and other provisions required by the GPL or the LGPL. If you do not delete
41
+ the provisions above, a recipient may use your version of this file under
42
+ the terms of any one of the MPL, the GPL or the LGPL.
43
+
44
+ */
45
+
46
+
47
+ /**
48
+ \file gaiageo.h
49
+
50
+ Geometry handling functions and constants
51
+ */
52
+
53
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
54
+ /* stdio.h included for FILE objects. */
55
+ #include <stdio.h>
56
+ #ifdef DLL_EXPORT
57
+ #define GAIAGEO_DECLARE __declspec(dllexport)
58
+ #else
59
+ #define GAIAGEO_DECLARE extern
60
+ #endif
61
+ #endif
62
+
63
+ #ifndef _GAIAGEO_H
64
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
65
+ #define _GAIAGEO_H
66
+ #endif
67
+
68
+ #include "gg_const.h"
69
+ #include "gg_structs.h"
70
+ #include "gg_core.h"
71
+ #include "gg_mbr.h"
72
+ #include "gg_formats.h"
73
+ #include "gg_dynamic.h"
74
+ #include "gg_advanced.h"
75
+ #include "gg_xml.h"
76
+
77
+ #endif /* _GAIAGEO_H */
@@ -0,0 +1,277 @@
1
+ /*
2
+ gaiamatrix.h -- Gaia common utility functions: affine trasform Matrix
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 gaiamatrix.h
47
+
48
+ Auxiliary/helper functions
49
+ */
50
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
51
+ #ifdef DLL_EXPORT
52
+ #define GAIAMATRIX_DECLARE __declspec(dllexport)
53
+ #else
54
+ #define GAIAMATRIX_DECLARE extern
55
+ #endif
56
+ #endif
57
+
58
+ #ifndef _GAIAMATRIX_H
59
+ #ifndef DOXYGEN_SHOULD_SKIP_THIS
60
+ #define _GAIAMATRIX_H
61
+ #endif
62
+
63
+ #ifdef __cplusplus
64
+ extern "C"
65
+ {
66
+ #endif
67
+
68
+ /**
69
+ Typedef for gaiaAffineTransformMatrix object (opaque, hidden)
70
+
71
+ \sa gaiaAffineTransformMatrixPtr
72
+ */
73
+ typedef struct priv_affine_transform gaiaAffineTransformMatrix;
74
+ /**
75
+ Typedef for gaiaAffineTransformMatrixPtr object pointer (opaque, hidden)
76
+
77
+ \sa gaiaAffineTransformMatrix
78
+ */
79
+ typedef gaiaAffineTransformMatrix *gaiaAffineTransformMatrixPtr;
80
+
81
+ /* function prototypes */
82
+
83
+ /**
84
+ Creating a fully initialized BLOB-Matrix
85
+ \param a XX component of the affine transformation.
86
+ \param b XY component of the affine transformation.
87
+ \param c XZ component of the affine transformation.
88
+ \param d YX component of the affine transformation.
89
+ \param e YY component of the affine transformation.
90
+ \param f YZ component of the affine transformation.
91
+ \param g ZX component of the affine transformation.
92
+ \param h ZY component of the affine transformation.
93
+ \param i ZZ component of the affine transformation.
94
+ \param xoff X translation component of the affine transformation.
95
+ \param yoff Y translation component of the affine transformation.
96
+ \param zoff Z translation component of the affine transformation.
97
+ \param blob on completion this variable will contain a BLOB-encoded
98
+ affine transform Matrix
99
+ \param blob_sz on completion this variable will contain the BLOB's size
100
+ (in bytes)
101
+
102
+ \return 0 on failure: any other different value on success.
103
+
104
+ \sa gaia_matrix_is_valid, gaia_matrix_as_text,
105
+ gaia_matrix_multiply, gaia_matrix_create_multiply,
106
+ gaia_matrix_transform_geometry
107
+
108
+ \note you are responsible to destroy (before or after) any BLOB
109
+ returned by this function.
110
+ */
111
+ GAIAMATRIX_DECLARE int gaia_matrix_create (double a, double b, double c,
112
+ double d, double e, double f,
113
+ double g, double h, double i,
114
+ double xoff, double yoff,
115
+ double zoff,
116
+ unsigned char **blob,
117
+ int *blob_sz);
118
+
119
+ /**
120
+ Creating a BLOB-Matrix by multiplying MatrixA by MatrixB
121
+ \param iblob1 pointer to a BLOB-encoded Matrix A
122
+ \param iblob1_sz A BLOB's size (in bytes)
123
+ \param iblob2 pointer to a BLOB-encoded Matrix A
124
+ \param iblob2_sz A BLOB's size (in bytes)
125
+ \param blob on completion this variable will contain a BLOB-encoded
126
+ affine transform Matrix
127
+ \param blob_sz on completion this variable will contain the BLOB's size
128
+ (in bytes)
129
+
130
+ \return 0 on failure: any other different value on success.
131
+
132
+ \sa gaia_matrix_create, gaia_matrix_is_valid, gaia_matrix_as_text,
133
+ gaia_matrix_create_multiply, gaia_matrix_transform_geometry,
134
+ gaia_matrix_invert
135
+
136
+ \note you are responsible to destroy (before or after) any BLOB
137
+ returned by this function.
138
+ */
139
+ GAIAMATRIX_DECLARE int gaia_matrix_multiply (const unsigned char *iblob1,
140
+ int iblob1_sz,
141
+ const unsigned char *iblob2,
142
+ int iblob2_sz,
143
+ unsigned char **blob,
144
+ int *blob_sz);
145
+
146
+ /**
147
+ Creating a BLOB-Matrix by applying a further trasformation to a previous BLOB-Matrix
148
+ \param iblob pointer to a BLOB-encoded Matrix
149
+ \param iblob_sz BLOB's size (in bytes)
150
+ \param a XX component of the affine transformation.
151
+ \param b XY component of the affine transformation.
152
+ \param c XZ component of the affine transformation.
153
+ \param d YX component of the affine transformation.
154
+ \param e YY component of the affine transformation.
155
+ \param f YZ component of the affine transformation.
156
+ \param g ZX component of the affine transformation.
157
+ \param h ZY component of the affine transformation.
158
+ \param i ZZ component of the affine transformation.
159
+ \param xoff X translation component of the affine transformation.
160
+ \param yoff Y translation component of the affine transformation.
161
+ \param zoff Z translation component of the affine transformation.
162
+ \param blob on completion this variable will contain a BLOB-encoded
163
+ affine transform Matrix
164
+ \param blob_sz on completion this variable will contain the BLOB's size
165
+ (in bytes)
166
+
167
+ \return 0 on failure: any other different value on success.
168
+
169
+ \sa gaia_matrix_create, gaia_matrix_is_valid, gaia_matrix_as_text,
170
+ gaia_matrix_multiply, gaia_matrix_transform_geometry
171
+
172
+ \note you are responsible to destroy (before or after) any BLOB
173
+ returned by this function.
174
+ */
175
+ GAIAMATRIX_DECLARE int gaia_matrix_create_multiply (const unsigned char
176
+ *iblob, int iblob_sz,
177
+ double a, double b,
178
+ double c, double d,
179
+ double e, double f,
180
+ double g, double h,
181
+ double i, double xoff,
182
+ double yoff,
183
+ double zoff,
184
+ unsigned char **blob,
185
+ int *blob_sz);
186
+
187
+ /**
188
+ Testing a BLOB-Matrix for validity
189
+ \param blob pointer to a BLOB-encoded Matrix
190
+ \param blob_sz BLOB's size (in bytes)
191
+
192
+ \return TRUE if the BLOB really is of the BLOB-Matrix type; FALSE if not.
193
+
194
+ \sa gaia_matrix_create, gaia_matrix_as_text,
195
+ gaia_matrix_multiply, gaia_matrix_create_multiply,
196
+ gaia_matrix_transform_geometry
197
+ */
198
+ GAIAMATRIX_DECLARE int gaia_matrix_is_valid (const unsigned char *blob,
199
+ int blob_sz);
200
+
201
+ /**
202
+ Printing a textual represention from a BLOB-Matrix
203
+ \param blob pointer to a BLOB-encoded Matrix
204
+ \param blob_sz BLOB's size (in bytes)
205
+
206
+ \return a text string; NULL on failure.
207
+
208
+ \sa gaia_matrix_create, gaia_matrix_is_valid,
209
+ gaia_matrix_multiply, gaia_matrix_create_multiply,
210
+ gaia_matrix_transform_geometry
211
+ \note you are responsible to destroy (before or after) any text
212
+ string returned by this function by calling sqlite3_free().
213
+ */
214
+ GAIAMATRIX_DECLARE char *gaia_matrix_as_text (const unsigned char *blob,
215
+ int blob_sz);
216
+
217
+ /**
218
+ Transforming a Geometry accordingly to an Affine Transform Matrix
219
+ \param geom the input Geometry
220
+ \param blob pointer to a BLOB-encoded Matrix
221
+ \param blob_sz BLOB's size (in bytes)
222
+
223
+ \return pointer to the transformed Geometry or NULL on failure.
224
+
225
+ \sa gaia_matrix_create, gaia_matrix_is_valid, gaia_matrix_as_text,
226
+ gaia_matrix_multiply, gaia_matrix_create_multiply
227
+
228
+ \note you are responsible to destroy (before or after) any Geometry
229
+ returned by this function.
230
+ */
231
+ GAIAMATRIX_DECLARE gaiaGeomCollPtr
232
+ gaia_matrix_transform_geometry (gaiaGeomCollPtr geom,
233
+ const unsigned char *blob, int blob_sz);
234
+
235
+ /**
236
+ Computing the Determinant from an Affine Transform Matrix
237
+ \param blob pointer to a BLOB-encoded Matrix
238
+ \param blob_sz BLOB's size (in bytes)
239
+
240
+ \return the Determinant of the Matix; 0.0 on invalid args.
241
+
242
+ \sa gaia_matrix_create, gaia_matrix_is_valid, gaia_matrix_invert
243
+ \note you are responsible to destroy (before or after) any Geometry
244
+ returned by this function.
245
+ */
246
+ GAIAMATRIX_DECLARE double
247
+ gaia_matrix_determinant (const unsigned char *blob, int blob_sz);
248
+
249
+ /**
250
+ Creating a BLOB-Matrix by applying a further trasformation to a previous BLOB-Matrix
251
+ \param iblob pointer to a BLOB-encoded Matrix
252
+ \param iblob_sz BLOB's size (in bytes)
253
+ \param blob on completion this variable will contain a BLOB-encoded
254
+ affine transform Matrix (Inverse)
255
+ \param blob_sz on completion this variable will contain the BLOB's size
256
+ (in bytes)
257
+
258
+ \return 0 on failure: any other different value on success.
259
+ Note that not all Matrices can be Inverted, only those having
260
+ a valid Determinant.
261
+
262
+ \sa gaia_matrix_create, gaia_matrix_is_valid, gaia_matrix_multiply,
263
+ gaia_matrix_determinant
264
+
265
+ \note you are responsible to destroy (before or after) any BLOB
266
+ returned by this function.
267
+ */
268
+ GAIAMATRIX_DECLARE int gaia_matrix_invert (const unsigned char
269
+ *iblob, int iblob_sz,
270
+ unsigned char **blob,
271
+ int *blob_sz);
272
+
273
+ #ifdef __cplusplus
274
+ }
275
+ #endif
276
+
277
+ #endif /* _GAIAMATRIX_H */