]> git.openstreetmap.org Git - nominatim.git/log
nominatim.git
4 years agoMerge pull request #2087 from lonvia/only-one-link-per-node
Sarah Hoffmann [Wed, 2 Dec 2020 21:16:56 +0000 (22:16 +0100)]
Merge pull request #2087 from lonvia/only-one-link-per-node

Place nodes can only be linked once against boundaries

4 years agoMerge pull request #2088 from lonvia/update-osm2pgsql
Sarah Hoffmann [Wed, 2 Dec 2020 21:16:38 +0000 (22:16 +0100)]
Merge pull request #2088 from lonvia/update-osm2pgsql

update osm2pgsql

4 years agoupdate osm2pgsql
Sarah Hoffmann [Wed, 2 Dec 2020 17:27:18 +0000 (18:27 +0100)]
update osm2pgsql

Needs now an explicit switch to avoid propagating changes from
nodes to ways to relations.

4 years agoplace nodes can only be linked once against boundaries
Sarah Hoffmann [Wed, 2 Dec 2020 14:31:02 +0000 (15:31 +0100)]
place nodes can only be linked once against boundaries

If a place node is already linked against a boundary, it should not
be used for linking again. It is usually a sign of a mapping error,
when there are multiple boundary candidates. This change just avoids
inconsistent data in the database, it does not guarantee that the
linking is against the more correct boundary.

4 years agoalso add explicit cast for varchar
Sarah Hoffmann [Tue, 1 Dec 2020 21:15:51 +0000 (22:15 +0100)]
also add explicit cast for varchar

4 years agoMerge pull request #2085 from lonvia/add-address-rank-to-xml-output
Sarah Hoffmann [Tue, 1 Dec 2020 18:59:29 +0000 (19:59 +0100)]
Merge pull request #2085 from lonvia/add-address-rank-to-xml-output

add address rank to XML output

4 years agoMerge pull request #2084 from lonvia/fix-term-count
Sarah Hoffmann [Tue, 1 Dec 2020 18:59:07 +0000 (19:59 +0100)]
Merge pull request #2084 from lonvia/fix-term-count

fix use of term count in partial terms

4 years agoadd address rank to XML output
Sarah Hoffmann [Tue, 1 Dec 2020 16:54:53 +0000 (17:54 +0100)]
add address rank to XML output

The address rank is much more interesting than the search rank
these days because it tells something about the kind of object.

Reverse did have neither rank, so add both for consistency.

4 years agofix use of term count in partial terms
Sarah Hoffmann [Tue, 1 Dec 2020 16:21:01 +0000 (17:21 +0100)]
fix use of term count in partial terms

Term count for partial words is one less than the actual number
of words. Take that into account when adding to the search rank.

Fixes #2081.

4 years agoMerge pull request #2082 from lonvia/compute-address-on-the-fly-II
Sarah Hoffmann [Tue, 1 Dec 2020 15:41:31 +0000 (16:41 +0100)]
Merge pull request #2082 from lonvia/compute-address-on-the-fly-II

Compute address for POIs on the fly

4 years agonull entries need to be typed
Sarah Hoffmann [Tue, 1 Dec 2020 13:54:42 +0000 (14:54 +0100)]
null entries need to be typed

4 years agocompute address parts for rank 30 objects on the fly
Sarah Hoffmann [Tue, 1 Dec 2020 10:58:25 +0000 (11:58 +0100)]
compute address parts for rank 30 objects on the fly

Rank 30 objects usually use the address parts of their parent.
When the parent has address parts that are areas but not marked
as isaddress, then the parent might go through multiple administrative
areas. In that case recheck if the right area has been choosen
for the object in question instead of relying on isaddress.
Note that we really only have to do the recomputation in the
case of 'isarea = True and isaddress = False' which hopefully
keeps the number of additional geometric operations we have to do
to a minimum.

There is one more special case to be taken into account here: a
street may go through two administrative areas and a house along
that street is placed in one of the area while the addr:* tags
says it belongs to the other. In that case we must not switch
the isaddress to the one it is situated. To avoid that recheck
the address names against the name of the ara. That is not perfect
but should cover most cases.

Fixes #328.

