Distance mapping applied to four well-known planetary nebulae and a nova shell