Commit graph

131 commits

Author SHA1 Message Date
Bertold Van den Bergh
dcbf759fa4
Merge pull request #44 from jpmens/patch-1
Update README.md
2024-01-30 19:45:44 +01:00
Jan-Piet Mens
0a778e14ee
Update README.md
add Bertold's description about the file names.

https://github.com/BertoldVdb/ZoneDetect/issues/43#issuecomment-1917285937
2024-01-30 16:53:27 +01:00
Bertold Van den Bergh
528960dd41 Update database to 2023b 2023-11-24 13:46:21 +01:00
Bertold Van den Bergh
dfa5eb0444
Merge pull request #42 from nohal/patch-1
Add <cstdint> include to allow build with GCC 13
2023-10-11 14:20:30 +02:00
Pavel Kalian
ec817d8ec8
Add <cstdint> include to allow build with GCC 13 2023-05-09 21:39:12 -03:00
Bertold Van den Bergh
88e927d230
Merge pull request #40 from alexceder/add-stddef-header-for-size-t-in-header-file
Add stddef.h for size_t in header file
2023-01-19 14:45:32 +01:00
Alexander Cederblad
7c057a7159 Add stddef.h for size_t in header file
Got an error that size_t was not defined. I am no expert, but I suppose
this is the way to fix it.

Probably not an issue in most cases, but I ran into this, so someone
else might and then they will not have to think about it. I assume folks
usually will have this defined as a happy coincidence before including
the header.
2023-01-18 22:54:50 +01:00
Bertold Van den Bergh
c65bc88db5
Avoid broken patch that uses dpkg on CentOS 2022-11-01 15:39:55 +01:00
Bertold Van den Bergh
74c172caa8
Update buildspec.yml 2022-11-01 15:29:27 +01:00
Bertold Van den Bergh
cca7eb551b Add support for building database 2022f 2022-11-01 14:13:58 +01:00
Bertold Van den Bergh
0e7c2729c1
Merge pull request #37 from Edouard59/fix_strcat
replaces strcat by strcat_s to remove compiler error when using ms compiler
2022-04-11 09:42:55 +02:00
Bertold Van den Bergh
b98c5106d9
Fix whitespace 2022-04-11 09:42:31 +02:00
Bertold Van den Bergh
d60c4c56cf
Merge pull request #36 from Edouard59/fix_mem_leak
add API function to free memory dynamically allocated by function ZDHelperSimpleLookupString
2022-04-11 09:41:27 +02:00
Bertold Van den Bergh
4a87565a90
Merge pull request #35 from Edouard59/add_vs_files_to_gitignore
adds some files generated by visual studio to git ignore list
2022-04-11 09:40:59 +02:00
Edouard Charvet
75620a594d replaces strcat by strcat_s to remove compiler error when using ms compiler on windows 2022-04-11 09:02:59 +02:00
Edouard Charvet
8541dace7d add API function to free memory dynamically allocated by function ZDHelperSimpleLookupString 2022-04-11 08:53:26 +02:00
Edouard Charvet
b2e54df9f6 adds some files generated by visual studio to git ignore list 2022-04-11 08:46:08 +02:00
Bertold Van den Bergh
795b78da41
Merge pull request #34 from osievert/otto/macos
build: fix builder compilation on macOS
2022-01-27 23:34:36 +01:00
Otto Sievert
1f2b964626 build: fix builder compilation on macOS
- assert() is already defined, so rename this assert() to assert_()
- std::tie is a c++11 feature; on macOS, g++ maps to clang and clang
    defaults to c++old, so explicitly declare the c++ version
