adg: add geometry handling to AdgDim