OPINION
This is аn appeal from an adverse judgment by the District Court of Curry County in which the court had granted an alternative writ of mandamus but refused to issue a permanent writ after hеaring.
The cause involves the swine ordinances of the City of Clovis. Petitioner maintains his mobile home residence in an addition located within the stockyards arеa, classified for zoning purposes as the “J Zone” in the City of Clovis. Petitioner’s residence was permitted as a variance issued by the City of Clovis in 1977. On March 15, 1979, petitiоner filed for a writ of mandamus against the City of Clovis and the members of the City Commission requesting the court to order said parties to enforce the swine ordinancеs of the City of Clovis and prevent neighbors from maintaining swine within 300 feet of petitioner’s residence.
Petitioner contends that maintaining the swine is prohibited by the ordinanсes of the City of Clovis, particularly Ordinance No. 1006, adopted December 13, 1973. This ordinance prohibits the keeping of swine within the corporate limits of the City of Clovis and amends prior ordinances affecting the “J Zone.” Subsequently, on December 6, 1975, the City of Clovis adopted Ordinance No. 1044, prohibiting swine in all zones except the “J Zone.” In the “J Zone,” swine were permitted but not within 300 feet of any residence.
Petitioner requested the City of Clovis to enforce its ordinance and to prohibit keeping of swine within the 300-foot area. The City refused to grant the petition on the ground that the neighbors had established a nonconforming use prior to the adoption of Ordinance No. 1006, and could therefor continue to maintain swine in the “J Zone” without being restricted to the 300-foot area.
The facts in this case are somewhat complicated. A chronology of events is helpful in determining the issues presented in this appeal:
January 29, 1979: Petitioner requested the City to еnforce Ordinance No. 1044.
March 15,1979: Petition for writ of mandamus was filed in the District Court.
March 29, 1979: A new ordinance was proposed by the City to remove the 300-foot restriсtion provided for by Ordinance No. 1044.
April 19, 1979: The City of Clovis, by a vote of 4 to 2, passed Ordinance No. 1120-79, amending Section 4-19 of the Clovis City Code, which prohibited swine within 300 feet оf a neighboring residence in the “J Zone.” The new ordinance permits swine within 300 feet of a neighboring residence.
April 20, 1979: The District Court entered its order denying petitioner’s application for a permanent writ of mandamus.
There are four issues on appeal:
(1) Did the trial court err in refusing to apply an ordinance in existence at the time the present case was filed and pending, but which had been amended subsequent to the initiation of such proceeding?
(2) Did the trial court err in holding that the respondents need not enfоrce the ordinance since the adjoining owners were entitled to a nonconforming use exemption?
(3) Did the trial court err in concluding that under the circumstances presented to the court in this proceeding it would not be equitable to permit the petitioner to move into an area where swine are kеpt and then to complain of such land use, which was allegedly previously lawful ?
(4) Did the trial court err in concluding that petitioner had shown no clear legal duty tо enforce against the neighboring landowners the provisions of Section 4-19 * of the Clovis City Code?
With reference to Point (1), it is our opinion that a City cannot, by enacting an ordinanсe, affect or change what would be the result of a pending action before the City Council or Commission or the result of a pending case in court, based upon valid ordinances existing at the time of the application or suit. N.M.Const., Art. IV, §§ 24 and 34. See Marquez v. Wylie,
With referеnce to Point (2), we hold that the trial court erred. The trial court did not reach its final result on the basis of the new ordinance enacted by the City of Clovis. Rather, thе trial court rested its decision and final judgment on findings and conclusions, that prior to the time that Ordinance No. 1006 was enacted in 1973, there was no ordinance prоhibiting swine within 300 feet of a residence. The trial court reasoned that since there was no probative swine ordinance prior to 1973, persons could keеp swine within 300 feet of residences prior to that time and therefore neighbors in the area established a nonconforming use which was binding on petitioner.
A reviеw of the history of the swine ordinances, however, discloses that swine had been prohibited within the City limits of Clovis as early as May 3, 1915, by Ordinance No. 179. The ordinances of thе City of Clovis were codified on October 24, 1963, and the substance of Ordinance No. 179 became a part of the new Code as Section 4-19. Section 4-19, as enacted through codification, became the law and swine were prohibited anywhere within the City limits. Application of Dasburg,
With reference to Point (3), the trial court erred in concluding that under the circumstances presented to the court in this proceeding, it would not be equitable to permit petitioner to move into an area where swine are kept and then tо complain of such land use, which was allegedly previously lawful. There was no City ordinance, prior to Ordinance No. 1120-79 (enacted on April 19, 1979), which permitted kеeping swine within 300 feet of a residence. Absent a permissive ordinance, the land use made by the neighbors (keeping swine within 300 feet of a residence) was unlawful.
Evеn if the actions of appellant’s neighbors could be deemed a “nonconforming use,” the fact that they were unlawful from the beginning would prohibit their continuanсe. Clovis City Code, Appendix A, Art. XIII (Supp.1976).
With reference to Point (4), the trial court erred since there was a clear duty on the part of the City to enforce Sеction 4-19 (as amended by Ordinance No. 1044). Once petitioner showed that there was a valid ordinance in existence and that it was being violated, the duty cast upon the City became ministerial and subject to enforcement by mandamus. El Dorado at Santa Fe, Inc. v. Board of Cty. Com’rs.,
While respondent may not be precluded from enacting ordinances, this does not prohibit petitioner from seeking mandamus against enforcement where the remedies at law available to petitioner are inadequate. Montoya v. Blackhurst,
The trial court is reversed and the cause remanded with directions to issue the permanent writ of mandamus against respondents.
IT IS SO ORDERED.
Notes
Both ordinance Nos. 1006 and 1044 are amendments to Section 4-19 of the Clovis City Code. However, for purposes of clarity of amendment they will be referred to by ordinance number.
