Sarah Hoffmann [Sun, 31 Jul 2016 20:55:38 +0000 (22:55 +0200)]
fail on execution of util scripts from source directory
Utils scripts must be run from the build directory to make sure
we get the right paths. Rename the settings file in source and
replace the original one with an error, so that scripts
fail with an understandable error message when run from the
source directory.
Sarah Hoffmann [Sun, 24 Jul 2016 21:58:39 +0000 (23:58 +0200)]
remove duplicate reverse geocoding code
Geocode now uses ReverseGeocode directly. Note that it currently
cannot support any interpolations, neither OSM nor Tiger. But
neither did the previous version.
function pgsqlRunPartitionScript was missing global $aCMDResult
setup was failing with
...
PHP Notice: Undefined variable: aCMDResult in /home/roles/nominatim/app/Nominatim/build/utils/setup.php on line 768
NOTICE: type "nearplace" does not exist, skipping
..
ERROR: relation "location_area_large_0" already exists
ERROR: pgsql returned with error code (3)
pgsql returned with error code (3)
Command exited with non-zero status 255
Sarah Hoffmann [Wed, 15 Jun 2016 20:39:21 +0000 (22:39 +0200)]
allow coordinates in query only with name or classtype
Coordinates with country or housenumber only do not make much
sense. Currently these combination result in queries that
require a sequential scan of search_name and normally time
out before yielding any results.
Sarah Hoffmann [Wed, 15 Jun 2016 20:39:21 +0000 (22:39 +0200)]
allow coordinates in query only with name or classtype
Coordinates with country or housenumber only do not make much
sense. Currently these combination result in queries that
require a sequential scan of search_name and normally time
out before yielding any results.
Sarah Hoffmann [Sat, 11 Jun 2016 21:07:06 +0000 (23:07 +0200)]
introduce accessor function for URL parameter
These functions take care of type conversion and check that
the parameters contain legal values. The API now returns a
Bad Request error if the format is wrong.
Sarah Hoffmann [Wed, 8 Jun 2016 21:39:12 +0000 (23:39 +0200)]
remove --create-website function
Symlinking does not go well with the separate build directory.
The recommended method is now to serve the website directly from
build/website via an alias. 'website installation' may be
reintroduced later via cmake.
Sarah Hoffmann [Mon, 6 Jun 2016 22:17:15 +0000 (00:17 +0200)]
split instruction into software installation and import
Basically leaves the part that needs to be done by the automatic
vagrant script in the bash script and moves the remaining part
into an OS-independent md file.
Also fixes some of the instructions for CentOS. Now almost runs
through (some minor issue with permission remains).
Sarah Hoffmann [Sat, 4 Jun 2016 22:35:07 +0000 (00:35 +0200)]
provide srcdir for postgres module in VPATH and CPPFLAGS
The pgxs makefile in Postgres <= 9.2 cannot yet handle VPATH
correctly. Provide header paths explicitly and overwrite
VPATH after sourcing the pgxs file.
Sarah Hoffmann [Sat, 28 May 2016 16:18:18 +0000 (18:18 +0200)]
fill place and osmline independently for interpolations on update
interpolation lines may be missing in osmline when the interpolation
is broken, so we cannot conclude that a way is not in place, just
because there are no entries in location_property_osmline.
Sarah Hoffmann [Mon, 23 May 2016 22:24:23 +0000 (00:24 +0200)]
cmake: use explicit VPATH when calling pgxs makefile
Some postgres installations report problems with the makefile
magic that should look for the source where the Makefile is
located. So hand in the path explicitly via VPATH instead.
Sarah Hoffmann [Thu, 7 Apr 2016 19:47:51 +0000 (21:47 +0200)]
make tables for external data (Tiger and aux) configurable
Introduces two new settings CONST_Use_US_Tiger_Data and
CONST_Use_Aux_Location_data, which are disabled by default.
When false the corresponding tables are ignored in queries
and updates.
Aux and tiger tables are no longer created by default. This
has to be done by the corresponding import scripts. The former
aux table creation can be found in sql/aux_tables.sql for
reference.
Sarah Hoffmann [Thu, 7 Apr 2016 18:37:27 +0000 (20:37 +0200)]
clean up query logging
- remove query_log table, keeping only new_query_log
- drop unused import_npi_log table
- disable DB logging per default
- use file logging structure from osm.org