New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An import script for official boundaries for Argentina #188
Conversation
Hi, I have tried to run it in a newly configured mapit instance and this is the output:
Ok, I got it, I needed to run |
Second error |
You'll need to run:
... before running the import command. |
DoesNotExist: Country matching query does not exist. Lookup parameters were {'code': 'AR'} |
Have you made a local change to the script? That error suggests that it's looking up the wrong country code - it should just be 'A', from this line: https://github.com/mysociety/mapit/pull/188/files#diff-4600dcc4127462d41cfed68b9cd76ea0R68 And the country with that code is created from here in the fixture: https://github.com/mysociety/mapit/blob/argentina/mapit_ar/fixtures/argentina.json#L2 |
f8a2f78
to
bcb87c5
Compare
This is still work-in-progress because: - There's no area for the department of Lezama in the official department shapefiles that we've imported into MapIt. - The polygons should probably be simplified slightly before being saved - at least, the polygons are simplified away to nothing with reasonable settings of simplify_tolerance, which I suspect is related to this.
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
=======================================
Coverage 62.14% 62.14%
=======================================
Files 38 38
Lines 2140 2140
=======================================
Hits 1330 1330
Misses 810 810 Continue to review full report at Codecov.
|
21f5add
to
8547a77
Compare
Very out of date, don't think needed any longer; could be in own repo. |
No description provided.