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
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
Bertold Van den Bergh
6ab3a273a4
Readd safezone to web interface
2019-11-20 16:59:49 +01:00
Bertold Van den Bergh
57f36c2956
Merge pull request #19 from flederwiesel/master
...
Version suffixes being used for non-Windows library.
2019-11-19 18:07:49 +01:00
flederwiesel
95cfc5e39b
Add version suffix to library for non-Windows build.
2019-11-19 12:19:56 +01:00
flederwiesel
8a2852bb86
Fix error: "-fPIC ignored for target (all code is position independent)" for Windows build.
2019-11-19 12:19:49 +01:00
flederwiesel
2ee7048144
Add GNU hash to library for non-Windows build.
2019-11-19 12:18:18 +01:00
flederwiesel
f936f63aa0
Use install's --strip option.
2019-11-19 10:53:25 +01:00
Bertold Van den Bergh
ceca53b478
Use v0 database as it is faster but bigger
2019-11-18 00:00:45 +01:00
Bertold Van den Bergh
c439c70599
Add license file
2019-11-17 23:48:10 +01:00
Bertold Van den Bergh
def759af1d
Add build badge
2019-11-11 11:58:30 +01:00
Bertold Van den Bergh
cff7b191f7
Initialize point to zero
2019-11-11 11:53:49 +01:00
Bertold Van den Bergh
a214a3bd13
Merge pull request #17 from flederwiesel/master
...
Add support for cross-compile and debug build
2019-11-11 11:51:37 +01:00
flederwiesel
dc2311d87d
Compile with debug info and do not strip if DEBUG is set (not evaluating its value...).
2019-11-11 10:10:51 +01:00
flederwiesel
1c16caf956
Add DESTDIR as well as target directory specifiers as is common with autotools. Use install program instead of cp. Execute ldconfig only if DESTDIR is not set -- assuming DESTDIR is set for cross compile only.
2019-11-11 10:05:55 +01:00
flederwiesel
dafa4c6358
Add libzoneinfo.{dll,so} and zonedetect.o to '.gitignore'.
2019-11-11 10:04:36 +01:00
flederwiesel
5bd300c407
Make phony targets .PHONY
2019-11-11 09:59:47 +01:00
Bertold Van den Bergh
db66d4475a
Correct readme
2019-11-10 21:29:28 +01:00
Bertold Van den Bergh
a1d9ccb707
Update readme
2019-11-10 21:28:07 +01:00
Bertold Van den Bergh
a34073a09c
Make result cacheable
2019-11-10 17:28:36 +01:00
Bertold Van den Bergh
2ad7f9fdeb
Add cloudformation template to repository
2019-11-10 15:34:23 +01:00
Bertold Van den Bergh
f4c4fe5ce6
Update location of timezone21.bin for lambda
2019-11-10 13:45:09 +01:00
Bertold Van den Bergh
d56ab7041f
Update buildspec
2019-11-10 13:37:47 +01:00
Bertold Van den Bergh
b7ff83360f
Update buildspec
2019-11-10 13:35:39 +01:00
Bertold Van den Bergh
42fbf748ca
Update buildspec
2019-11-10 13:34:22 +01:00
Bertold Van den Bergh
b5ff4c0caa
Use buildspec file for lambda
2019-11-10 12:53:48 +01:00
Bertold Van den Bergh
d09c675ce3
Parallel database build
2019-11-10 12:47:26 +01:00
Bertold Van den Bergh
53820ce780
Add buildspec file for database
2019-11-10 12:28:39 +01:00
Bertold Van den Bergh
38c9a4d1b3
Replace node.js lambda with C++ one
2019-11-10 01:55:24 +01:00
Bertold Van den Bergh
db647386d9
Update database URL
2019-11-10 01:31:16 +01:00
Bertold Van den Bergh
91fcb5f9fe
Do not output wget log
2019-11-10 00:54:17 +01:00
Bertold Van den Bergh
08927dd109
Add installcommand to makedb
2019-11-10 00:41:25 +01:00
Bertold Van den Bergh
8bdf7a5326
Merge pull request #15 from BertoldVdb/helper_inmemory
...
Helper inmemory
2019-09-27 18:34:06 +02:00
Bertold Van den Bergh
be3fb27712
Add simple string lookup function
2019-09-27 18:32:28 +02:00
Bertold Van den Bergh
1eb2a136e9
Add functions for opening a database from memory and a helper function that just returns the most important string from each database.
2019-09-27 18:11:38 +02:00
Bertold Van den Bergh
1c9f9917af
Do not call CloseHandle and UnmapViewOfFile with invalid parameters if opening the db failed.
2019-09-25 20:59:06 +02:00
Bertold Van den Bergh
41e3c595ac
Performance improvement
2019-08-26 15:37:08 +02:00
Bertold Van den Bergh
80ff6a8af0
Merge branch 'master' of http://github.com/BertoldVdb/ZoneDetect
2019-08-25 15:56:11 +02:00
Bertold Van den Bergh
62365d381f
Correctly cast malloc parameter
2019-08-25 15:55:38 +02:00
Bertold Van den Bergh
bcdcfacb75
Add install target to makefile, edit demo to not print coordinate list by default
2019-08-18 16:27:26 +02:00
Bertold Van den Bergh
29d52cebe2
Merge branch 'master' of http://github.com/BertoldVdb/ZoneDetect
2019-08-14 21:56:41 +02:00
Bertold Van den Bergh
25b4da4f97
Avoid reading too large filex
2019-08-14 21:56:22 +02:00
Bertold Van den Bergh
5c13f4366a
Update readme explaining out_V1 folder
2019-08-14 18:56:41 +02:00
Bertold Van den Bergh
cd6a29d904
Merge pull request #13 from BertoldVdb/compactfile
...
Compactfile
2019-08-14 18:54:12 +02:00