Finished watershed to shape code.