You only need to obtain an Encroachment permit if removing the tree requires using any part of a public right-of-way, including the sidewalk, to have the tree removed.
A public right-of-way is defined as any street, road, highway, sidewalk, or easement that is owned, leased, or controlled by the City.