Suppose a person is walking in a park and gets stopped by park staff, who claim that the person is trespassing (or is doing something else illegal). The person then gets into the driver seat of their car to keep warm but does not drive away (for whatever reason--maybe staff refuse to open the exit gate to let the car through or maybe the person was invited onto the property and was never asked to leave). The person leaves the car off. Police arrive and ask the person for a driver license. The police are not citing or arresting the person and are not investigating a traffic infraction. Does this person have to provide driver license? Does it matter if the car is on? 

Assume this is in the USA, and assume it is in a state without a general requirement to provide an ID. If it helps, assume it is New York.

Edit: the New York assumption made the question fairly uninteresting.