Sarah Hoffmann
0334915067
update osm2pgsql
...
Needs now an explicit switch to avoid propagating changes from
nodes to ways to relations.
2020-12-02 18:27:18 +01:00
Sarah Hoffmann
ba8accf4bb
make phpcs happy
2020-10-29 11:36:16 +01:00
Sarah Hoffmann
b81894d3d5
remove now unused settings related to website
...
There are two places where the website URL is still used:
for icons, replace the URL with a link to the icon repository
of the UI repo. The more URL now builds the link from the
server info.
2020-10-29 11:13:32 +01:00
Sarah Hoffmann
a4b30fc649
index admin boundaries before everything else
...
Avoids irregularities that might happen because the address
rank of a boundary is changed through linking.
2020-08-18 15:17:09 +02:00
Sarah Hoffmann
8cd9550295
implicitly connect to database during setup
...
Make access to the DB object a function, so that the connection
can be opened implicitly when the object is accessed for the first
time. This way we no longer need to check beforehand if a specific
function of the setup needs DB access or not.
Also move the check for the module to the relevant sub step.
2020-07-26 11:56:00 +02:00
Sarah Hoffmann
7429ff9dce
forgit to adapt info message
2020-07-18 12:14:51 +02:00
Sarah Hoffmann
3efe0dc8dc
move website settings back to settings/
...
We don't want the settings to become visible when a server is
accidentally configured wrongly.
2020-07-18 11:02:07 +02:00
Sarah Hoffmann
241e4af1b0
log file is a string when not set to false
2020-07-18 11:00:17 +02:00
Sarah Hoffmann
f376f45277
default language is a string when not set to false
2020-07-08 08:38:11 +02:00
Sarah Hoffmann
d364afdf3b
reenable debug parameter
...
The parameter got lost when switching to website settings.
Given that the use of a fixed parameter is limited,
debugging output can now only be set via the URL parameter.
2020-07-08 08:32:46 +02:00
K Rahul Reddy
a3201be7e7
Moved settings-frontend to website/
2020-06-27 10:45:53 +05:30
K Rahul Reddy
6c406124dd
Added setup-website option
2020-06-27 10:45:51 +05:30
Sarah Hoffmann
65ee7a8002
Merge pull request #1754 from mtmail/nominatim-db-tests-against-postgres
...
Nominatim::DB tests against separate postgresql database
2020-04-26 10:20:30 +02:00
marc tobias
38c21de0ee
Nominatim::DB tests against separate postgresql database
2020-04-13 18:01:37 +02:00
marc tobias
fc40939775
new PHP Nominatim\Shell class to wrap shell escaping
2020-04-12 03:50:40 +02:00
Sarah Hoffmann
f5f0c197be
move ranks-related functions in separate sql file
...
Also adds a common function for computing the update radius
around place nodes.
2020-04-10 11:34:14 +02:00
marc tobias
c611d49941
SetupClass.php: remove unused variable
2020-04-08 14:16:06 +02:00
marc tobias
bb569aa484
print warning if no Tiger files found
2020-03-06 17:52:46 +01:00
Sarah Hoffmann
b9171dd10b
clean up intermediate tables earlier with --drop
...
When --drop is given, we can remove all node geometry information
already after the import with osm2pgsql. Also drop all unnecessary
tables before creating the final indices.
2020-02-12 11:03:20 +01:00
marc tobias
540b12537a
setup: delete invalid indices in create-search-indices step
2020-02-08 15:16:20 +01:00
Sarah Hoffmann
b4e6d72fde
replace nominatim C program
2020-01-24 22:06:30 +01:00
Sarah Hoffmann
879aafc916
fix indent
2020-01-24 21:16:26 +01:00
Sarah Hoffmann
3ff6eccfd7
move trigger creation later in setup
2020-01-23 22:28:43 +01:00
Sarah Hoffmann
7a194789bc
remove remaining sql functions into function/ directory
2020-01-08 11:45:51 +01:00
Sarah Hoffmann
827d7a9a62
move postcode table triggers to own file
2020-01-08 11:22:23 +01:00
Sarah Hoffmann
dae2761137
move placex triggers into own file
2020-01-08 11:18:42 +01:00
Sarah Hoffmann
4304c1a7bb
move place triggers into own file
2020-01-07 23:55:38 +01:00
Sarah Hoffmann
c537ea18a4
move functions for interpolation table in own file
2020-01-05 16:36:46 +01:00
Sarah Hoffmann
28fa7be75a
move functions for address lookup into own file
2020-01-05 16:16:21 +01:00
Sarah Hoffmann
4088e4e371
move importance/wikipedia functions into separate file
2020-01-05 15:55:39 +01:00
Sarah Hoffmann
0ef6425847
move SQL functions for normalisation in separate file
2020-01-05 15:38:20 +01:00
Sarah Hoffmann
2059e18e8b
setup: factor out parameter replacement in SQL scripts
...
Put all into a single function and use for all SQL
templates.
2020-01-04 23:48:49 +01:00
Sarah Hoffmann
be9f54d0a9
set default osm2pgsql to 0 when using flatnode file
2019-11-24 14:36:36 +01:00
Sarah Hoffmann
12f830fbbb
fix loading of data without wikipedia files
...
Also removes unused place_boundingbox table.
2019-11-17 23:58:43 +01:00
Sarah Hoffmann
cd3ddec746
Switch to sql.gz format for wikipedia data
...
The dump import is no longer needed.
2019-11-17 10:09:31 +01:00
Sarah Hoffmann
d53af96aa4
update documentation for new wikipedia data
2019-11-16 16:52:23 +01:00
Sarah Hoffmann
f42e40712e
Merge pull request #1555 from mtmail/setup-escape-shell-args
...
setup: escape arguments when executing shell commands (psql, createdb)
2019-11-06 22:47:00 +01:00
marc tobias
9cfd891fb9
setup: escape arguments when executing shell commands (psql, createdb)
2019-11-05 23:50:46 +01:00
marc tobias
c297584726
Tiger data import: display which path is searched for files
2019-10-30 15:50:29 +01:00
Eldar Yusupov
96c1a0a101
Use ExtraDataPath for country grid
2019-10-23 06:19:04 +03:00
marc tobias
573fba55af
SetupClass: on --drop check if table exists first
2019-09-04 13:12:11 +02:00
marc tobias
765a932561
make US postcode data to an optional download
2019-07-24 01:13:57 +02:00
Sarah Hoffmann
c05ddb6119
increase minimum versions for PostgreSQL, Postgis and PHP
...
Remove checks and hacks for older versions.
2019-05-02 21:48:40 +02:00
Sarah Hoffmann
7d3b16f24c
Ignore no-fatal errors during dump file restore
...
The owner should never be restored, the table should be owned
by the caller instead. Non-existing indexes and similar only
started to throw a warning with Postgresql 9.4 and later, so
ignore them explicitly there.
2019-04-28 22:44:42 +02:00
marc tobias
84149f26df
checkModulePresence now raises exception instead of its callers
2019-04-02 18:37:11 +02:00
marc tobias
890d415e1f
Nominatim::DB support input variables, custom error messages
2019-03-10 16:56:36 +01:00
marc tobias
d4b633bfc5
replace database abstraction DB with PDO
2019-03-09 00:18:15 +01:00
Sarah Hoffmann
caa8210112
Switch to configurable style for osm2pgsql
...
Includes the full style, which is the same as now (minus
sidwalk exclusion) and a minimal style for boundaries only.
2019-01-08 22:54:41 +01:00
Sarah Hoffmann
72d19cd523
keep country_osm_grid table when dropping update tables
2019-01-08 22:44:33 +01:00
Sarah Hoffmann
d4fa528d5c
Merge pull request #1245 from lonvia/address-levels-from-json
...
Make rank assignments configurable
2018-12-01 21:43:53 +01:00