Some farmers in British Columbia are planning to cash in by switching their crops to cannabis. Others, however, are being blocked by their local governments.

Michael DeGiglio, CEO of Village Farms in Delta, B.C., has already converted some tomato greenhouses to a massive cannabis facility in anticipation of Canada-wide legalization on Oct. 17.

The main motivation is profit. 鈥淚f you track the price of vegetables ... the price has always gone down鈥 he said.

鈥淭he potential for profitability is much greater,鈥 he added.

Village Farms, which has permission to grow cannabis, expects to produce 75,000 kilograms of pot per year at one of its facilities.

The Union of B.C. Municipalities, the voice of local governments in the province, had asked for a moratorium on growing cannabis on agricultural land but the provincial NDP government opted to leave it up to municipalities.

Organic farmer Sheila Martin says she鈥檚 missing out. Martin鈥檚 municipality, Pitt Meadows, has banned cannabis cultivation over concerns that it will degrade farmland, reduce food security and compromise safety.

鈥淭hey鈥檙e inputting rules that have no basis on the quality of the crop or security,鈥 she said.

Bhupinder Dhiman, from the Richmond Farmers Association, is fighting on behalf of farmers who are considering taking municipalities like the City of Richmond to court over local bans.

鈥淚f it鈥檚 a legalized product then we should be able to grow it if we choose to do so,鈥 he said.

With a report from CTV Vancouver Bureau Chief Melanie Nagy