4 years agocleanup get_addressdata
Sarah Hoffmann [Mon, 30 Nov 2020 21:54:36 +0000 (22:54 +0100)]
cleanup get_addressdata

Save location data in a ROW instead of using separate varaibles
for each value.

4 years agoMerge pull request #2080 from donalhunt/fix-Migration.md-typos
Sarah Hoffmann [Mon, 30 Nov 2020 15:21:35 +0000 (16:21 +0100)]
Merge pull request #2080 from donalhunt/fix-Migration.md-typos

Migration.md: fix typos, improve style consistency and readability.

4 years agoMigration.md: fix typos, improve style consistency and readability.
Donal Hunt [Mon, 30 Nov 2020 11:59:10 +0000 (11:59 +0000)]
Migration.md: fix typos, improve style consistency and readability.

4 years agoMerge pull request #2079 from lonvia/improve-progress-logging
Sarah Hoffmann [Mon, 30 Nov 2020 10:42:08 +0000 (11:42 +0100)]
Merge pull request #2079 from lonvia/improve-progress-logging

Improve progress logging during indexing

4 years agoimprove progress logging during indexing
Sarah Hoffmann [Mon, 30 Nov 2020 09:59:29 +0000 (10:59 +0100)]
improve progress logging during indexing

Wait for 2 seconds before logging the first progress, so that we
have numbers that are a bit more reliable statistically speaking.

Also provides an actual implementation for the log_interval
parameter and fixes some small style issues.

4 years agoMerge pull request #2077 from lonvia/optimize-large-rank-0-areas
Sarah Hoffmann [Thu, 26 Nov 2020 13:40:54 +0000 (14:40 +0100)]
Merge pull request #2077 from lonvia/optimize-large-rank-0-areas

Restrict size of features that get a full address search

4 years agoMerge pull request #2076 from lonvia/search-name-index-migration
Sarah Hoffmann [Thu, 26 Nov 2020 11:01:38 +0000 (12:01 +0100)]
Merge pull request #2076 from lonvia/search-name-index-migration

Docs: add migration for search_name_* tables

4 years agorestrict size of features that get a full address search
Sarah Hoffmann [Thu, 26 Nov 2020 10:53:58 +0000 (11:53 +0100)]
restrict size of features that get a full address search

It would be nice to always compute addresses for rank 0 objects
over the complete geometry, so that they can be found via all
the admin boundaries that they intersect. However, there are a
couple of extramely large boundaries in OSM (like timezones)
where this results in thousands of possible address candidates
that need to be checked. Fall back to getting the address of the
centroid for them.

4 years agodocs: add migration for search_name_* tables
Sarah Hoffmann [Thu, 26 Nov 2020 08:18:33 +0000 (09:18 +0100)]
docs: add migration for search_name_* tables

4 years agoMerge pull request #2075 from lonvia/filter-postcodes-from-location-area-large
Sarah Hoffmann [Wed, 25 Nov 2020 20:42:27 +0000 (21:42 +0100)]
Merge pull request #2075 from lonvia/filter-postcodes-from-location-area-large

Filter postcodes by search rank when adding to address list

4 years agofilter postcodes by search rank when adding to address list
Sarah Hoffmann [Wed, 25 Nov 2020 19:33:15 +0000 (20:33 +0100)]
filter postcodes by search rank when adding to address list

The post codes are the last part that does not fit the new
address ranking scheme. In particular, the search rank is still
relevant for choosing if a postcode should be included into
the address terms. Filter out irrelevant postcodes in
getNearFeatures() already, to avoid having to check for
geometry relation.

4 years agoMerge pull request #2074 from lonvia/add-housenumber-to-unknown-places
Sarah Hoffmann [Wed, 25 Nov 2020 15:57:09 +0000 (16:57 +0100)]
Merge pull request #2074 from lonvia/add-housenumber-to-unknown-places

Improve finding addresses that have their own search_name entry because of unknown addr:* parts

4 years agoMerge pull request #2073 from lonvia/multi-word-partial-terms-in-search-description
Sarah Hoffmann [Wed, 25 Nov 2020 15:57:00 +0000 (16:57 +0100)]
Merge pull request #2073 from lonvia/multi-word-partial-terms-in-search-description

Improve handling of multi-word partials in SearchDescription

