Sarah Hoffmann
77631f90fd
reindex postcodes that loose their parents
...
When the parent place of a postcode is deleted, it needs to
be reindexed to get a new parent. Otherwise displaying of
results is broken.
2024-05-04 12:33:26 +02:00
Sarah Hoffmann
4c19762e33
extratags should become null when empty
...
Removing the artifical entries in the extratags may lead to
an empty hstore. Set it to null in that case.
Fixes #3055 .
2024-02-08 10:21:48 +01:00
Sarah Hoffmann
2d05ff0190
slightly adapt postcode tests
2023-06-22 16:51:59 +02:00
Sarah Hoffmann
01010e443f
bdd: remove special case for osm_type field
...
The fuzzy field check hide cover formatting errors. Use 'osm' when
only caring about the conent.
2023-03-09 17:44:34 +01:00
Sarah Hoffmann
c9ff7d2130
drop illegal values for addr:interpolation on update
2022-11-18 17:26:56 +01:00
Sarah Hoffmann
487e81fe3c
more invalidations when boundary changes rank
...
When a boundary or place changes its address rank, all places where
it participates as address need to be potentially reindexed.
Also use the computed rank when testing place nodes against
boundaries. Boundaries are computed earlier.
Fixes #2794 .
2022-08-12 09:48:46 +02:00
Sarah Hoffmann
00d8df6fc3
bdd: move update tests from scenes to grid descriptions
2022-06-17 11:54:18 +02:00
Sarah Hoffmann
15cf7dd416
add testcase for #2551
...
This test proves that places that are linked need to be reindexed.
2022-06-05 21:39:17 +02:00
Sarah Hoffmann
1d203fdb3c
fix bug with keeping linking on updates
...
When moving the finding of linked places to the precomputation stage,
it was also moved before the statement where the linked_place_id was
removed from the linkee. The result was that the current linkee was
excluded when looking for a linked place on updates because it was
still linked to the boundary to be updated.
Fixed by allowing to either keep the linkage or change to an unlinked
place.
2022-05-23 10:55:10 +02:00
Sarah Hoffmann
36a1560117
add migration to mark internal country names
2022-03-31 15:55:20 +02:00
Sarah Hoffmann
524dc64ab7
make sure outputs take into account linked place names
2022-03-16 21:44:52 +01:00
Sarah Hoffmann
1d82569f6d
add tests for country updates
2022-02-24 16:18:49 +01:00
Sarah Hoffmann
f74228830d
bdd: run full import on tests
...
This uncovered a couple of outdated/wrong tests which have been
fixed, too.
2022-02-24 14:27:51 +01:00
Sarah Hoffmann
4b28b4fed4
adapt BDD tests for new interpolation style
2022-01-27 11:14:55 +01:00
Sarah Hoffmann
6d7c067461
force update on rank30 children when place name changes
...
Name changes may have an effect on parenting. Don't update
surrounding rank30 objects with addr:place tags as this is
potentially too expensive.
2021-09-27 11:04:17 +02:00
Sarah Hoffmann
316205e455
force update of surrounding houses when street name changes
...
When the street changes its name then this may cause changes
in the parenting of rank-30 objects with an addr:street
tag.
Fixes #2242 .
2021-09-27 10:22:41 +02:00
Sarah Hoffmann
324b1b5575
bdd tests: do not query word table directly
...
The BDD tests cannot make assumptions about the structure of the
word table anymore because it depends on the tokenizer. Use more
abstract descriptions instead that ask for specific kinds of
tokens.
2021-07-28 11:31:47 +02:00
Sarah Hoffmann
e7b4fc70e7
make sure old data gets deleted on place type change
...
When changing from some other place type to place=postcode
make sure that the old place type entry in the place table
is deleted.
2021-06-18 10:58:41 +02:00
Sarah Hoffmann
457982e1d2
update postcode in place if it already exists
2021-06-18 00:28:52 +02:00
Sarah Hoffmann
3aac51c81f
switch BDD tests to always use search API
2021-06-06 15:27:52 +02:00
Sarah Hoffmann
b2ebf4b4b7
adapt tests to rank changes of natural
2020-11-02 11:42:10 +01:00
Sarah Hoffmann
a8dfbcef44
always bind addr:place to place instead of street
...
If an addr:place is given but no addr:street tag, then bind
the rank 30 object always to a <=25 object, even when there
is none found with the same name.
2020-09-21 10:15:14 +02:00
Sarah Hoffmann
b6078de6f8
adapt tests to ranking changes
2020-09-01 18:03:17 +02:00
Sarah Hoffmann
6e4b7eb966
do not block deletion of large highway areas
...
Deletion of areas should only e blocked for addressable features.
Streets and POIs do not have a large impact on updates.
2020-08-28 09:49:21 +02:00
Sarah Hoffmann
e21a707166
remove linked_place from extratags when updating
...
Before updating an admin boundary we need to make sure that any
artificially generated 'linked_place' entry is removed from the
extratags column. This ensures that the place designation does
not linger when a linked place disappears and that it is updated
when the linking changes.
2020-08-13 16:59:11 +02:00
Sarah Hoffmann
00ca493f33
move linked place type into linked_place extratags
...
Using linked_place means that we don't overwrite any
place tags on the boundary. This is important when we
wanto to use the information for linking.
2020-02-28 15:22:48 +01:00
Sarah Hoffmann
2bbe5017d4
use bbox of geometry when searching for attached streets
...
As we are doing a distance search, this improves results for
large places like airports.
Fixes #1442 .
2019-07-28 13:28:27 +02:00
Sarah Hoffmann
4c1793b4e3
recreate interpolations when one of their support nodes changes
...
A simple update is not enough because the interpolation splits
might change as well as the housenumbers.
Fixes #1360 .
2019-07-03 23:15:54 +02:00
Sarah Hoffmann
cc17aa8d6b
Remove postcodes also from word table when they no longer exist
...
Also adds tests for postcode updates.
Fixes #1273 .
2019-01-04 23:11:47 +01:00
Sarah Hoffmann
e10d11c6c7
Make rank assignments configurable
...
The initial search and address rank is saved in a table
that is set up from a json configuration file. Ranks may
be assigned on a country level according to class and
type of the object. Special handling that depends on the
geometry or OSM type is still hard-coded in placex insert.
The new default config file mimicks the current assignment
as close as possible. A couple of exceptions have been
removed, most notably the exception for Irish townlands.
2018-11-24 16:21:16 +01:00
Sarah Hoffmann
c3483747eb
reimport boundaries from scratch when type is changed
...
Fixes #895 .
2018-02-12 21:19:27 +01:00
Sarah Hoffmann
a44377c7b0
fix postcode-related tests
2017-08-19 19:37:06 +02:00
Sarah Hoffmann
5a5691b5b7
force update of linker when linkee is updates
...
Potential name changes need to be added to the linker's
name hstore.
Fixes #170 .
2017-06-06 23:46:44 +02:00
Sarah Hoffmann
623d58b67e
Remove boundries when downgrading from polygon to line
...
Fixes #135 .
2017-06-06 21:59:36 +02:00
Sarah Hoffmann
41afcaddd5
adapt more BDD tests to hstore
2017-04-08 19:58:09 +02:00
Sarah Hoffmann
e5c79a1d1f
add more interpolation update scenarios (currently failing)
2017-02-26 16:46:41 +01:00
Sarah Hoffmann
3a787df934
add remaining reverse tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
21a3fc4b0f
add remaining db update tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
0e9e2bbdca
add tests for updating linked features
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
4f2d73aa7c
add tests for interpolation updates
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
c20f8b13a5
add simple db update tests
2016-12-30 22:58:58 +01:00