Fix pop calculation from RasterLayer.
Update example for latest code.