4 years agomake phpcs happy
Sarah Hoffmann [Wed, 25 Nov 2020 15:14:31 +0000 (16:14 +0100)]
make phpcs happy

4 years agodo not use artificial housenumbers as names
Sarah Hoffmann [Wed, 25 Nov 2020 15:11:32 +0000 (16:11 +0100)]
do not use artificial housenumbers as names

If they are artificial they cannot have a search_name entry.

4 years agoimprove handling of multi-word partials in SearchDescription
Sarah Hoffmann [Wed, 25 Nov 2020 10:44:25 +0000 (11:44 +0100)]
improve handling of multi-word partials in SearchDescription

Multi-word partial terms had an undue advantage over separate partial
terms because they only need to pay the penalty once. This changes
the behaviour by setting the penalty according to the number of
words in the token. This should get rid of search interpretations
with low chance of matching.

This also fixes handling of exact term matching. We now match against
all exact terms of the query, not just a couple of them collected
while building the interpretations.

Also adds a penalty to very short postcodes.

4 years agoSearch housenumbers with unknown address parts by housenumber term
Sarah Hoffmann [Thu, 19 Nov 2020 11:06:53 +0000 (12:06 +0100)]
Search housenumbers with unknown address parts by housenumber term

House numbers need special handling because they may appear after
the street term. That means we canot just use them as the main name
for searches where the address has its own search term entries.
Doing this right now, we are able to find '40, Main St, Town' but not
'Main St 40, Town'.

This switches to using the housenumber token as the name term instead.
House number tokens can get special handling when building the search
query that covers the case where they come after the street.

The main disadvantage is that this once more increases the numbers
of possible search interpretation of which we have already too many.

no penalty for housenumber searches

4 years agoMerge pull request #2071 from lonvia/fix-more-ranks
Sarah Hoffmann [Tue, 24 Nov 2020 20:45:30 +0000 (21:45 +0100)]
Merge pull request #2071 from lonvia/fix-more-ranks

Search rank 30 must always go with address rank 30

4 years agoMerge pull request #2070 from lonvia/unlisted-places-to-rank-25
Sarah Hoffmann [Tue, 24 Nov 2020 20:45:16 +0000 (21:45 +0100)]
Merge pull request #2070 from lonvia/unlisted-places-to-rank-25

Move unlisted places to address rank 25

4 years agosearch rank 30 must always go with address rank 30
Sarah Hoffmann [Tue, 24 Nov 2020 16:13:24 +0000 (17:13 +0100)]
search rank 30 must always go with address rank 30

4 years agomove unlisted places to address rank 25
Sarah Hoffmann [Thu, 19 Nov 2020 17:42:45 +0000 (18:42 +0100)]
move unlisted places to address rank 25

Unlisted places are derived from addr:place and as such are
still places not streets.

4 years agoMerge pull request #2068 from lonvia/fix-reverse-only
Sarah Hoffmann [Tue, 24 Nov 2020 07:22:48 +0000 (08:22 +0100)]
Merge pull request #2068 from lonvia/fix-reverse-only

Do not create POI search terms in reverse-only mode

4 years agoTest --reverse-only with CI
Sarah Hoffmann [Mon, 23 Nov 2020 18:58:01 +0000 (19:58 +0100)]
Test --reverse-only with CI

4 years agodo not create POI search terms on reverse-only
Sarah Hoffmann [Mon, 23 Nov 2020 18:55:36 +0000 (19:55 +0100)]
do not create POI search terms on reverse-only

Fixes #2067.

4 years agoMerge pull request #2065 from rustycamper/patch-1
Sarah Hoffmann [Mon, 23 Nov 2020 08:55:29 +0000 (09:55 +0100)]
Merge pull request #2065 from rustycamper/patch-1

viewbox arguments are no longer accepter "in any order"

4 years agoviewbox arguments are no longer accepter "in any order"
Pietro [Mon, 23 Nov 2020 08:40:43 +0000 (10:40 +0200)]
viewbox arguments are no longer accepter "in any order"

Order should be longitude, then latitude

4 years agomake sure that admin levels in NL are kept in order
Sarah Hoffmann [Thu, 19 Nov 2020 08:44:02 +0000 (09:44 +0100)]
make sure that admin levels in NL are kept in order

