add a "preserve polygons" option to the generic import script #52

Closed
mhl opened this Issue Jan 14, 2013 · 0 comments

1 participant

@mhl
mySociety member

The generic import script (mapit_import.py) by default will look for an existing area with the same name and, if it finds one, will replace the polygons associated with that area.

It would be useful if there were an option (--preserve) say, that does what mapit_global_import.py does, i.e. check whether the polygons are the same in the previous generation, and either extends the area's generational coverage or creates a new area accordingly.

@mhl mhl was assigned Jan 14, 2013
@mhl mhl added a commit that closed this issue Jan 15, 2013
@mhl mhl Add an option to create a new area if polygons have changed
The default behaviour of the generic import script, if it finds
an area with the same name / code in a previous generation, is
to replace the polygons associated with that area.

However, we may want alternative behaviour, where if a new
generation of data has a changed boundary for an area whose
name / code remains the same, we create a new area with those
polygons and preserve the previous one.  This commit introduces
that change with the --preserve option.

Fixes #52
e9a6859
@mhl mhl closed this in e9a6859 Jan 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment