@cpp.js/package-gdal-multithread 2.0.0-beta.1

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 ADDED
@@ -0,0 +1,467 @@
1
+
2
+ GDAL/OGR Licensing
3
+ ==================
4
+
5
+ This file attempts to include all licenses that apply within the GDAL/OGR
6
+ source tree, in particular any that are supposed to be exposed to the end user
7
+ for credit requirements for instance. The contents of this file can be
8
+ displayed from GDAL commandline utilities using the --license commandline
9
+ switch.
10
+
11
+
12
+ GDAL/OGR General
13
+ ----------------
14
+
15
+ In general GDAL/OGR is licensed under an MIT style license with the
16
+ following terms:
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a
19
+ copy of this software and associated documentation files (the "Software"),
20
+ to deal in the Software without restriction, including without limitation
21
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
22
+ and/or sell copies of the Software, and to permit persons to whom the
23
+ Software is furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included
26
+ in all copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
31
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
33
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
34
+ DEALINGS IN THE SOFTWARE.
35
+
36
+
37
+ port/cpl_float.cpp
38
+ ------------------
39
+
40
+ Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
41
+ Digital Ltd. LLC
42
+
43
+ All rights reserved.
44
+
45
+ Redistribution and use in source and binary forms, with or without
46
+ modification, are permitted provided that the following conditions are
47
+ met:
48
+ * Redistributions of source code must retain the above copyright
49
+ notice, this list of conditions and the following disclaimer.
50
+ * Redistributions in binary form must reproduce the above
51
+ copyright notice, this list of conditions and the following disclaimer
52
+ in the documentation and/or other materials provided with the
53
+ distribution.
54
+ * Neither the name of Industrial Light & Magic nor the names of
55
+ its contributors may be used to endorse or promote products derived
56
+ from this software without specific prior written permission.
57
+
58
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
59
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
60
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
61
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
62
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
63
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
64
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
65
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
66
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
68
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69
+
70
+
71
+ frmts/hdf4/hdf-eos/*
72
+ --------------------
73
+
74
+ Copyright (C) 1996 Hughes and Applied Research Corporation
75
+
76
+ Permission to use, modify, and distribute this software and its documentation
77
+ for any purpose without fee is hereby granted, provided that the above
78
+ copyright notice appear in all copies and that both that copyright notice and
79
+ this permission notice appear in supporting documentation.
80
+
81
+
82
+ frmts/pcraster/libcsf
83
+ ---------------------
84
+
85
+ Copyright (c) 1997-2003, Utrecht University
86
+ All rights reserved.
87
+
88
+ Redistribution and use in source and binary forms, with or without
89
+ modification, are permitted provided that the following conditions
90
+ are met:
91
+
92
+ * Redistributions of source code must retain the above copyright
93
+ notice, this list of conditions and the following disclaimer.
94
+
95
+ * Redistributions in binary form must reproduce the above
96
+ copyright notice, this list of conditions and the following
97
+ disclaimer in the documentation and/or other materials provided
98
+ with the distribution.
99
+
100
+ * Neither the name of Utrecht University nor the names of its contributors
101
+ may be used to endorse or promote products derived from this software
102
+ without specific prior written permission.
103
+
104
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
105
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
106
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
107
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
108
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
109
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
110
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
111
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
112
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
113
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
114
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115
+
116
+ frmts/grib/degrib/*
117
+ -------------------
118
+
119
+ The degrib and g2clib source code are modified versions of code produced
120
+ by NOAA NWS and are in the public domain subject to the following
121
+ restrictions:
122
+
123
+ http://www.weather.gov/im/softa.htm
124
+
125
+ DISCLAIMER The United States Government makes no warranty, expressed or
126
+ implied, as to the usefulness of the software and documentation for any
127
+ purpose. The U.S. Government, its instrumentalities, officers, employees,
128
+ and agents assumes no responsibility (1) for the use of the software and
129
+ documentation listed below, or (2) to provide technical support to users.
130
+
131
+ http://www.weather.gov/disclaimer.php
132
+
133
+ The information on government servers are in the public domain, unless
134
+ specifically annotated otherwise, and may be used freely by the public so
135
+ long as you do not 1) claim it is your own (e.g. by claiming copyright for
136
+ NWS information -- see below), 2) use it in a manner that implies an
137
+ endorsement or affiliation with NOAA/NWS, or 3) modify it in content and
138
+ then present it as official government material. You also cannot present
139
+ information of your own in a way that makes it appear to be official
140
+ government information..
141
+
142
+ The user assumes the entire risk related to its use of this data. NWS is
143
+ providing this data "as is," and NWS disclaims any and all warranties,
144
+ whether express or implied, including (without limitation) any implied
145
+ warranties of merchantability or fitness for a particular purpose. In no
146
+ event will NWS be liable to you or to any third party for any direct,
147
+ indirect, incidental, consequential, special or exemplary damages or lost
148
+ profit resulting from any use or misuse of this data.
149
+
150
+ As required by 17 U.S.C. 403, third parties producing copyrighted works
151
+ consisting predominantly of the material appearing in NWS Web pages must
152
+ provide notice with such work(s) identifying the NWS material incorporated
153
+ and stating that such material is not subject to copyright protection.
154
+
155
+ port/cpl_minizip*
156
+ -----------------
157
+
158
+ This is version 2005-Feb-10 of the Info-ZIP copyright and license.
159
+ The definitive version of this document should be available at
160
+ ftp://ftp.info-zip.org/pub/infozip/license.html indefinitely.
161
+
162
+
163
+ Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
164
+
165
+ For the purposes of this copyright and license, "Info-ZIP" is defined as
166
+ the following set of individuals:
167
+
168
+ Mark Adler, John Bush, Karl Davis, Harald Denker, Jean-Michel Dubois,
169
+ Jean-loup Gailly, Hunter Goatley, Ed Gordon, Ian Gorman, Chris Herborth,
170
+ Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz,
171
+ David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko,
172
+ Steve P. Miller, Sergio Monesi, Keith Owens, George Petrov, Greg Roelofs,
173
+ Kai Uwe Rommel, Steve Salisbury, Dave Smith, Steven M. Schweda,
174
+ Christian Spieler, Cosmin Truta, Antoine Verheijen, Paul von Behren,
175
+ Rich Wales, Mike White
176
+
177
+ This software is provided "as is," without warranty of any kind, express
178
+ or implied. In no event shall Info-ZIP or its contributors be held liable
179
+ for any direct, indirect, incidental, special or consequential damages
180
+ arising out of the use of or inability to use this software.
181
+
182
+ Permission is granted to anyone to use this software for any purpose,
183
+ including commercial applications, and to alter it and redistribute it
184
+ freely, subject to the following restrictions:
185
+
186
+ 1. Redistributions of source code must retain the above copyright notice,
187
+ definition, disclaimer, and this list of conditions.
188
+
189
+ 2. Redistributions in binary form (compiled executables) must reproduce
190
+ the above copyright notice, definition, disclaimer, and this list of
191
+ conditions in documentation and/or other materials provided with the
192
+ distribution. The sole exception to this condition is redistribution
193
+ of a standard UnZipSFX binary (including SFXWiz) as part of a
194
+ self-extracting archive; that is permitted without inclusion of this
195
+ license, as long as the normal SFX banner has not been removed from
196
+ the binary or disabled.
197
+
198
+ 3. Altered versions--including, but not limited to, ports to new operating
199
+ systems, existing ports with new graphical interfaces, and dynamic,
200
+ shared, or static library versions--must be plainly marked as such
201
+ and must not be misrepresented as being the original source. Such
202
+ altered versions also must not be misrepresented as being Info-ZIP
203
+ releases--including, but not limited to, labeling of the altered
204
+ versions with the names "Info-ZIP" (or any variation thereof, including,
205
+ but not limited to, different capitalizations), "Pocket UnZip," "WiZ"
206
+ or "MacZip" without the explicit permission of Info-ZIP. Such altered
207
+ versions are further prohibited from misrepresentative use of the
208
+ Zip-Bugs or Info-ZIP e-mail addresses or of the Info-ZIP URL(s).
209
+
210
+ 4. Info-ZIP retains the right to use the names "Info-ZIP," "Zip," "UnZip,"
211
+ "UnZipSFX," "WiZ," "Pocket UnZip," "Pocket Zip," and "MacZip" for its
212
+ own source and binary releases.
213
+
214
+
215
+ ogr/ogrsf_frmts/dxf/intronurbs.cpp
216
+ ----------------------------------
217
+
218
+ This code is derived from the code associated with the book "An Introduction
219
+ to NURBS" by David F. Rogers. More information on the book and the code is
220
+ available at:
221
+
222
+ http://www.nar-associates.com/nurbs/
223
+
224
+
225
+ Copyright (c) 2009, David F. Rogers
226
+ All rights reserved.
227
+
228
+ Redistribution and use in source and binary forms, with or without
229
+ modification, are permitted provided that the following conditions are met:
230
+
231
+ * Redistributions of source code must retain the above copyright notice,
232
+ this list of conditions and the following disclaimer.
233
+ * Redistributions in binary form must reproduce the above copyright notice,
234
+ this list of conditions and the following disclaimer in the documentation
235
+ and/or other materials provided with the distribution.
236
+ * Neither the name of the David F. Rogers nor the names of its contributors
237
+ may be used to endorse or promote products derived from this software
238
+ without specific prior written permission.
239
+
240
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
241
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
242
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
243
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
244
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
245
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
246
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
247
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
248
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
249
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
250
+ POSSIBILITY OF SUCH DAMAGE.
251
+
252
+ alg/thinplatespline.cpp
253
+ -----------------------
254
+
255
+ IEEE754 log() code derived from:
256
+ @(#)e_log.c 1.3 95/01/18
257
+
258
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
259
+
260
+ Developed at SunSoft, a Sun Microsystems, Inc. business.
261
+ Permission to use, copy, modify, and distribute this
262
+ software is freely granted, provided that this notice
263
+ is preserved.
264
+
265
+
266
+ alg/libqhull
267
+ ------------
268
+
269
+ Only applies when GDAL is compiled with internal qhull support
270
+
271
+
272
+ Qhull, Copyright (c) 1993-2012
273
+
274
+ C.B. Barber
275
+ Arlington, MA
276
+
277
+ and
278
+
279
+ The National Science and Technology Research Center for
280
+ Computation and Visualization of Geometric Structures
281
+ (The Geometry Center)
282
+ University of Minnesota
283
+
284
+ email: qhull@qhull.org
285
+
286
+ This software includes Qhull from C.B. Barber and The Geometry Center.
287
+ Qhull is copyrighted as noted above. Qhull is free software and may
288
+ be obtained via http from www.qhull.org. It may be freely copied, modified,
289
+ and redistributed under the following conditions:
290
+
291
+ 1. All copyright notices must remain intact in all files.
292
+
293
+ 2. A copy of this text file must be distributed along with any copies
294
+ of Qhull that you redistribute; this includes copies that you have
295
+ modified, or copies of programs or other software products that
296
+ include Qhull.
297
+
298
+ 3. If you modify Qhull, you must include a notice giving the
299
+ name of the person performing the modification, the date of
300
+ modification, and the reason for such modification.
301
+
302
+ 4. When distributing modified versions of Qhull, or other software
303
+ products that include Qhull, you must provide notice that the original
304
+ source code may be obtained as noted above.
305
+
306
+ 5. There is no warranty or other guarantee of fitness for Qhull, it is
307
+ provided solely "as is". Bug reports or fixes may be sent to
308
+ qhull_bug@qhull.org; the authors may or may not act on them as
309
+ they desire.
310
+
311
+ frmts/pdf/pdfdataset.cpp (method PDFiumRenderPageBitmap())
312
+ ----------------------------------------------------------
313
+
314
+ Copyright 2014 PDFium Authors. All rights reserved.
315
+
316
+ Redistribution and use in source and binary forms, with or without
317
+ modification, are permitted provided that the following conditions are
318
+ met:
319
+
320
+ * Redistributions of source code must retain the above copyright
321
+ notice, this list of conditions and the following disclaimer.
322
+ * Redistributions in binary form must reproduce the above
323
+ copyright notice, this list of conditions and the following disclaimer
324
+ in the documentation and/or other materials provided with the
325
+ distribution.
326
+ * Neither the name of Google Inc. nor the names of its
327
+ contributors may be used to endorse or promote products derived from
328
+ this software without specific prior written permission.
329
+
330
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
331
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
332
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
333
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
334
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
335
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
336
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
337
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
338
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
339
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
340
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
341
+
342
+ frmts/mrf/* (apply when MRF driver included in build)
343
+ ------------------------------------------------------
344
+
345
+ Copyright (c) 2002-2012, California Institute of Technology.
346
+ All rights reserved. Based on Government Sponsored Research under contracts NAS7-1407 and/or NAS7-03001.
347
+
348
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
349
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
350
+ 2. Redistributions in binary form must reproduce the above copyright notice,
351
+ this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
352
+ 3. Neither the name of the California Institute of Technology (Caltech), its operating division the Jet Propulsion Laboratory (JPL),
353
+ the National Aeronautics and Space Administration (NASA), nor the names of its contributors may be used to
354
+ endorse or promote products derived from this software without specific prior written permission.
355
+
356
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
357
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
358
+ IN NO EVENT SHALL THE CALIFORNIA INSTITUTE OF TECHNOLOGY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
359
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
360
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
361
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
362
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
363
+
364
+ ~~~~~~~~
365
+
366
+ Copyright 2014-2015 Esri
367
+ Licensed under the Apache License, Version 2.0 (the "License");
368
+ you may not use this file except in compliance with the License.
369
+ You may obtain a copy of the License at
370
+ http://www.apache.org/licenses/LICENSE-2.0
371
+ Unless required by applicable law or agreed to in writing, software
372
+ distributed under the License is distributed on an "AS IS" BASIS,
373
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
374
+ See the License for the specific language governing permissions and
375
+ limitations under the License.
376
+
377
+ cmake/modules/3.* (backported CMake find modules)
378
+ -------------------------------------------------
379
+
380
+ CMake - Cross Platform Makefile Generator
381
+ Copyright 2000-2022 Kitware, Inc. and Contributors
382
+ All rights reserved.
383
+
384
+ Redistribution and use in source and binary forms, with or without
385
+ modification, are permitted provided that the following conditions
386
+ are met:
387
+
388
+ * Redistributions of source code must retain the above copyright
389
+ notice, this list of conditions and the following disclaimer.
390
+
391
+ * Redistributions in binary form must reproduce the above copyright
392
+ notice, this list of conditions and the following disclaimer in the
393
+ documentation and/or other materials provided with the distribution.
394
+
395
+ * Neither the name of Kitware, Inc. nor the names of Contributors
396
+ may be used to endorse or promote products derived from this
397
+ software without specific prior written permission.
398
+
399
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
400
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
401
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
402
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
403
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
404
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
405
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
406
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
407
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
408
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
409
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
410
+
411
+ ogr/ogrsf_frmts/flatgeobuf
412
+ --------------------------
413
+
414
+ FlatGeobuf
415
+ ++++++++++
416
+
417
+ ISC License
418
+
419
+ Copyright (c) 2018, Bjorn Harrtell
420
+
421
+ Permission to use, copy, modify, and/or distribute this software for any
422
+ purpose with or without fee is hereby granted, provided that the above
423
+ copyright notice and this permission notice appear in all copies.
424
+
425
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
426
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
427
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
428
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
429
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
430
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
431
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
432
+
433
+ Flatbush
434
+ ++++++++
435
+
436
+ ISC License
437
+
438
+ Copyright (c) 2018, Vladimir Agafonkin
439
+
440
+ Permission to use, copy, modify, and/or distribute this software for any purpose
441
+ with or without fee is hereby granted, provided that the above copyright notice
442
+ and this permission notice appear in all copies.
443
+
444
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
445
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
446
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
447
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
448
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
449
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
450
+ THIS SOFTWARE.
451
+
452
+ ogr/ogrsf_frmts/flatgeobuf/flatbuffers
453
+ --------------------------------------
454
+
455
+ Copyright 2021 Google Inc. All rights reserved.
456
+
457
+ Licensed under the Apache License, Version 2.0 (the "License");
458
+ you may not use this file except in compliance with the License.
459
+ You may obtain a copy of the License at
460
+
461
+ http://www.apache.org/licenses/LICENSE-2.0
462
+
463
+ Unless required by applicable law or agreed to in writing, software
464
+ distributed under the License is distributed on an "AS IS" BASIS,
465
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
466
+ See the License for the specific language governing permissions and
467
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @cpp.js/package-gdal
2
+ **Precompiled gdal library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.**
3
+
4
+ <a href="https://www.npmjs.com/package/@cpp.js/package-gdal">
5
+ <img alt="NPM version" src="https://img.shields.io/npm/v/@cpp.js/package-gdal?style=for-the-badge" />
6
+ </a>
7
+ <a href="https://github.com/OSGeo/gdal">
8
+ <img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Funpkg.com%2F%40cpp.js%2Fpackage-gdal%2Fpackage.json&query=%24.nativeVersion&style=for-the-badge&label=Gdal" />
9
+ </a>
10
+ <a href="https://github.com/OSGeo/gdal/blob/master/LICENSE.TXT">
11
+ <img alt="License" src="https://img.shields.io/npm/l/%40cpp.js%2Fpackage-gdal?style=for-the-badge" />
12
+ </a>
13
+
14
+ ## Integration
15
+ Start by installing these package with the following command:
16
+
17
+ ```sh
18
+ npm install @cpp.js/package-gdal
19
+ ```
20
+
21
+ To enable the library, modify the cppjs.config.js file as shown below.
22
+ ```diff
23
+ +import gdal from '@cpp.js/package-gdal/cppjs.config.js';
24
+
25
+ export default {
26
+ dependencies: [
27
+ + gdal
28
+ ]
29
+ paths: {
30
+ config: import.meta.url,
31
+ }
32
+ };
33
+ ```
34
+
35
+ ## Usage
36
+ Below are the steps to use the gdal in your C++ or JavaScript code.
37
+
38
+ ### Usage in C++ Code
39
+ ```diff
40
+ +#include <gdal.h>
41
+
42
+ std::string Native::sample() {
43
+ + return std::string(GDAL_RELEASE_NAME);
44
+ }
45
+ ```
46
+
47
+ ## License
48
+ This project includes the precompiled GDAL library, which is distributed under the [MIT License](https://github.com/OSGeo/gdal/blob/master/LICENSE.TXT).
49
+
50
+ GDAL Homepage: [https://gdal.org/](https://gdal.org/)
package/cppjs.build.js ADDED
@@ -0,0 +1,59 @@
1
+ const platformCmake = {
2
+ 'Emscripten-x86_64': ['-DBUILD_SHARED_LIBS=OFF'],
3
+ 'Android-arm64-v8a': ['-DCMAKE_ANDROID_STL_TYPE=c++_shared'],
4
+ 'Android-x86_64': ['-DCMAKE_ANDROID_STL_TYPE=c++_shared'],
5
+ };
6
+
7
+ export default {
8
+ getURL: (version) => `https://github.com/OSGeo/gdal/releases/download/v${version}/gdal-${version}.tar.gz`,
9
+ copyToSource: { 'assets/gdal_empty_file.cpp': 'gcore/gdal_empty_file.cpp' },
10
+ replaceList: [
11
+ {
12
+ regex: ' iconv_open',
13
+ replacement: ' libiconv_open',
14
+ paths: ['port/cpl_recode_iconv.cpp'],
15
+ },
16
+ {
17
+ regex: ' iconv',
18
+ replacement: ' libiconv',
19
+ paths: ['port/cpl_recode_iconv.cpp'],
20
+ },
21
+ {
22
+ regex: '#include <iconv.h>',
23
+ replacement: '# include <iconv.h>\nextern "C" {\n extern __attribute__((__visibility__("default"))) iconv_t libiconv_open (const char* tocode, const char* fromcode);\n extern __attribute__((__visibility__("default"))) size_t libiconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);\n}',
24
+ paths: ['port/cpl_recode_iconv.cpp'],
25
+ },
26
+ {
27
+ regex: ' add_subdirectory\\(swig\\)',
28
+ replacement: '',
29
+ paths: ['gdal.cmake'],
30
+ },
31
+ {
32
+ regex: 'add_library\\(\\$\\{GDAL_LIB_TARGET_NAME\\} gcore/gdal.h\\)',
33
+ replacement: 'add_library(${GDAL_LIB_TARGET_NAME} gcore/gdal.h gcore/gdal_empty_file.cpp)',
34
+ paths: ['gdal.cmake'],
35
+ },
36
+ ],
37
+ buildType: 'cmake',
38
+ getBuildParams: (platform, depPaths) => [
39
+ ...(platformCmake[platform] || []),
40
+ '-DBUILD_APPS=OFF', '-DBUILD_TESTING=OFF', '-DACCEPT_MISSING_SQLITE3_MUTEX_ALLOC=ON',
41
+ '-DOGR_ENABLE_DRIVER_GPSBABEL=OFF', '-DGDAL_USE_HDF5=OFF', '-DGDAL_USE_HDFS=OFF',
42
+ '-DGDAL_USE_ZSTD=OFF', '-DGDAL_ENABLE_DRIVER_PDS=OFF',
43
+ `-DSQLite3_INCLUDE_DIR=${depPaths.sqlite3.header}`, `-DSQLite3_LIBRARY=${depPaths.sqlite3.lib}`,
44
+ `-DPROJ_INCLUDE_DIR=${depPaths.proj.header}`, `-DPROJ_LIBRARY_RELEASE=${depPaths.proj.lib}`,
45
+ `-DTIFF_INCLUDE_DIR=${depPaths.tiff.header}`, `-DTIFF_LIBRARY_RELEASE=${depPaths.tiff.lib}`,
46
+ `-DGEOTIFF_INCLUDE_DIR=${depPaths.geotiff.header}`, `-DGEOTIFF_LIBRARY_RELEASE=${depPaths.geotiff.lib}`,
47
+ `-DZLIB_INCLUDE_DIR=${depPaths.z.header}`, `-DZLIB_LIBRARY_RELEASE=${depPaths.z.lib}`,
48
+ `-DSPATIALITE_INCLUDE_DIR=${depPaths.spatialite.header}`, `-DSPATIALITE_LIBRARY=${depPaths.spatialite.lib}`,
49
+ `-DGEOS_INCLUDE_DIR=${depPaths.geos.header}`, `-DGEOS_LIBRARY=${depPaths.geos_c.lib}`,
50
+ `-DWEBP_INCLUDE_DIR=${depPaths.webp.header}`, `-DWEBP_LIBRARY=${depPaths.webp.lib}`,
51
+ `-DEXPAT_INCLUDE_DIR=${depPaths.expat.header}`, `-DEXPAT_LIBRARY=${depPaths.expat.lib}`,
52
+ `-DIconv_INCLUDE_DIR=${depPaths.iconv.header}`, `-DIconv_LIBRARY=${depPaths.iconv.lib}`,
53
+ ],
54
+ env: [
55
+ 'CFLAGS="-DRENAME_INTERNAL_LIBTIFF_SYMBOLS"',
56
+ 'CPPFLAGS="-DRENAME_INTERNAL_LIBTIFF_SYMBOLS"',
57
+ 'EMCC_CFLAGS="-DRENAME_INTERNAL_LIBTIFF_SYMBOLS"',
58
+ ],
59
+ };
@@ -0,0 +1,14 @@
1
+ import gdalWasmMultithread from '@cpp.js/package-gdal-wasm-multithread/cppjs.config.js';
2
+ import gdalAndroidMultithread from '@cpp.js/package-gdal-android-multithread/cppjs.config.js';
3
+ import gdalIosMultithread from '@cpp.js/package-gdal-ios-multithread/cppjs.config.js';
4
+
5
+ export default {
6
+ dependencies: [
7
+ gdalWasmMultithread,
8
+ gdalAndroidMultithread,
9
+ gdalIosMultithread,
10
+ ],
11
+ paths: {
12
+ config: import.meta.url
13
+ }
14
+ };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@cpp.js/package-gdal-multithread",
3
+ "version": "2.0.0-beta.1",
4
+ "nativeVersion": "3.12.1",
5
+ "description": "This package provides the precompiled GDAL, built using Cpp.js, for seamless integration into JavaScript, WebAssembly, and React Native projects. It enables advanced geospatial data processing, including raster and vector data manipulation, format conversion, and spatial analysis, ensuring high performance and cross-platform compatibility. Perfect for web, server-side, and mobile geospatial applications.",
6
+ "homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-package-gdal#readme",
7
+ "repository": "https://github.com/bugra9/cpp.js.git",
8
+ "type": "module",
9
+ "license": "MIT",
10
+ "keywords": [
11
+ "gdal",
12
+ "libgdal",
13
+ "cpp.js-package",
14
+ "webassembly",
15
+ "react-native"
16
+ ],
17
+ "devDependencies": {
18
+ "cpp.js": "^2.0.0-beta.1",
19
+ "@cpp.js/package-gdal-wasm-multithread": "^2.0.0-beta.1",
20
+ "@cpp.js/package-gdal-android-multithread": "^2.0.0-beta.1",
21
+ "@cpp.js/package-gdal-ios-multithread": "^2.0.0-beta.1"
22
+ }
23
+ }