Drop last row from geometry
Better inputs