Just curious for Canada -

If I take a picture of a structure from a sidewalk I believe I can sell this photo without restriction?

BUT....

What happens if I'm on the property of the structure?

I have no particular example to offer... so let's say I walk on the property of a church and take pictures of it.... do I have the same rights to sell without restriction?