- these changes should be benign on other platforms (e.g., Linux)
2022-01-27 06:34:45 -08:00
Bertold Van den Bergh
f4aef3b543
Merge pull request #30 from nicholasbishop/bishop-fix-url
Fix broken download of ne.zip
2021-09-07 14:22:51 +02:00
Nicholas Bishop
37a2f204b1 Fix broken download of ne.zip
Partially reverts 6a1d2a6165. naciscdn.org
is down and judging from other projects' github issues this seems to be
common.
2021-09-06 16:46:46 -04:00
Bertold Van den Bergh
a000827b9b
Merge pull request #29 from wbarnard/memory-errors
Memory Allocation Error Handling
2021-03-08 18:05:08 +01:00
Will Barnard
0fed129ada Handle memory allocation errors 2021-02-24 15:10:26 +08:00
Bertold Van den Bergh
690b7cbc7c
Merge pull request #28 from wbarnard/baremetal
Baremetal
2021-02-18 13:00:15 +01:00
will
c60ac66207 Explicitly define long long integer literal types 2021-02-18 15:18:36 +08:00
will
c4b608dcac Ensure C90 compliance 2021-02-18 15:18:36 +08:00
will
880f563d17 Support non-Posix toolchain 2021-02-18 15:18:30 +08:00
Bertold Van den Bergh
6a1d2a6165 Update download URL for NE countries database + TZ path 2020-11-19 17:31:58 +01:00
Bertold Van den Bergh
403ff12e7d Use latest version of database 2020-11-19 16:59:41 +01:00
Bertold Van den Bergh
05567e3675
Merge pull request #26 from hannob/fix_mmap_error
properly check error for mmap
2020-05-25 20:43:31 +02:00
Hanno Böck
d583247235
properly check error for mmap 2020-05-20 14:55:17 +02:00
Bertold Van den Bergh
ff37a28524 Do apt update during build 2020-04-28 22:17:55 +02:00
Bertold Van den Bergh
5c5e4f5638 Update to 2020a version of database 2020-04-28 22:04:04 +02:00
Bertold Van den Bergh
d15e28b40c
Merge pull request #20 from nicholasbishop/bishop-makedb-err
makedb.sh: fail if a command exits non-zero
2020-01-26 00:18:04 +01:00
Bertold Van den Bergh
785e4cc589
Merge pull request #21 from nicholasbishop/bishop-builder-readme
Add builder instructions to the database README.md
2020-01-26 00:17:36 +01:00
Bertold Van den Bergh
51c7eb1b7e
Merge pull request #22 from nicholasbishop/bishop-add-demo-makefile
Add a Makefile and more documentation for the demo
2020-01-26 00:17:05 +01:00
Bertold Van den Bergh
e9d4ae396b
Merge pull request #23 from nicholasbishop/bishop-add-gitignore
Add a gitignore file
2020-01-26 00:16:27 +01:00
Bertold Van den Bergh
f1afbf7243
Merge pull request #24 from nicholasbishop/bishop-add-stddef
Include stddef.h for size_t
2020-01-26 00:15:50 +01:00
Nicholas Bishop
b8400b71b9 Include stddef.h for size_t 2020-01-24 17:00:10 -05:00
Nicholas Bishop
529cd09924 Add a gitignore file 2020-01-24 16:31:52 -05:00
Nicholas Bishop
4b7c83e4fb Add a Makefile and more documentation for the demo
This adds a simple `make demo` target that builds the demo with
`gcc`. The readme is also updated to mention the make target and give
an example of how to run it. The example should make clearer what is
to be passed in as the `dbname` parameter; initially I tried `db.zip`
and passing in the `out_v1` directory path before realizing that each
of the database files is separate and that the full path should be
given.
2020-01-24 16:27:31 -05:00
Nicholas Bishop
14d9777f00 Add builder instructions to the database README.md 2020-01-24 16:17:18 -05:00
Nicholas Bishop
4b122f5817 makedb.sh: fail if a command exits non-zero
In particular this better handles the case where the `g++` command
fails (e.g. due to not having shapelib installed). The script should
not continue if that command fails.
2020-01-24 15:58:56 -05:00
Bertold Van den Bergh
2f8dcc91f1 Repair bad commit 2020-01-15 22:11:54 +01:00
Bertold Van den Bergh
5cdc5c9722 Add warning message for endpoint switch 2020-01-15 22:03:12 +01:00
Bertold Van den Bergh
44fc1ab2ee Fix edge case for points on border 2019-12-13 17:50:39 +01:00
Bertold Van den Bergh
2f1bfdebe2 Update makefile and add margin to border detection to cover rounding 2019-12-13 16:15:25 +00:00
Bertold Van den Bergh
f52c8f4135 Add ocean regions to database 2019-12-13 16:12:44 +00:00
Bertold Van den Bergh
abba171e96 Build on AWS Linux so C++ library does not need to be packaged 2019-12-03 17:01:36 +01:00
Bertold Van den Bergh
6db9dca021 Only set safezone if a result was found, otherwise it is meaningless. 2019-11-20 19:10:14 +01:00