Preheat the oven to 425°F and move the rack to the lower third.
Toss the sliced apples with the lemon juice, then add the sugar, flour, cinnamon and nutmeg and stir to coat.
Roll one disk of dough into a 12- to 14-inch circle and line a 9-inch pie dish.
Pack the filling into the crust in layers, mounding the centre slightly. Dot with the diced butter.
Roll the second disk into an 11-inch circle and place it on top, or arrange as a lattice. Trim, tuck and crimp the edges. Cut slits if using a solid top.
Brush with beaten egg and sprinkle with coarse sugar. Place on a rimmed baking sheet.
Bake at 425°F for 20 minutes, then reduce to 375°F and bake 50 minutes to 1 hour until deep golden and bubbly.
Cool completely on a wire rack, about 4 hours, before slicing.