Sarah Hoffmann
6d4da5123c
CI: remove Ubuntu 18, no longer available on Actions
2023-11-17 16:13:36 +01:00
Sarah Hoffmann
037042f85b
fix parameter use for ST_Project
...
Before postgis 3.4 ST_Project required a geography as input and seemed
to have implicitly converted to geography. Since 3.4 geometry input
is supported but leads to a completely different result.
2023-11-17 14:28:52 +01:00
Sarah Hoffmann
1da2192fb0
adapt to newest version of mypy
2023-11-17 10:17:25 +01:00
Sarah Hoffmann
35a5424332
improve code to collect the PostGIS version
...
The SQL contained an unchecked string literal, which may in theory be
used to attack the database.
2023-11-17 10:12:34 +01:00
Sarah Hoffmann
1187d0ab9a
prepare 4.2.3 release
v4.2.3
2023-04-11 15:35:42 +02:00
Sarah Hoffmann
ffe32af531
fix a number of corner cases with interpolation splitting
...
Snapping a line to a point before splitting was meant to ensure
that the split point is really on the line. However, ST_Snap() does
not always behave well for this case. It may shorten the interpolation
line in some cases with the result that two points housenumbers
suddenly fall on the same point. It might also shorten the line down
to a single point which then makes ST_Split() crash.
Switch to a combination of ST_LineLocatePoint and ST_LineSubString
instead, which guarantees to keep the original geometry. Explicitly
handle the corner cases, where the split point falls on the beginning
or end of the line.
2023-04-11 15:29:42 +02:00
Sarah Hoffmann
5baa827b8a
use place_to_be_deleted when force deleting objects
2023-04-11 15:29:26 +02:00
Sarah Hoffmann
3a3475acce
flex style: reinstate postcode boundaries
...
Postcode boundaries don't have a name, so need to be imported
unconditionally.
2023-04-11 15:28:37 +02:00
Sarah Hoffmann
b17cdb5740
call osm2pgsql postprocessing flush_deleted_places() when adding data
2023-04-11 15:28:17 +02:00
Sarah Hoffmann
069f3f5dea
prepare release 4.2.2
v4.2.2
2023-03-22 18:16:01 +01:00
Sarah Hoffmann
18f912b29f
actions: restrict linting to newest version
2023-03-22 17:31:51 +01:00
Sarah Hoffmann
35e7e52501
adapt to new version of pylint
2023-03-22 16:00:53 +01:00
Sarah Hoffmann
067719481f
remove more tags from full style
...
The full style should only save the necessary tags needed for
processing.
2023-03-22 15:18:59 +01:00
Sarah Hoffmann
8b6540c989
fix handling of unused extra tags
...
The tags can only be moved to extra tags after the main tags have been
handled.
2023-03-22 11:48:31 +01:00
Sarah Hoffmann
325392310f
fix polygon simplification in reverse results
...
polygon_threshold has never really worked for reverse.
2023-03-22 11:46:41 +01:00
Sarah Hoffmann
0265d6dafc
restrict place rank inheritance to address items
...
Place tags must have no influence on street- or POI-level
objects.
2023-03-22 11:44:02 +01:00
Sarah Hoffmann
637ef30af1
actions: use token to avoid rate limiting
2023-03-22 11:41:32 +01:00
danil
45c184d45b
Main tag information added to geocodejson in reverse geocoding
2023-03-22 11:40:31 +01:00
Sarah Hoffmann
28770146f9
actions: force PHPUnit 9
...
PHPUnit 10 is incompatible with our tests. Not worth adapting anymore.
2023-03-22 11:39:55 +01:00
Sarah Hoffmann
a9444a06c5
docs: fix internal links
...
Fixes #2968 .
2023-03-22 11:38:54 +01:00
Sarah Hoffmann
d756e5f0e5
fix importance recalculation
...
The signature of the compute_importance() function has changed.
2023-03-22 11:37:07 +01:00
Sarah Hoffmann
fabe45f60a
remove comma as name separator
...
Commas are most of the time used as a part of a name, not to
separate multiple names.
See also #2950 .
2023-03-22 11:36:51 +01:00
Sarah Hoffmann
1de8bdaafe
exclude names ending in :wikipedia from indexing
...
The wikipedia prefix is used for referencing a wikipedia article
for the given tag, not the object, so not useful to search.
2023-03-22 10:56:34 +01:00
Sarah Hoffmann
000a70639f
fix typo in argument to details CLI command
...
Fixes #2951 .
2023-03-22 10:56:02 +01:00
Sarah Hoffmann
6eadf6797e
update Makefile in test directory
2023-03-22 10:55:35 +01:00
Sarah Hoffmann
40b061afd2
do not run osm2pgsql append with mutliple threads
...
As the updates modify the placex table, there may be deadlocks
when different objects want to forward modifications to the same
place (for example because they are both linked to it).
2023-03-22 10:53:35 +01:00
Sarah Hoffmann
eb3a6aa509
split query that deletes old objects from placex
...
placex only has partial indexes over OSM types, so the OSM type
needs to be hardcoded to ensure these indexes are used.
2023-03-22 10:51:56 +01:00
Sarah Hoffmann
9f7e6da971
minor adaptions for flex style
2023-03-22 10:50:08 +01:00
marc tobias
3729bdde7d
VAGRANT.md - replace local.php settings with .env
2023-03-22 10:48:42 +01:00
Sarah Hoffmann
f8df574b78
use canonical url for nominatim.org
2023-03-22 10:46:15 +01:00
Sarah Hoffmann
51f3485874
install new lua import scripts
2023-03-22 10:45:11 +01:00
Sarah Hoffmann
a0e107d57f
flez: add other default styles
2023-03-22 10:43:20 +01:00
Sarah Hoffmann
b6ae3f3f09
flex: hide compiled matchers
2023-03-22 10:42:38 +01:00
Sarah Hoffmann
4f1ddcd521
flex: switch to functions for substyles
...
This gives us a bit more flexibility about the implementation
in the future.
2023-03-22 10:42:09 +01:00
Sarah Hoffmann
34d629f677
explicit export for functions in flex-base
2023-03-22 10:41:51 +01:00
Sarah Hoffmann
bb613a1d85
flex: add combining clean function
2023-03-22 10:41:22 +01:00
Sarah Hoffmann
2fe0e0629a
flex: simplify name handling
2023-03-22 10:41:12 +01:00
Sarah Hoffmann
a0e4e123b1
flex: simplify address configuration
2023-03-22 10:40:59 +01:00
Sarah Hoffmann
92abae7850
update osm2pgsql (flex not building index)
2023-03-22 10:40:01 +01:00
Sarah Hoffmann
6fe3dc63f5
use grapheme_stripos instead of stripos in PHP code
...
The stripos() does not handle non-ASCII correctly.
2023-03-22 10:36:15 +01:00
Sarah Hoffmann
e2dcc9ebf8
do not assign postcodes to long linear features
...
This avoids a postcode in particular for waterway features and
long natural featues like ridges and valleys.
Fixes #2915 .
2023-03-22 10:35:13 +01:00
Frederik Ramm
9b233362c6
Fix typo in NOMINATIM_LOG_FILE ( #2919 )
...
* fix typo in docs (NOMINATIM_LOG_FILE uses s not ms)
2023-03-22 10:33:59 +01:00
Sarah Hoffmann
a727624b9e
add FAQ about finding bad postcodes
2023-03-22 10:33:22 +01:00
Sarah Hoffmann
3313369a39
contract duplicate spaces in transliteration string
...
There are some pathological cases where an isolated letter may
be deleted because it is in itself meaningless. If this happens in
the middle of a sentence, then the transliteration contains two
consecutive spaces. Add a final rule to fix this.
See #2909 .
2023-03-22 10:14:15 +01:00
Sarah Hoffmann
7d140970b7
prepare release 4.2.1
v4.2.1
2023-02-20 17:58:19 +01:00
Sarah Hoffmann
cfd631e99c
harmonize flags for PHP's htmlspecialchars
2023-02-20 17:54:38 +01:00
Sarah Hoffmann
3d39847e26
adapt PHP tests for debug output
2023-02-20 17:53:50 +01:00
Sarah Hoffmann
a664beb810
properly encode special HTML characters in debug mode
2023-02-20 17:53:48 +01:00
Sarah Hoffmann
04ee39467a
actions: install keys for postgres repo
v4.2.0
2022-11-24 14:04:05 +01:00
Sarah Hoffmann
1f3edf6eba
prepare release 4.2.0
2022-11-24 10:43:29 +01:00