-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Describe the bug
Data imports for administrative_2 completes without error
- However, some locations for Sarawak (tested for all points in Lundu district as a problem/issue) appear to be mapped to Johor.
- Secondly, CLI import appears to be successfully imported but there are less entries than the number in MapIT admin page. The
- imported data can be explored in MapIT Admin/Geometries listing and there are less geometries than expected.
- TLDR: known to affect Sarawak & Johor from random location testing and has same problem with Bug: DOSM Electoral state data import error - imported but missing from geometry list #7
To Reproduce
Steps to reproduce the behavior:
- Import administrative district boundary via CLI: administrative_2_district.geojson
python ../manage.py mapit_import \
--country_code MY \
--generation_id 1 \
--area_type_code administrative_2 \
--name_type_code district \
--name_field district \
--code_field code_district \
--code_type code_district \
--commit \
administrative_2_district.geojson
- Enter: 'DOSM Administrative boundary for District' when prompted Please give a description for area type code administrative_2:
Likewise for:
Please give a description for name type code district: code district
Please give a description for code type code_district: code_district
- Output:
...
INFO:mapit_import: looking at 'Sarawak' (1)
INFO:mapit_import: looking at 'Sarawak' (2)
INFO:mapit_import: looking at 'Sarawak' (3)
INFO:mapit_import: looking at 'Sarawak' (4)
INFO:mapit_import: looking at 'Sarawak' (5)
INFO:mapit_import: looking at 'Sarawak' (6)
INFO:mapit_import: looking at 'Sarawak' (7)
INFO:mapit_import: looking at 'Sarawak' (8)
INFO:mapit_import: looking at 'Sarawak' (9)
INFO:mapit_import: looking at 'Sarawak' (10)
INFO:mapit_import: looking at 'Sarawak' (11)
INFO:mapit_import: looking at 'Sarawak' (12)
INFO:mapit_import: looking at 'Sarawak' (13)
INFO:mapit_import: looking at 'Sarawak' (14)
INFO:mapit_import: looking at 'Sarawak' (15)
INFO:mapit_import: looking at 'Sarawak' (16)
INFO:mapit_import: looking at 'Sarawak' (17)
INFO:mapit_import: looking at 'Sarawak' (18)
INFO:mapit_import: looking at 'Sarawak' (19)
INFO:mapit_import: looking at 'Sarawak' (20)
INFO:mapit_import: looking at 'Sarawak' (21)
INFO:mapit_import: looking at 'Sarawak' (22) INFO:mapit_import: looking at 'Sarawak' (23)
INFO:mapit_import: looking at 'Sarawak' (24)
INFO:mapit_import: looking at 'Sarawak' (25)
INFO:mapit_import: looking at 'Sarawak' (26)
INFO:mapit_import: looking at 'Sarawak' (27)
INFO:mapit_import: looking at 'Sarawak' (28)
INFO:mapit_import: looking at 'Sarawak' (29)
INFO:mapit_import: looking at 'Sarawak' (30)
INFO:mapit_import: looking at 'Sarawak' (31)
INFO:mapit_import: looking at 'Sarawak' (32)
INFO:mapit_import: looking at 'Sarawak' (33) INFO:mapit_import: looking at 'Sarawak' (34)
INFO:mapit_import: looking at 'Sarawak' (35)
INFO:mapit_import: looking at 'Sarawak' (36)
INFO:mapit_import: looking at 'Sarawak' (37)
INFO:mapit_import: looking at 'Sarawak' (38)
INFO:mapit_import: looking at 'Sarawak' (39)
INFO:mapit_import: looking at 'Sarawak' (40)
INFO:mapit_import: looking at 'W.P. Kuala Lumpur' (1)
INFO:mapit_import: looking at 'W.P. Labuan' (1)
INFO:mapit_import: looking at 'W.P. Putrajaya' (1)
- Continue to go through & explore the geometries in MapIT Admin/Geometries listing focusing on administrative_2 for Johor & Sarawak. Some are correctly imported, some are not
Expected behavior
- Error message appears if Import did not import correctly
- Lundu district locations are mapped to Sarawak geometric points
- Other locations should not appear in administrative_2 Johor related geometry
- Administrative_2 geometry for each state should have same no of entries as imports as per geojson file
Desktop (please complete the following information):
- OS: Linux
- Browser: Chromium
Additional context
-
For the district file, there are almost 40 entries but only 4 entries were visible in the admin/geometries page

-
It is observed in mapit UI - geometry page that some of the later johor locations are mapped onto Sarawak & other states too (Ie: MapIT shows location within Lundu as Johor)
-
This issue, was split from Bug: DOSM Administrative state data import error when importing Sarawak for administrative_1 file #6 as fixed geojson for State showed import data was working fine