4 years agoAdmin levels 8 and 10 of the Netherlands are municipal / city
Hendrik Morée [Wed, 18 Nov 2020 10:30:24 +0000 (11:30 +0100)]
Admin levels 8 and 10 of the Netherlands are municipal / city

4 years agoMerge pull request #2058 from lonvia/split-address-words
Sarah Hoffmann [Wed, 18 Nov 2020 07:58:17 +0000 (08:58 +0100)]
Merge pull request #2058 from lonvia/split-address-words

Split addr:* tags into words before adding to the search index

4 years agoMerge pull request #2059 from lonvia/include-parent-name-for-unknown-places
Sarah Hoffmann [Wed, 18 Nov 2020 07:58:03 +0000 (08:58 +0100)]
Merge pull request #2059 from lonvia/include-parent-name-for-unknown-places

POIs with unknown addr:place must add parent name to address

4 years agoPOIs with unknown addr:place must add parent name to address
Sarah Hoffmann [Tue, 17 Nov 2020 18:44:43 +0000 (19:44 +0100)]
POIs with unknown addr:place must add parent name to address

The previous behaviour was a left-over from a former version
where such POIs parented to the street. Now that they parent to
places, it should be included.

4 years agosplit addr: tags into words before adding to the search index
Sarah Hoffmann [Tue, 17 Nov 2020 17:03:33 +0000 (18:03 +0100)]
split addr: tags into words before adding to the search index

Address parts are only matched by single partial words. If
the addr: names are not split, then multi-word names cannot
be found.

4 years agoMerge pull request #2056 from lonvia/avoid-linking-postal-areas
Sarah Hoffmann [Tue, 17 Nov 2020 10:15:56 +0000 (11:15 +0100)]
Merge pull request #2056 from lonvia/avoid-linking-postal-areas

Disallow linking for postcode areas

4 years agodisallow linking for postcode areas
Sarah Hoffmann [Tue, 17 Nov 2020 09:53:26 +0000 (10:53 +0100)]
disallow linking for postcode areas

4 years agoMerge pull request #2054 from lonvia/display-addr-terms
Sarah Hoffmann [Mon, 16 Nov 2020 15:08:06 +0000 (16:08 +0100)]
Merge pull request #2054 from lonvia/display-addr-terms

Merge places into address lists referred to by addr:* tags but not computed by Nominatim

4 years agouse bool_or(ST_Intersects) instead of ST_Intersects(ST_Collect)
Sarah Hoffmann [Fri, 13 Nov 2020 20:34:29 +0000 (21:34 +0100)]
use bool_or(ST_Intersects) instead of ST_Intersects(ST_Collect)

ST_Intersects segfaults on geometry collections for certain versions
of Postgis 3.

4 years agofix typo
Sarah Hoffmann [Fri, 13 Nov 2020 20:31:54 +0000 (21:31 +0100)]
fix typo

4 years agoremove unused columns in search_name_* and use right index
Sarah Hoffmann [Fri, 13 Nov 2020 20:28:14 +0000 (21:28 +0100)]
remove unused columns in search_name_* and use right index

We only need the address rank these days, so get rid of
search rank. Also switch indexes to work on address rank.

4 years agomore tests for absense of additional addressline entries
Sarah Hoffmann [Wed, 11 Nov 2020 15:02:37 +0000 (16:02 +0100)]
more tests for absense of additional addressline entries

4 years agoget additional addresses for rank 30 objects
Sarah Hoffmann [Wed, 11 Nov 2020 10:52:14 +0000 (11:52 +0100)]
get additional addresses for rank 30 objects

get_addressdata() now also checks if the place itself has entries
in the place_addressline table and merges them into the results.

Also restrict checking for address tag places to cases where the
name cannot be found in the parent's address search terms. Looking
up all address tags is just too slow.

4 years agoget address terms from address tags for rank 30
Sarah Hoffmann [Tue, 10 Nov 2020 18:50:30 +0000 (19:50 +0100)]
get address terms from address tags for rank 30

For rank 30 objects add extra elements into the place_addressline
table.

4 years agoadd test for placex from addr tags
Sarah Hoffmann [Tue, 10 Nov 2020 15:00:19 +0000 (16:00 +0100)]
add test for placex from addr tags

