From: Sarah Hoffmann Date: Sun, 28 Dec 2014 22:11:57 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~493 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f1c4615c32532cdb03845c017f660fa5c5a06331?hp=c68a8c9f2d4898bbc0fa5a13200b888093c0e808 Merge remote-tracking branch 'upstream/master' Conflicts: utils/specialphrases.php --- diff --git a/README b/README index b7fdedca..224b6569 100644 --- a/README +++ b/README @@ -24,6 +24,9 @@ how to set up your own instance of Nominatim can be found in the wiki: http://wiki.openstreetmap.org/wiki/Nominatim/Installation +Note that this repository contains a submodule called osm2pgsql. Make sure it +is cloned as well by running `git submodule update --init`. + Installation steps: 0. If checking out from git run: @@ -32,7 +35,7 @@ Installation steps: 1. Compile Nominatim: - ./configure [--enable-64bit-ids] + ./configure make 2. Get OSM data and import: diff --git a/lib/lib.php b/lib/lib.php index a05ddc4b..4b68b4a3 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -540,7 +540,6 @@ 'natural:beach' => array('label'=>'Beach','frequency'=>121,'icon'=>'tourist_beach',), 'place:moor' => array('label'=>'Moor','frequency'=>118,'icon'=>'',), 'amenity:grave_yard' => array('label'=>'Grave Yard','frequency'=>110,'icon'=>'',), - 'waterway:derelict_canal' => array('label'=>'Derelict Canal','frequency'=>109,'icon'=>'',), 'waterway:drain' => array('label'=>'Drain','frequency'=>108,'icon'=>'',), 'landuse:grass' => array('label'=>'Grass','frequency'=>106,'icon'=>'',), 'landuse:village_green' => array('label'=>'Village Green','frequency'=>106,'icon'=>'',), @@ -628,7 +627,7 @@ 'place:houses' => array('label'=>'Houses','frequency'=>85,'icon'=>'',), 'railway:preserved' => array('label'=>'Preserved','frequency'=>227,'icon'=>'',), - 'waterway:derelict canal' => array('label'=>'Derelict Canal','frequency'=>21,'icon'=>'',), + 'waterway:derelict_canal' => array('label'=>'Derelict Canal','frequency'=>21,'icon'=>'',), 'amenity:dead_pub' => array('label'=>'Dead Pub','frequency'=>20,'icon'=>'',), 'railway:disused_station' => array('label'=>'Disused Station','frequency'=>114,'icon'=>'',), 'railway:abandoned' => array('label'=>'Abandoned','frequency'=>641,'icon'=>'',), diff --git a/settings/settings.php b/settings/settings.php index 13239643..3da42133 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -35,7 +35,7 @@ // search tables - needed for lookups @define('CONST_Tablespace_Search_Data', false); @define('CONST_Tablespace_Search_Index', false); - // additional data, e.g. TIGER data - needed for lookups + // additional data, e.g. TIGER data, type searches - needed for lookups @define('CONST_Tablespace_Aux_Data', false); @define('CONST_Tablespace_Aux_Index', false); diff --git a/utils/specialphrases.php b/utils/specialphrases.php index 02aaaa0f..13480695 100755 --- a/utils/specialphrases.php +++ b/utils/specialphrases.php @@ -86,15 +86,24 @@ foreach($aPairs as $aPair) { - echo "create table place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." as "; - echo "select place_id as place_id,st_centroid(geometry) as centroid from placex where "; - echo "class = '".pg_escape_string($aPair[0])."' and type = '".pg_escape_string($aPair[1])."';\n"; + echo "create table place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1]); + if (CONST_Tablespace_Aux_Data) + echo " tablespace ".CONST_Tablespace_Aux_Data; + echo " as select place_id as place_id,st_centroid(geometry) as centroid from placex where "; + echo "class = '".pg_escape_string($aPair[0])."' and type = '".pg_escape_string($aPair[1])."'"; + echo ";\n"; echo "CREATE INDEX idx_place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])."_centroid "; - echo "ON place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." USING GIST (centroid) tablespace ssd;\n"; + echo "ON place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." USING GIST (centroid)"; + if (CONST_Tablespace_Aux_Index) + echo " tablespace ".CONST_Tablespace_Aux_Index; + echo ";\n"; echo "CREATE INDEX idx_place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])."_place_id "; - echo "ON place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." USING btree(place_id) tablespace ssd;\n"; + echo "ON place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." USING btree(place_id)"; + if (CONST_Tablespace_Aux_Index) + echo " tablespace ".CONST_Tablespace_Aux_Index; + echo ";\n"; echo "GRANT SELECT ON place_classtype_".pg_escape_string($aPair[0])."_".pg_escape_string($aPair[1])." TO \"www-data\";\n";