working on edge calculation for geographic layers. Not done yet.