@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.
- package/LICENSE +35 -0
- package/README.md +12 -0
- package/config.guess +1823 -0
- package/config.sub +1885 -0
- package/crossbind.build.js +1 -0
- package/crossbind.config.js +11 -0
- package/dist/prebuilt/CMakeLists.txt +57 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/control_points.h +259 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/debug.h +77 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaia_network.h +627 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaia_topology.h +1221 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaaux.h +540 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig-msvc.h +56 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig-msvc.h.in +55 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig.h +68 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaconfig.h.in +67 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiaexif.h +669 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiageo.h +77 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gaiamatrix.h +277 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/geojson.h +586 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/geopackage.h +198 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_advanced.h +5184 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_const.h +606 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_core.h +2294 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_dxf.h +993 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_dynamic.h +416 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_formats.h +2056 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_mbr.h +606 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_sequence.h +173 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_structs.h +880 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_wfs.h +581 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/gg_xml.h +818 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/spatialite_ext.h +64 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/sqlite.h +70 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite/stored_procedures.h +641 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/include/spatialite.h +2098 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/lib/libspatialite.a +0 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/lib/libspatialite.la +41 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/lib/mod_spatialite.a +0 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/lib/mod_spatialite.la +41 -0
- package/dist/prebuilt/wasm-wasm32-mt-release/lib/pkgconfig/spatialite.pc +12 -0
- package/dist/prebuilt/wasm-wasm32-st-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/control_points.h +259 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/debug.h +77 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaia_network.h +627 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaia_topology.h +1221 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaaux.h +540 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h +56 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig-msvc.h.in +55 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig.h +68 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaconfig.h.in +67 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiaexif.h +669 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiageo.h +77 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gaiamatrix.h +277 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/geojson.h +586 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/geopackage.h +198 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_advanced.h +5184 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_const.h +606 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_core.h +2294 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_dxf.h +993 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_dynamic.h +416 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_formats.h +2056 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_mbr.h +606 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_sequence.h +173 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_structs.h +880 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_wfs.h +581 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/gg_xml.h +818 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/spatialite_ext.h +64 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/sqlite.h +70 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite/stored_procedures.h +641 -0
- package/dist/prebuilt/wasm-wasm32-st-release/include/spatialite.h +2098 -0
- package/dist/prebuilt/wasm-wasm32-st-release/lib/libspatialite.a +0 -0
- package/dist/prebuilt/wasm-wasm32-st-release/lib/libspatialite.la +41 -0
- package/dist/prebuilt/wasm-wasm32-st-release/lib/mod_spatialite.a +0 -0
- package/dist/prebuilt/wasm-wasm32-st-release/lib/mod_spatialite.la +41 -0
- package/dist/prebuilt/wasm-wasm32-st-release/lib/pkgconfig/spatialite.pc +12 -0
- package/package.json +39 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
GeoPackage extensions for SpatiaLite / SQLite
|
|
4
|
+
|
|
5
|
+
version 5.1.0, 2023 August 4
|
|
6
|
+
|
|
7
|
+
Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
8
|
+
|
|
9
|
+
The contents of this file are subject to the Mozilla Public License Version
|
|
10
|
+
1.1 (the "License"); you may not use this file except in compliance with
|
|
11
|
+
the License. You may obtain a copy of the License at
|
|
12
|
+
http://www.mozilla.org/MPL/
|
|
13
|
+
|
|
14
|
+
Software distributed under the License is distributed on an "AS IS" basis,
|
|
15
|
+
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
16
|
+
for the specific language governing rights and limitations under the
|
|
17
|
+
License.
|
|
18
|
+
|
|
19
|
+
The Original Code is GeoPackage Extensions
|
|
20
|
+
|
|
21
|
+
The Initial Developer of the Original Code is Brad Hards (bradh@frogmouth.net)
|
|
22
|
+
|
|
23
|
+
Portions created by the Initial Developer are Copyright (C) 2012-2023
|
|
24
|
+
the Initial Developer. All Rights Reserved.
|
|
25
|
+
|
|
26
|
+
Contributor(s):
|
|
27
|
+
Sandro Furieri (a.furieri@lqt.it)
|
|
28
|
+
|
|
29
|
+
Alternatively, the contents of this file may be used under the terms of
|
|
30
|
+
either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
31
|
+
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
32
|
+
in which case the provisions of the GPL or the LGPL are applicable instead
|
|
33
|
+
of those above. If you wish to allow use of your version of this file only
|
|
34
|
+
under the terms of either the GPL or the LGPL, and not to allow others to
|
|
35
|
+
use your version of this file under the terms of the MPL, indicate your
|
|
36
|
+
decision by deleting the provisions above and replace them with the notice
|
|
37
|
+
and other provisions required by the GPL or the LGPL. If you do not delete
|
|
38
|
+
the provisions above, a recipient may use your version of this file under
|
|
39
|
+
the terms of any one of the MPL, the GPL or the LGPL.
|
|
40
|
+
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
\file geopackage.h
|
|
45
|
+
|
|
46
|
+
GeoPackage: supporting functions and constants
|
|
47
|
+
*/
|
|
48
|
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
|
49
|
+
#ifdef _WIN32
|
|
50
|
+
#ifdef DLL_EXPORT
|
|
51
|
+
#define GEOPACKAGE_DECLARE __declspec(dllexport)
|
|
52
|
+
#define GEOPACKAGE_PRIVATE
|
|
53
|
+
#else
|
|
54
|
+
#define GEOPACKAGE_DECLARE extern
|
|
55
|
+
#define GEOPACKAGE_PRIVATE
|
|
56
|
+
#endif
|
|
57
|
+
#else
|
|
58
|
+
#define GEOPACKAGE_DECLARE __attribute__ ((visibility("default")))
|
|
59
|
+
#define GEOPACKAGE_PRIVATE __attribute__ ((visibility("hidden")))
|
|
60
|
+
#endif
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#ifndef _GEOPACKAGE_H
|
|
64
|
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
|
|
65
|
+
#define _GEOPACKAGE_H
|
|
66
|
+
#endif
|
|
67
|
+
|
|
68
|
+
#include "sqlite.h"
|
|
69
|
+
|
|
70
|
+
#ifdef __cplusplus
|
|
71
|
+
extern "C"
|
|
72
|
+
{
|
|
73
|
+
#endif
|
|
74
|
+
|
|
75
|
+
#include <spatialite/gaiageo.h>
|
|
76
|
+
|
|
77
|
+
/* Internal geopackage SQL function implementation */
|
|
78
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgCreateBaseTables (sqlite3_context *
|
|
79
|
+
context, int argc,
|
|
80
|
+
sqlite3_value ** argv);
|
|
81
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgCreateTilesTable (sqlite3_context *
|
|
82
|
+
context, int argc,
|
|
83
|
+
sqlite3_value ** argv);
|
|
84
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgCreateTilesZoomLevel (sqlite3_context *
|
|
85
|
+
context, int argc,
|
|
86
|
+
sqlite3_value **
|
|
87
|
+
argv);
|
|
88
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgInsertEpsgSRID (sqlite3_context *
|
|
89
|
+
context, int argc,
|
|
90
|
+
sqlite3_value ** argv);
|
|
91
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgAddTileTriggers (sqlite3_context *
|
|
92
|
+
context, int argc,
|
|
93
|
+
sqlite3_value ** argv);
|
|
94
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgGetNormalRow (sqlite3_context * context,
|
|
95
|
+
int argc,
|
|
96
|
+
sqlite3_value ** argv);
|
|
97
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgGetNormalZoom (sqlite3_context * context,
|
|
98
|
+
int argc,
|
|
99
|
+
sqlite3_value ** argv);
|
|
100
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgGetImageType (sqlite3_context * context,
|
|
101
|
+
int argc,
|
|
102
|
+
sqlite3_value ** argv);
|
|
103
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgAddGeometryColumn (sqlite3_context *
|
|
104
|
+
context, int argc,
|
|
105
|
+
sqlite3_value ** argv);
|
|
106
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePoint (sqlite3_context * context,
|
|
107
|
+
int argc,
|
|
108
|
+
sqlite3_value ** argv);
|
|
109
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointWithSRID (sqlite3_context *
|
|
110
|
+
context, int argc,
|
|
111
|
+
sqlite3_value ** argv);
|
|
112
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointZ (sqlite3_context * context,
|
|
113
|
+
int argc,
|
|
114
|
+
sqlite3_value ** argv);
|
|
115
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointZWithSRID (sqlite3_context *
|
|
116
|
+
context, int argc,
|
|
117
|
+
sqlite3_value ** argv);
|
|
118
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointM (sqlite3_context * context,
|
|
119
|
+
int argc,
|
|
120
|
+
sqlite3_value ** argv);
|
|
121
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointMWithSRID (sqlite3_context *
|
|
122
|
+
context, int argc,
|
|
123
|
+
sqlite3_value ** argv);
|
|
124
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointZM (sqlite3_context * context,
|
|
125
|
+
int argc,
|
|
126
|
+
sqlite3_value ** argv);
|
|
127
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgMakePointZMWithSRID (sqlite3_context *
|
|
128
|
+
context, int argc,
|
|
129
|
+
sqlite3_value **
|
|
130
|
+
argv);
|
|
131
|
+
GEOPACKAGE_PRIVATE void fnct_ToGPB (sqlite3_context * context, int argc,
|
|
132
|
+
sqlite3_value ** argv);
|
|
133
|
+
GEOPACKAGE_PRIVATE void fnct_GeomFromGPB (sqlite3_context * context,
|
|
134
|
+
int argc, sqlite3_value ** argv);
|
|
135
|
+
|
|
136
|
+
GEOPACKAGE_DECLARE gaiaGeomCollPtr gaiaFromGeoPackageGeometryBlob (const
|
|
137
|
+
unsigned
|
|
138
|
+
char
|
|
139
|
+
*gpb,
|
|
140
|
+
unsigned
|
|
141
|
+
int
|
|
142
|
+
gpb_len);
|
|
143
|
+
|
|
144
|
+
/* Sandro Furieri - 2014-05-19 */
|
|
145
|
+
GEOPACKAGE_DECLARE int gaiaIsValidGPB (const unsigned char *gpb,
|
|
146
|
+
int gpb_len);
|
|
147
|
+
GEOPACKAGE_DECLARE int gaiaGetSridFromGPB (const unsigned char *gpb,
|
|
148
|
+
int gpb_len);
|
|
149
|
+
GEOPACKAGE_DECLARE int gaiaIsEmptyGPB (const unsigned char *gpb,
|
|
150
|
+
int gpb_len);
|
|
151
|
+
GEOPACKAGE_DECLARE int gaiaGetEnvelopeFromGPB (const unsigned char *gpb,
|
|
152
|
+
int gpb_len, double *min_x,
|
|
153
|
+
double *max_x,
|
|
154
|
+
double *min_y,
|
|
155
|
+
double *max_y, int *has_z,
|
|
156
|
+
double *min_z,
|
|
157
|
+
double *max_z, int *has_m,
|
|
158
|
+
double *min_m,
|
|
159
|
+
double *max_m);
|
|
160
|
+
GEOPACKAGE_DECLARE char *gaiaGetGeometryTypeFromGPB (const unsigned char
|
|
161
|
+
*gpb, int gpb_len);
|
|
162
|
+
GEOPACKAGE_PRIVATE void fnct_IsValidGPB (sqlite3_context * context,
|
|
163
|
+
int argc, sqlite3_value ** argv);
|
|
164
|
+
GEOPACKAGE_PRIVATE void fnct_GPKG_IsAssignable (sqlite3_context * context,
|
|
165
|
+
int argc,
|
|
166
|
+
sqlite3_value ** argv);
|
|
167
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgAddGeometryTriggers (sqlite3_context *
|
|
168
|
+
context, int argc,
|
|
169
|
+
sqlite3_value **
|
|
170
|
+
argv);
|
|
171
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgAddGeometryTriggers (sqlite3_context *
|
|
172
|
+
context, int argc,
|
|
173
|
+
sqlite3_value **
|
|
174
|
+
argv);
|
|
175
|
+
GEOPACKAGE_PRIVATE void fnct_gpkgAddSpatialIndex (sqlite3_context *
|
|
176
|
+
context, int argc,
|
|
177
|
+
sqlite3_value ** argv);
|
|
178
|
+
/* end Sandro Furieri - 2014-05-19 */
|
|
179
|
+
|
|
180
|
+
/* Sandro Furieri - 2015-06-14 */
|
|
181
|
+
GEOPACKAGE_DECLARE void
|
|
182
|
+
gaiaToGPB (gaiaGeomCollPtr geom, unsigned char **result, int *size);
|
|
183
|
+
/* end Sandro Furieri - 2015-06-14 */
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
/* Markers for unused arguments / variable */
|
|
188
|
+
#if __GNUC__
|
|
189
|
+
#define UNUSED __attribute__ ((__unused__))
|
|
190
|
+
#else
|
|
191
|
+
#define UNUSED
|
|
192
|
+
#endif
|
|
193
|
+
|
|
194
|
+
#ifdef __cplusplus
|
|
195
|
+
}
|
|
196
|
+
#endif
|
|
197
|
+
|
|
198
|
+
#endif
|