def erosion(mapfile, dilated):
ll = mappyfile.find(mapfile["<STR_LIT>"], "<STR_LIT:name>", "<STR_LIT>")<EOL>ll["<STR_LIT:status>"] = "<STR_LIT>"<EOL>pl = mappyfile.find(mapfile["<STR_LIT>"], "<STR_LIT:name>", "<STR_LIT>")<EOL>pl2 = deepcopy(pl)<EOL>pl2["<STR_LIT:name>"] = "<STR_LIT>"       <EOL>mapfile["<STR_LIT>"].append(pl2)<EOL>dilated = dilated.buffer(-<NUM_LIT>)<EOL>pl2["<STR_LIT>"][<NUM_LIT:0>]["<STR_LIT>"] = dilated.wkt<EOL>style = pl["<STR_LIT>"][<NUM_LIT:0>]["<STR_LIT>"][<NUM_LIT:0>]<EOL>style["<STR_LIT>"] = "<STR_LIT>"<EOL>style["<STR_LIT>"] = "<STR_LIT>"<EOL>
We will continue to work with the modified Mapfile
If we wanted to start from scratch we could simply reread it