9 Commits

Author SHA1 Message Date
Yuri Astrakhan
6457419e0d
NOOP: Format all layer's SQL code (#917)
I would like to reformat all of our SQL to have a concise coding style.
This makes it far easier to understand the code for a casual contributor,
and lets us spot errors more easily.

Most importantly, it makes it much easier to grep (search) the code because it is more likely to be in the same syntax

Some key changes:
* SQL keywords are always UPPERCASE, e.g. `SELECT WHEN AS END ...`
* types, variables, aliases, and field names (identifiers) are always lower case
* `LANGUAGE 'plpgsql'` is now `LANGUAGE plpgsql` (no quotes)
* a few minor spacing/semicolon cleanups

P.S. Per @TomPohys request, `TABLE` is spelled using upper case despite being a type for consistency with PG Docs. Same for `LANGUAGE SQL` vs `LANGUAGE plpgsql`.
2020-06-08 12:19:55 -04:00
jirik
00d88a103c Revert back to NE 4.0.0
See https://github.com/openmaptiles/openmaptiles/issues/365#issuecomment-442823991
2018-11-30 15:32:26 +01:00
jirik
9d07350ac4 Prefer to join NE countries by Wikidata ID 2018-11-12 12:37:15 +01:00
jirik
2097b2c31b Compute rank also for tiny countries 2017-11-20 15:49:08 +01:00
jirik
b88b34c98d Set rank of countries with limited recognition to 6 2017-11-20 15:49:08 +01:00
jirik
30539e78d1 Fix rank of archipelago countries
Fix #342
2017-11-20 10:51:32 +01:00
jirik
741be6d921 Import additional names from Wikidata 2017-11-16 09:03:41 +01:00
Jiri Kozel
1a324aaf22
Do not load all tags, use later imposm3 (#356)
Fix #266 #267
2017-11-10 15:25:23 +01:00
jirik
893918761c Fix SQL update logic (patch from 3.6.2) 2017-08-01 09:12:15 +02:00