Especially given San Francisco’s growing association with exclusivity, insularity and pointless accumulation of wealth, officials should think better of a plan to soak out-of-towners visiting some of the city’s best-known tourist attractions.

A Recreation and Park Commission committee voted last week to institute “flexible pricing” at Coit Tower and three Golden Gate Park destinations: the Japanese Tea Garden, San Francisco Botanical Garden and Conservatory of Flowers. If approved by the full commission and the Board of Supervisors, the policy would punish nonresidents for the transgression of visiting the sites at peak hours by charging them up to 50 percent more for the privilege.

This price-gouging scheme advanced, as it happens, the day the state Assembly endorsed a crooked effort to monetize another popular public asset. The chamber passed legislation by Assemblyman Phil Ting, D-San Francisco, that would enable officials to charge tourists as much as 10 bucks to drive down famously tortuous Lombard Street.

The new park pricing was pitched as part of a “financial justice” program that would allow the sites to offer free admission to low-income San Franciscans. Breaks for city residents in need are a fine idea, but San Francisco is doing more than enough to overcharge and alienate the tourists it depends on.

Over 25 million visitors contributed an estimated $10 billion to San Francisco’s economy last year, along with $771 million in taxes and fees to the city government. But tourism officials say the boon is threatened by high prices and pervasive squalor, which has reportedly driven one regular convention to seek accommodations elsewhere.

Locally based tech taxis Uber and Lyft have certainly shaped San Francisco, but officials need not go so far as to apply their “surge pricing” model to beloved public works. A city that relies on tourists should occasionally strive to treat them accordingly.

This commentary is from The Chronicle’s editorial board. We invite you to express your views in a letter to the editor. Please submit your letter via our online form: SFChronicle.com/letters.