Sarah Hoffmann
79bbdfd55c
Merge pull request #3975 from kad-link/fix/utf8-encoding-clean
...
Fix: Enforce explicit UTF-8 encoding in file I/O
2026-02-10 09:32:06 +01:00
Sri CHaRan
f84b279540
fix: add utf-8 encoding in read-write files
2026-02-10 00:38:40 +05:30
remo-lab
ae7301921a
Fix SQL injection in truncate_data_tables
...
Signed-off-by: remo-lab <remopanda7@gmail.com >
2026-02-05 17:04:10 +05:30
Sarah Hoffmann
cc9c8963f3
Merge pull request #3949 from Itz-Agasta/try
...
Feat: Add admin function for granting access to read-only user
2026-02-02 09:53:24 +01:00
Itz-Agasta
45972811e3
Preserve import error tables during freeze
...
- Remove 'import_polygon_%' from UPDATE_TABLES to keep import_polygon_error
and import_polygon_delete tables in frozen databases.
- These tables contain permanent import error tracking data and should not
be deleted during freeze. The ro-access grant system expects them to exist
in all database states.
2026-01-31 22:50:18 +05:30
Itz-Agasta
e021f558bf
Restore grants for dynamic tables in tokenizer, migration, and tiger import
2026-01-30 20:43:57 +05:30
AmmarYasser455
fcc5ce3f92
docs: fix multiple typos in documentation and source code
2026-01-30 12:13:23 +02:00
Itz-Agasta
bf0ee6685b
Grants read-only access after import
...
Adds execution of grant statements to provide read-only privileges
for the web user following table creation or via a dedicated function.
Facilitates easier post-import permission management.
2026-01-27 17:53:25 +05:30
Itz-Agasta
ff1f1b06d9
Moves db grant statements to dedicated script
...
Centralizes all read-only access grants into a single SQL script, ensuring permissions are managed in one place.
2026-01-27 17:49:51 +05:30
Sarah Hoffmann
cc96912580
Merge pull request #3906 from AyushDharDubey/fix/issue_2463-Use-search_name-table-for-TIGER-data-imports-on-'dropped'-databases
...
Use `search_name` as fallback for TIGER imports when update tables are dropped
2026-01-23 20:52:40 +01:00
Ayush Dhar Dubey
2698382552
permit import of tiger after freeze
2026-01-09 17:35:01 +05:30
Sarah Hoffmann
2e2ce2c979
fix version counts
2026-01-01 14:42:12 +01:00
Sarah Hoffmann
99643aa0e9
ignore postcode areas in countries without postcodes properly
2026-01-01 11:21:40 +01:00
Sarah Hoffmann
c05b8f241c
make sure we use exactly the same table structure as osm2pgsql
2025-12-31 00:21:27 +01:00
Sarah Hoffmann
da94d7eea3
need an analyse after the migration
2025-12-30 19:49:07 +01:00
Sarah Hoffmann
f9864b7ec7
grant access right to www user for new postcode table
2025-12-30 17:48:33 +01:00
Sarah Hoffmann
42d139a5d0
analyze postcode table during import
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
f2110e12d6
simplify postcode area for lookups
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
deb6654cfd
add migration for new postcode table
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
d1cb578535
rework postcode computation
...
Now adds areas to location_postcodes, ignores postcode points
inside areas and supports customizable extents.
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
89821d01e0
reorganise layout of location_postcode table
...
Also renames the table as this will make it easier to migrate.
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
7ef3f99fa4
drop new place sub-tables on freezing
2025-12-30 15:20:46 +01:00
Ayush Dhar Dubey
49454048c4
use mwparserfromhell to parse SP wiki page reliably
2025-12-08 11:01:14 +05:30
Sarah Hoffmann
cd1b1736a9
add migration for changed country token format
2025-12-01 13:10:18 +01:00
Sarah Hoffmann
e2330ff4c1
add migration for separate entrance table
2025-10-23 17:25:20 +02:00
Emily Love Watson
91e345f77f
Store entrance fields as columns on table
2025-08-29 10:26:29 -05:00
Emily Love Watson
823ad5d279
Update entrances schema
2025-08-29 10:26:29 -05:00
Emily Love Watson
048d571e46
Index and return entrance coordinates for indexed locations
2025-08-29 10:25:44 -05:00
Sarah Hoffmann
c2a311e69c
fix poscode update computation: use distance
2025-08-29 15:10:27 +02:00
marc tobias
9bad3b1e61
Better hint to user if database import didnt finish
2025-07-30 10:25:14 +02:00
Sarah Hoffmann
e1cef3de0a
remove unused code
2025-07-21 11:36:57 +02:00
Sarah Hoffmann
f43fec0d57
Merge pull request #3764 from lonvia/update-importance
...
'refresh --importance' also needs to refresh importances in search_name table
2025-06-27 10:02:18 +02:00
Sarah Hoffmann
678702ceb7
rewrite importances in search_name after updating in placex
2025-06-26 20:27:37 +02:00
Sarah Hoffmann
f9eb93c4ab
remove support for deprecated gazetteer osm2pgsql output
2025-06-25 23:09:08 +02:00
anqixxx
cf9b946eba
Added skip for when min =0
2025-06-05 09:25:14 +08:00
anqixxx
7dc3924a3c
Added default min = 0 argument for private functions
...
empty
2025-06-04 01:12:36 -07:00
anqixxx
20cf4b56b9
Refactored min and associated tests to follow greater than or equal to logic, so that min=0 accounted for no filtering
...
r
2025-06-04 00:53:52 -07:00
anqixxx
40d5b78eb8
Added command line (default 0) min argument for minimum filtering, updated args.py to reflect this
2025-06-04 00:53:52 -07:00
anqixxx
6220bde2d6
Added mypy ignore fix for logging.py (library change), as well as quick mac fix on mem.cached
2025-05-21 11:11:56 -07:00
anqixxx
618fbc63d7
Added testing to test get classtype pairs in import special phrases
2025-05-21 10:39:51 -07:00
anqixxx
3f51cb3fd1
Made the limit configurable with an optional argument, updating the testing as well to reflect this. default is now 0, meaning that it will return everything that occurs more than once. Removed mock database test, and got rid of fetch all. Rebased all tests to monkeypatch
2025-05-21 10:38:34 -07:00
anqixxx
59a947c5f5
Removed class type pair getter that used style sheets from both spi_importer and the associated testing function
2025-05-21 10:38:08 -07:00
anqixxx
1952290359
Removed magic mocking, using monkeypatch instead, and using a placex table to simulate a 'real database'
2025-05-21 10:37:42 -07:00
anqixxx
1a323165f9
Filter special phrases by style and frequency to fix #235
2025-05-21 10:36:46 -07:00
Sarah Hoffmann
97d9e3c548
allow updating postcodes without a project directory
...
Postcodes will then be updated without looking for external postcodes.
2025-04-09 20:04:01 +02:00
Sarah Hoffmann
f5755a7a82
remove code for setting osm2pgsql via config.lib_dir
...
With the internal osm2pgsql gone, configuration of the binary location
via settings is the only option left that makes sense.
2025-03-11 09:04:05 +01:00
Miroslav Šedivý
6ff51712fe
Simplify int/float manipulation
2025-03-06 19:26:56 +01:00
Sarah Hoffmann
eeb3d5dd0a
make nominatim callable with themepark style
2024-12-16 10:26:55 +01:00
Sarah Hoffmann
98c1b923fc
remove code only needed for older PostgreSQL/PostGIS versions
2024-11-18 10:11:09 +01:00
Sarah Hoffmann
122ecd4626
remove remaining pylint hints
2024-11-10 22:49:29 +01:00