OTOH, the practical realities of Starfleet life may well nullify such demands. If you enlisted, you waived your right to get buried.Several cultures may demand a burial on the person's home planet.
Kirk's giant ship could obviously afford to have not just an onboard cemetery (with miniature rolling hills and sycamores and whatnot) but the sacred temples of the fifty most popular religions as well (if only in swappable form, with inflatable holy men). Yet a lesser ship might well have no chance but phaser-cremate the corpses; even the carrying of dedicated burial shrouds for spacing them might be too much of a logistical strain.
(Now, Picard's ship could of course hold the better part of Arlington physically on Decks 6 through 8. But holodecks in that era would make it possible to give a decent burial even aboard a tiny cutter, including a ten-thousand-person parade across three states. It's just that the corpse would end up being phaser-cremated anyway, even if the holodeck made it look otherwise...)
Timo Saloniemi