4 years agolookup places for address tags for rank < 30
Sarah Hoffmann [Mon, 9 Nov 2020 11:03:37 +0000 (12:03 +0100)]
lookup places for address tags for rank < 30

While previously the content of addr:* tags was only added
to the list of address search keywords, we now really look up
the matching place. This has the advantage that we pull in all
potential translations from the place, just like all the other
address terms that are looked up by neighbourhood search.

If no place can be found for a given name, the content of the
addr:* tag is still added to the search keywords as before.

4 years agoMerge pull request #2055 from lonvia/fix-actions
Sarah Hoffmann [Mon, 16 Nov 2020 10:26:10 +0000 (11:26 +0100)]
Merge pull request #2055 from lonvia/fix-actions

Actions: update apt repo before installing software

4 years agoactions: update apt repo before installing software
Sarah Hoffmann [Mon, 16 Nov 2020 09:14:38 +0000 (10:14 +0100)]
actions: update apt repo before installing software

4 years agoMerge pull request #2046 from lonvia/less-parallel-ranking
Sarah Hoffmann [Fri, 6 Nov 2020 08:39:07 +0000 (09:39 +0100)]
Merge pull request #2046 from lonvia/less-parallel-ranking

Only index larger batches for rank 30

4 years agoonly index larger batches for rank 30
Sarah Hoffmann [Thu, 5 Nov 2020 21:10:30 +0000 (22:10 +0100)]
only index larger batches for rank 30

Fixes #2045.

4 years agoMerge pull request #2041 from lonvia/address-ranks-belgium
Sarah Hoffmann [Tue, 3 Nov 2020 15:23:35 +0000 (16:23 +0100)]
Merge pull request #2041 from lonvia/address-ranks-belgium

Adapt admin_levels for Belgium

4 years agoadapt admin_levels for Belgium
Sarah Hoffmann [Tue, 3 Nov 2020 09:46:52 +0000 (10:46 +0100)]
adapt admin_levels for Belgium

Fixes #272.

4 years agoMerge pull request #2038 from lonvia/addresses-for-large-areas
Sarah Hoffmann [Tue, 3 Nov 2020 07:49:01 +0000 (08:49 +0100)]
Merge pull request #2038 from lonvia/addresses-for-large-areas

Improve addresses for large areas

4 years agoMerge pull request #2039 from lonvia/migration-for-ui
Sarah Hoffmann [Tue, 3 Nov 2020 07:48:45 +0000 (08:48 +0100)]
Merge pull request #2039 from lonvia/migration-for-ui

Add  migration hints for UI removal and remove tests for icon attribute

4 years agoremove tests for icon attribute
Sarah Hoffmann [Mon, 2 Nov 2020 15:46:29 +0000 (16:46 +0100)]
remove tests for icon attribute

The icon attribute requires the CONST_MapIcon_URL to be present
which we cannot guarantee for the tests.

4 years agodocs: add migration hints for removed UI
Sarah Hoffmann [Mon, 2 Nov 2020 15:34:17 +0000 (16:34 +0100)]
docs: add migration hints for removed UI

4 years agouse different area estimates for large countries
Sarah Hoffmann [Mon, 2 Nov 2020 10:41:53 +0000 (11:41 +0100)]
use different area estimates for large countries

4 years agoadapt tests to rank changes of natural
Sarah Hoffmann [Sat, 31 Oct 2020 21:20:46 +0000 (22:20 +0100)]
adapt tests to rank changes of natural

4 years agoguess a base address level for address rank 0 objects
Sarah Hoffmann [Sun, 25 Oct 2020 21:19:43 +0000 (22:19 +0100)]
guess a base address level for address rank 0 objects

The guess is based on the area and mainly avoids odd
addresses for very large or small objects.

4 years agoelevate most natural feature to address rank 22
Sarah Hoffmann [Fri, 23 Oct 2020 10:58:13 +0000 (12:58 +0200)]
elevate most natural feature to address rank 22

Makes them be in par with landuse features.

4 years agoMerge pull request #2032 from lonvia/remove-ui
Sarah Hoffmann [Sun, 1 Nov 2020 14:12:12 +0000 (15:12 +0100)]
Merge pull request #2032 from lonvia/remove-ui

