introduce address column for place tables

The column is a hstore containing the full OSM tag with key and
value.
This commit is contained in:
Sarah Hoffmann
2017-03-25 23:11:09 +01:00
parent 43eedfd253
commit c8e79397f5
8 changed files with 157 additions and 217 deletions

View File

@@ -10,7 +10,7 @@ $sOutputFormat = 'html';
$oDB =& getDB();
$sSQL = "select placex.place_id, calculated_country_code as country_code,";
$sSQL = "select placex.place_id, country_code,";
$sSQL .= " name->'name' as name, i.* from placex, import_polygon_delete i";
$sSQL .= " where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type";
$sSQL .= " and placex.class = i.class and placex.type = i.type";