Commit Graph

187 Commits

Author SHA1 Message Date
Yuri Astrakhan
4a26366a60
chore: use tilejson 0.3.1 and simplify (#341) (h/t @nyurik)
* bounds merging is now built-in into Bounds as Add/AddAssign
* use Bounds::MAX instead of hard-coding it everywhere
2022-05-30 14:06:44 +03:00
Yuri Astrakhan
623f574a10
chore: remove extern, optimize use, fmt str (#338) (h/t @nyurik) 2022-05-29 20:00:49 +03:00
Yuri Astrakhan
66876d5254
chore: migrate to TileJSON v0.3 (#330) (h/t @nyurik)
* use `tilejson!` to generate json object
* use `Bounds` everywhere when appropriate
2022-05-27 14:04:27 +03:00
Yuri Astrakhan
d0655fd2b3
Use 2021 edition, modern format (#331) (h/t @nyurik)
* switch to 2021 rust edition
* use `format!("{var}")` instead of `"{}", var`
2022-05-27 14:03:48 +03:00
Stepan Kuzmin
b3401785b2
feat: add default SRID support (#308)
* feat: add default SRID support
2022-02-13 15:43:52 +03:00
Hackjack
82bd113403
fix: get_bound.sql to return Polygon every time (#300) (h/t @HackJack-101) 2022-02-12 17:29:59 +03:00
Stepan Kuzmin
5f1d6599cc
chore: update dependencies (#297) 2022-01-01 19:43:04 +02:00
Kris Zima
d9c1cba1e2
fix: 500 errors on uppercase table names (#285) (h/t @kzima) 2021-11-26 15:08:23 +02:00
Andrea Giardini
0ac4315b05
fix: add GET to the list of allowed_methods (#274) (h/t @AndreaGiardini)
* CORS - Add GET to the list of allowed_methods

Co-authored-by: Stepan Kuzmin <to.stepan.kuzmin@gmail.com>
2021-11-07 15:01:51 +03:00
Stepan Kuzmin
fc9170d164
feat: add multiple geometry columns support in table sources (#269)
* feat: add multiple geometry columns support in table sources

* test: add multiple geometry tests
2021-10-21 12:20:33 +03:00
Stepan Kuzmin
7ad7f1ab8b
feat: use openssl for tls connections, add CA_ROOT_FILE support (#268) (h/t @kapcsandi) 2021-10-18 14:35:08 +03:00
Stepan Kuzmin
f2d56c2f7d
fix: tiles attribute in tilejson with x-rewrite-url (#266) 2021-10-15 18:19:36 +03:00
Stepan Kuzmin
194a83e63f
feat: add minzoom and maxzoom support (#265) 2021-10-13 14:51:29 +03:00
Stepan Kuzmin
a9cf508c33
refactor: improve debug logging (#264) 2021-10-12 19:01:25 +03:00
Stepan Kuzmin
206307fd22
test: add config and multiple zoom level tests (#262)
* test: add config and multiple zoom level tests

* test: add more fixtures

* test: use ST_CurveToLine in function source fixtures

* test: update vtzero binaries
2021-10-12 17:56:45 +03:00
Stepan Kuzmin
40b0a0c26a
feat: add bounds to tilejson endpoints (#260) (h/t @jaspervercnocke) 2021-10-10 12:09:56 +03:00
Stepan Kuzmin
0071e94b9e
chore: improve logging (#258) 2021-10-08 17:24:16 +03:00
Christian Versloot
8b5fbf9565
feat: add support for complex geometries (#218) (h/t @christianversloot) 2021-10-07 20:08:04 +03:00
Stepan Kuzmin
2d2642d130
chore: update dependencies (#241) 2021-09-14 14:25:53 +03:00
Stepan Kuzmin
f935db9f1f
chore: add benchmarks (#230) 2021-07-23 11:04:34 +03:00
Jay Kickliter
0393f1449f
Remove intermediate heap allocations (#211) (h/t @JayKickliter) 2021-07-22 21:53:11 +03:00
Paul FLORENCE
49942734af
fix: invalid json escaping (#224) (h/t @gbip)
* Fix invalid json escaping

* test: add test for function_source with query params
2021-07-16 12:09:18 +03:00
Paul FLORENCE
aaae520933
Merge pull request #216 from gbip/fix_prepared_query
fix: escape table and schema in function source tiles URL
2021-07-02 16:08:48 +03:00
Stepan Kuzmin
810a2db34f
update dependencies (#204)
* chore: update postgres

* chore: update dependencies
2021-04-25 14:46:44 +03:00
Stepan Kuzmin
98e48bbd1d
fix: fix clippy errors (#203) 2021-04-25 11:22:30 +03:00
Stepan Kuzmin
3c01125fc5
feat: add composite sources support (#184)
* feat: add composite sources support WIP

* feat: handle empty composite sources

* fix: decompose queries

* docs: add docs on composite sources

* ci: push docker image

* test: add composite source tests
2021-04-24 20:19:37 +03:00
Miguel de Dios Matias
a0442571ea
chore: updates some deps (#183) (h/t @mdtrooper)
* Update some deps (the most important is actix-web to 3.x) and some changes in the code run with new versions.

* Some fixes for cargo fmt.

* Fixed "error: this functions return value is unnecessarily wrapped by Result" from github actions (clippy).
2021-02-21 21:44:28 +03:00
Mazedur Rahman
fce1a9e722
feat: add server heartbeat for monitoring the service health (#168) (h/t @yamaszone)
* Added a simple health check to detect service heartbeat
* Test coverage for healthz endpoint
2021-01-16 16:11:19 +03:00
Stepan Kuzmin
c1c59e158d
feat: add ssl/tls support #63 (#90)
* feat: add ssl/tls support #63

* feat: add danger-accept-invalid-certs option

* ci: switch to ekidd/rust-musl-builder:stable

* ci: enable docker/build-push-action
2020-06-02 09:49:21 +03:00
Stepan Kuzmin
1e34676a14
ci: refactor CI (#86)
* style: run fmt

* ci: run release only on tags

* ci: switch to actions/checkout@v2

* ci: add grcov
* ci: update docker job
2020-05-05 14:13:48 +03:00
Stepan Kuzmin
9887d2bb99
feat: upgrade postgres crates (#85)
* feat: upgrade postgres crates

* style: rename db types

* ci: switch to x86_64-unknown-linux-gnu
2020-05-04 21:21:11 +03:00
Stepan Kuzmin
ad3076812d
feat: upgrade to actix-web 2.0 (#80)
* chore: update actix-web to 2.0

* fix: use default CORS middleware
2020-04-26 17:57:13 +03:00
Stepan Kuzmin
864de2f006
chore: 🤖 fix clippy errors (#64) 2020-03-14 17:31:18 +03:00
Stepan Kuzmin
665fa5e13c refactor: 💡 eliminate clippy errors 2020-01-09 16:36:59 +05:00
Stepan Kuzmin
aecb7ce6f4
fix: 🐛 change tilejson scheme to xyz by default
BREAKING CHANGE: TileJSON scheme is XYZ by default

Closes: #29
2019-10-26 21:21:29 +03:00
Stepan Kuzmin
5a807e40e2
feat: upgrade actix-web to 1.0 (#33)
* test: 💍 add function sources tests

* test: 💍 limit postgres pool size in tests

* feat: 🎸 upgrade actix-web to 1.0
2019-10-26 20:37:49 +03:00
Kristjan
856c93c338 Fix Postgis version check (#23) (h/t [Krizz](https://github.com/Krizz))
Fixes Postgis version check to allow Beta/RC versions
2019-10-06 18:13:39 +03:00
Stepan Kuzmin
0796fbe5dc test: 💍 add tests for source lists and CORS 2019-10-01 15:52:36 +03:00
Stepan Kuzmin
d86d6dc023 refactor: 💡 fix clippy issues 2019-09-30 11:28:34 +03:00
Stepan Kuzmin
13bec40ac0
fix: 🐛 use dashes in CLI args instead of underscore
BREAKING CHANGE: renamed CLI args: keep_alive -> keep-alive, listen_addresses ->
listen-addresses, pool_size -> pool-size

Closes: #21
2019-09-29 13:24:03 +03:00
Stepan Kuzmin
a7c17934e2 refactor: 💡 remove table sources filter support
BREAKING CHANGE: remove table sources `filter` query param support
2019-03-16 19:02:56 +03:00
Stepan Kuzmin
5eeef48b30 feat: 🎸 add watch mode #12
Closes: #12
2019-03-16 18:53:21 +03:00
Stepan Kuzmin
66a850e215 refactor: 💡 update logging messages 2019-03-16 14:05:10 +03:00
Stepan Kuzmin
0eb5115ba1 feat: 🎸 add database connection_string support in config 2019-03-16 13:14:49 +03:00
Stepan Kuzmin
5b5704cd5b refactor: 💡 simplify config building 2019-03-15 19:57:01 +03:00
Stepan Kuzmin
9a1a1555de chore: 🤖 cleanup 2019-03-12 12:07:43 +03:00
Stepan Kuzmin
616a11fb80 chore: 🤖 use rust:1.33.0 2019-03-12 11:57:16 +03:00
Stepan Kuzmin
c0819caf53 test: 💍 tmp fix sources_not_found_test 2018-11-28 16:45:17 +03:00
Stepan Kuzmin
5f8936459e feat: 🎸 dynamic update of sources #12
Table and Function sources can now be refreshed when corresponding list
endpoints are requested
2018-11-28 16:13:35 +03:00
Stepan Kuzmin
e7c4dcfa14 fix: 🐛 check if PostGIS is installed when starting
check if PostGIS >= 2.4.0 is installed when starting martin

Issues: #13
2018-11-18 15:03:56 +03:00
Stepan Kuzmin
da1c4bb15d chore: v0.2.0 release 2018-11-02 16:38:00 +03:00
Stepan Kuzmin
58777a2108 ci: use ekidd/rust-musl-builder:1.30.0 as docker image builder 2018-11-02 14:59:23 +03:00
Stepan Kuzmin
8ac2812d05 fix: function source query params parse 2018-10-18 20:05:33 +03:00
Stepan Kuzmin
be2cc3ea6f doc: update README.md 2018-10-12 18:18:34 +03:00
Stepan Kuzmin
c91198d061 chore: cleanup 2018-10-11 17:31:55 +03:00
Stepan Kuzmin
1e128a7bef feat: add command-line interface 2018-10-10 19:13:53 +03:00
Stepan Kuzmin
c3b6df1295 chore: cleanup 2018-08-25 20:32:21 +03:00
Stepan Kuzmin
334cf72107 test: add table and function source tests 2018-08-25 16:43:31 +03:00
Stepan Kuzmin
ccc986d037 test: add sources_not_found_test 2018-08-25 15:45:04 +03:00
Stepan Kuzmin
0a4adbbdc5 refactor: cleanup with clippy 2018-08-25 13:35:45 +03:00
Stepan Kuzmin
6f710b6fe4 refactor: cleanup 2018-08-16 19:58:15 +03:00
Stepan Kuzmin
63114a8a11 feat: generate function_sources from database 2018-08-16 14:59:31 +03:00
Stepan Kuzmin
2f2b743c33 fix: rename function source query argument to query_params 2018-08-14 19:13:44 +03:00
Stepan Kuzmin
ef7ddace17 fix: pass query string from tilejson endpoint to tiles 2018-08-11 13:39:57 +03:00
Stepan Kuzmin
a7092bc3b8 fix: add schema to function_sources 2018-08-09 17:03:41 +03:00
Stepan Kuzmin
95d92c51ed feat: add function_sources tilejson endpoint 2018-08-09 16:25:06 +03:00
Stepan Kuzmin
cc75ab4a8e fix: properly encode query as json into function_sources 2018-08-09 15:14:44 +03:00
Stepan Kuzmin
241994a570 feat: implement function sources 2018-08-08 19:52:57 +03:00
Stepan Kuzmin
3c3d88b184 feat: split sources into table_sources and function_sources 2018-08-08 15:08:43 +03:00
Stepan Kuzmin
abb4a6d624 do not set source id_column by default 2018-07-30 12:41:30 +03:00
Stepan Kuzmin
8c6914f35c remove runtime sources update support 2018-07-29 13:06:40 +03:00
Stepan Kuzmin
c55e61d27f feat: add config support 2018-07-25 15:02:31 +03:00
Stepan Kuzmin
5532520f42 chore: update actix and actix-web to 0.7 2018-07-24 12:34:01 +03:00
Stepan Kuzmin
63c976e8b9 fix: handle x-rewrite-url header 2018-07-03 20:25:24 +03:00
Stepan Kuzmin
d6aee81b1b fix: handle tables with no properties 2018-06-04 17:46:48 +03:00
Stepan Kuzmin
241dda3184 fix: skip tables with SRID 0 2018-06-04 17:16:10 +03:00
Stepan Kuzmin
612ecddb99 fix: set default tile buffer to 64 2018-05-25 17:22:21 +03:00
Stepan Kuzmin
a1807ccc22 update dependencies, use number of available logical cpu as threads by default 2018-05-25 17:16:59 +03:00
Stepan Kuzmin
0080deb92c feat: rewrite using actix 2018-05-05 12:41:40 +05:00
Stepan Kuzmin
57850c2e80 fix get_sources 2018-03-29 13:11:40 +03:00
Stepan Kuzmin
3b03e4b51d fix cors 2018-03-29 11:47:42 +03:00
Stepan Kuzmin
e3b2d5042b add tilejson endpoint 2018-03-28 19:15:00 +03:00
Stepan Kuzmin
30e4d76808 cleanup 2018-03-28 16:31:49 +03:00
Stepan Kuzmin
48ec709c1a handle empty tiles 2018-03-28 13:08:49 +03:00
Stepan Kuzmin
25b385e14d add query filter support 2018-03-28 12:26:44 +03:00
Stepan Kuzmin
36977bed85 implement sources refreshing 2018-03-27 19:29:41 +03:00
Stepan Kuzmin
04c5be44e7 add RefreshSources message 2018-03-27 17:50:37 +03:00
Stepan Kuzmin
a1965e9af4 implement worker connection 2018-03-27 17:27:51 +03:00
Stepan Kuzmin
2f4c843844 add actors 2018-03-27 16:21:20 +03:00
Stepan Kuzmin
86c12064db WIP: add coordinator 2018-03-27 14:40:33 +03:00
Stepan Kuzmin
e2755187f9 update sources list on index.json request 2018-03-26 18:47:31 +03:00
Stepan Kuzmin
0f222dbe88 cleanup 2018-03-26 16:43:18 +03:00
Stepan Kuzmin
d5e6eaabcb WIP: refactoring 2018-03-26 14:12:43 +03:00
Stepan Kuzmin
31ec5f8615 move tile query to db 2018-03-23 19:47:44 +03:00
Stepan Kuzmin
25e4a8b8cb fix tile handler 2018-03-23 17:19:08 +03:00
Stepan Kuzmin
131069d91d WIP switch to actix-web 2018-03-13 14:32:09 +03:00
Stepan Kuzmin
ad37ab798a restructure app 2018-02-21 17:47:41 +03:00
Stepan Kuzmin
6c8bbc9691 WIP 2018-02-21 17:03:00 +03:00
Stepan Kuzmin
655536e508 switch default tile buffer to 256 2018-02-21 13:42:01 +03:00
Stepan Kuzmin
1e3422c09a WIP: switch to actix 2018-02-21 13:37:31 +03:00