Remove HTML output

4 years agoMerge pull request #2035 from lonvia/add-index-to-multicountry-script
Sarah Hoffmann [Sun, 1 Nov 2020 14:11:02 +0000 (15:11 +0100)]
Merge pull request #2035 from lonvia/add-index-to-multicountry-script

docs: need to index after updating with a file

4 years agodocs: need to index after updating with a file
Sarah Hoffmann [Sat, 31 Oct 2020 21:53:08 +0000 (22:53 +0100)]
docs: need to index after updating with a file

Fixes #2031.

4 years agouse simpler recurse operator for overpass download
Sarah Hoffmann [Sat, 31 Oct 2020 20:33:48 +0000 (21:33 +0100)]
use simpler recurse operator for overpass download

Also fixes a typo in the OSM link.

4 years agomake phpcs happy
Sarah Hoffmann [Thu, 29 Oct 2020 10:36:16 +0000 (11:36 +0100)]
make phpcs happy

4 years agovagrant: setting website URL is not longer necessary
Sarah Hoffmann [Tue, 27 Oct 2020 20:37:46 +0000 (21:37 +0100)]
vagrant: setting website URL is not longer necessary

4 years agoremove now unused settings related to website
Sarah Hoffmann [Tue, 27 Oct 2020 20:29:35 +0000 (21:29 +0100)]
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.

4 years agoremove tests for HTML output
Sarah Hoffmann [Tue, 27 Oct 2020 10:24:25 +0000 (11:24 +0100)]
remove tests for HTML output

4 years agoremove HTML output and UI elements
Sarah Hoffmann [Tue, 27 Oct 2020 10:05:03 +0000 (11:05 +0100)]
remove HTML output and UI elements

4 years agoremove hierarchy endpoint
Sarah Hoffmann [Tue, 27 Oct 2020 09:38:08 +0000 (10:38 +0100)]
remove hierarchy endpoint

This endpoint was never maintained and most of the information
can be obtained via the details endpoint.

4 years agoMerge pull request #2030 from lonvia/improve-ci
Sarah Hoffmann [Wed, 28 Oct 2020 14:20:40 +0000 (15:20 +0100)]
Merge pull request #2030 from lonvia/improve-ci

Small improvements for github actions run

4 years agoaction: cache downloaded dependencies
Sarah Hoffmann [Wed, 28 Oct 2020 10:54:37 +0000 (11:54 +0100)]
action: cache downloaded dependencies

4 years agoMerge pull request #2027 from lonvia/remove-duplicate-admin-boundaries
Sarah Hoffmann [Wed, 28 Oct 2020 10:11:42 +0000 (11:11 +0100)]
Merge pull request #2027 from lonvia/remove-duplicate-admin-boundaries

Handle duplicated admin boundaries

4 years agoactions: tweak database settings
Sarah Hoffmann [Wed, 28 Oct 2020 10:10:14 +0000 (11:10 +0100)]
actions: tweak database settings

Disabling fsync and friends should speed up the CI run
significantly.

4 years agouse highest admin boundary for duplicated ones
Sarah Hoffmann [Mon, 26 Oct 2020 20:11:06 +0000 (21:11 +0100)]
use highest admin boundary for duplicated ones

4 years agodisable admin level 5 in Russia
Sarah Hoffmann [Mon, 26 Oct 2020 19:17:28 +0000 (20:17 +0100)]
disable admin level 5 in Russia

They either interfere with cities or refer to historical boundaries.

4 years agominor fixes for geometry compuation during boundary ranking
Sarah Hoffmann [Fri, 23 Oct 2020 08:43:57 +0000 (10:43 +0200)]
minor fixes for geometry compuation during boundary ranking

Go back to using centroid when determining if one admin level
is within another. There are cases where boundaries are slightly
misaligned due to mapping errors (not using the same ways in the
relations).

Only declare boundaries the same when they have the same wikidata
tag _and_ have exactly the same geometry. This works around tagging
errors with the wikidata tag, which happen because of automated
edits to the wikidata tag.

4 years agodetect and remove admin boundary duplicates
Sarah Hoffmann [Tue, 20 Oct 2020 21:26:44 +0000 (23:26 +0200)]
detect and remove admin boundary duplicates

The Polish community maps admin boundaries that span multiple
levels by duplicating the boundary relations. Detect this situation
by looking out for matching wikidata tags. The higher ranked
duplicates are then thrown out from the address pool by setting
their address rank to 0.

4 years agoMerge pull request #2029 from lonvia/master
Sarah Hoffmann [Wed, 28 Oct 2020 09:12:52 +0000 (10:12 +0100)]
Merge pull request #2029 from lonvia/master

Switch CI to github actions

4 years agoswitch CI badge to github actions
Sarah Hoffmann [Wed, 28 Oct 2020 09:11:22 +0000 (10:11 +0100)]
switch CI badge to github actions

4 years agoswitch CI to github acitons
Sarah Hoffmann [Tue, 27 Oct 2020 20:49:06 +0000 (21:49 +0100)]
switch CI to github acitons

4 years agoMerge pull request #2025 from lonvia/fix-secondary-importance-for-countries
Sarah Hoffmann [Thu, 22 Oct 2020 11:43:22 +0000 (13:43 +0200)]
Merge pull request #2025 from lonvia/fix-secondary-importance-for-countries

Improve secondary result ordering for administrative boundaries

4 years agoadjust secondary order when no addressimportance available
Sarah Hoffmann [Thu, 22 Oct 2020 08:20:16 +0000 (10:20 +0200)]
adjust secondary order when no addressimportance available

In cases of countries and remote places without an address
it is possible that 'addressimportance' comes back empty.
Adjust the 'foundorder' to the places importance instead
in such cases.

Fixes #2023.

4 years agoreadd boundary:administrative to class importance
Sarah Hoffmann [Thu, 22 Oct 2020 08:16:04 +0000 (10:16 +0200)]
readd boundary:administrative to class importance

4 years agoMerge pull request #2022 from lonvia/populate-rank-25
Sarah Hoffmann [Tue, 20 Oct 2020 21:26:18 +0000 (23:26 +0200)]
Merge pull request #2022 from lonvia/populate-rank-25

reorganize ranks of high-level place types

4 years agoreorganize ranks of high-level place types
Sarah Hoffmann [Tue, 20 Oct 2020 18:20:49 +0000 (20:20 +0200)]
reorganize ranks of high-level place types

Rank 25 is now available for places that should appear in addresses
but not when a street is present. Use this for som block-like
place types. Also document the particularity of rank 25.

subdevisions and allotments are now at the same level as landuse
which they are frequently used together with.

4 years agoMerge pull request #2019 from lonvia/find-pgconfig-inpostgresql-repo
Sarah Hoffmann [Tue, 20 Oct 2020 13:02:00 +0000 (15:02 +0200)]
Merge pull request #2019 from lonvia/find-pgconfig-inpostgresql-repo

Add support for finding pg_config in Postgresql repos

4 years agoadd support for finding pg_config in Postgresql repos
Sarah Hoffmann [Tue, 20 Oct 2020 09:39:00 +0000 (11:39 +0200)]
add support for finding pg_config in Postgresql repos

It uses the same PostgreSQL_ADDITIONAL_VERSIONS variable as
osm2pgsql so that setting that should be sufficient to make
it work.

4 years agoMerge pull request #2018 from lonvia/update-osm2pgsql
Sarah Hoffmann [Tue, 20 Oct 2020 09:33:36 +0000 (11:33 +0200)]
Merge pull request #2018 from lonvia/update-osm2pgsql

Update to latest osm2pgsql

4 years agoupdate to latest osm2pgsql
Sarah Hoffmann [Tue, 20 Oct 2020 09:08:07 +0000 (11:08 +0200)]
update to latest osm2pgsql

Important changes:

* fix disabling of JIT in Postgresql
* support for finding latests Postgresql from their repos
* no longer create nodes table with flatnodes

4 years agoadd explicit bbox contains check
Sarah Hoffmann [Mon, 19 Oct 2020 08:39:01 +0000 (10:39 +0200)]
add explicit bbox contains check

Now that the containment check uses ST_Relate, we need to add
a separate bbox contains check to ensure that Postgis does the
efficient check first. Note that we still cannot get rid of the
overlap(&&) check because then Postgis will use the wrong indexes.