Citizens for Responsible Choices (Citizens), a nonprofit corporation whose members object to a public improvement project that includes a recreational lake and public park, appeal from an order granting a motion to dismiss its claims for declaratory relief. The appellees are the City of Shenandoah and the City of Clarinda (the cities).
Citizens maintains that it has a valid claim for declaring the proposed project unlawful on three separate theories: (1) The proposed revenue bond financing of the project is in violation of Iowa Code chapter 384 (2003); (2) the project, as proposed, will be located closer than seventy miles to a border of the state in violation of Iowa Code section 461A.77; and (3) the proposed project is a misuse of a designated agricultural area contrary to Iowa Code section 352.6. The district court sustained the cities’ motion to dismiss these claims on both ripeness and standing grounds. After reviewing the record and considering the arguments presented, we affirm the judgment of the district court.
Citizens’ amended and substituted petition alleges the following facts. The cities propose to construct two projects: a water treatment plant and distribution system, and a recreational lake and public park. Land owned or rented by members of Citizens will be acquired by eminent domain for purposes of those projects. The cities propose to pay for the projects, including the recreational lake and public park portion thereof, through the issuance of revenue bonds financed by the users of municipal water utilities.
Citizens asserts in its petition that use of revenue bond financing for the recreational lake and public park is not authorized by Iowa Code section 384.80 and following sections in that chapter. That pleading also asserts that, because the proposed water recreational area will be closer than seventy miles to a border of the state, it would violate the provisions of Iowa Code section 461A.77. Finally, it is alleged that Iowa Code section 352.6 precludes the use of their members’ lands for nonagricultural purposes because those lands have been declared to be an agricultural area.
I. Alleged Procedural Irregularities.
Before discussing the merits of the district court’s ruling, Citizens complains of what it asserts were procedural irregularities therein.
A. Lack of court approval for amendment to petition. The first irregularity that is suggested is the fact that the cities had answered Citizens’ original peti *473 tion and filed no motions to assail that pleading. When Citizens thereafter filed and served a motion for leave to amend its petition, the cities filed a document stating “Defendants do not resist Plaintiffs’ Motion for Leave to Amend.” They then moved to dismiss the amended and substituted petition, although no ruling had yet been made by the court allowing the amendment. In fact, there is no such ruling anywhere in the record, and no amended petition was served and filed other than as an exhibit to the motion for leave to amend.
A hearing was held on the motion to dismiss the amended and substituted petition. Citizens made no objection to considering that motion on the ground that the amended petition had not been allowed by the court or that the amended petition had not been independently served and filed as such. We are satisfied that the amended petition was accepted by both parties and the court as if it had been substituted for the original petition. Consequently, Citizens has waived any right to now complain of a lack of a court order approving the amended petition.
B.
Failure to hold an eviden-tiary hearing.
Citizens urges that motions challenging the jurisdiction of the court require an evidentiary showing in support thereof. Based on this premise, it asserts that the district court improperly granted the cities’ motion on jurisdictional, ripeness, or standing grounds. In considering former rule of civil procedure 104(a), currently Iowa Rule of Civil Procedure 1.421(1), we recognized that “affidavits and other evidentiary showings” could be used in support of and in resistance to “preanswer jurisdictional challenges.”
Moyer v. City of Des Moines,
II. Ripeness.
One of the grounds on which the district court sustained the cities’ motion to dismiss was a determination that the case was not ripe for adjudication. The court ruled that it was not certain that the projects would take place. In challenging this conclusion, Citizens argues that its petition alleges these projects are well on their way, application for public funding has been made, and partial public financing has already been obtained. It urges that the mere designation of its members’ lands for inclusion in the project has caused them economic harm. The cities respond to these arguments by urging *474 that, as shown by Citizens’ own petition, many contingencies exist that might preclude fruition of these projects.
Iowa Rule of Civil Procedure 1.1102 provides:
Any person interested in an oral or written contract, or a will, or whose rights, status or other legal relations aré affected by any statute, municipal ordinance, rule, regulation, contract or franchise, may have any question of the construction or validity thereof or arising thereunder determined, and obtain a declaration of rights, status or legal relations thereunder.
In applying this rule, we have recognized that “[o]ne of the most troublesome questions in this field of law is, when does a justiciable controversy arise, as distinguished from a mere abstract question?”
Wesselink v. State Dep’t of Health,
The basic question is said to be whether the facts alleged show there is a substantial controversy between parties having adverse legal interests of sufficient immediacy and reality to warrant a declaratory judgment.
Katz Inv. Co. v. Lynch,
We search, then, for an “antagonistic assertion and denial of right” and, if found and other proper allegations appear, the court may then entertain the question of whether the plaintiffs’ claim is proper and justified.
Wesselink,
Citizens’ petition alleges that the cities have stated in an application to the state for financial assistance that $14,576,000 will be raised for the recreational lake project by the sale of revenue bonds. The petition further alleges that “the revenue bonds defendants [the cities] intend to sell will be paid for by their respective water utilities.” (Emphasis added.) The issuance of any revenue bonds would require a public hearing before the governing bodies of the cities at which residents of the cities or persons owning property therein could object to the proposal. Iowa Code § 384.83(2)(a). Thereafter, the governing bodies must “take additional action for the issuance of the bonds or abandon the proposal to issue bonds.” Id. We are convinced that for purposes of a declaratory judgment there is no justiciable controversy prior to the final decision of the governing bodies to issue the revenue bonds.
Citizens urges that it should not be required to await the public hearing and counsel vote before challenging the project because its members are not residents or property owners within the cities and thus are ineligible to file objections under section 384.83(2)(a). This circumstance does not alter the contingent status of the revenue-bond proposal, a circumstance that renders Citizens’ challenge premature and lacking in ripeness. 2
A similar conclusion as to lack of ripeness exists with respect to Citizens’ *475 attempt to obtain an adjudication that the proposed project would violate the provisions of Iowa Code section 461A.77 because it includes a proposed water recreational area that will be closer than seventy miles to a border of the state. Section 461A.77 is located among a group of statutes pertaining to the creation of water recreational areas by municipalities. The provision prohibiting the location of such projects within seventy miles of the border of another state refers to “water recreational areas ... established hereunder.” (Emphasis added.) We interpret this to mean it applies to water recreational areas established in accordance with Iowa Code section 461A.59 and other statutes contained in that division of the Code. It is clearly stated, however, in section 461A.78 that “[t]his division [of the Code] shall not be the exclusive method for establishing a water recreational area.” Nothing in Citizens’ petition asserts that steps have been undertaken by the cities to establish a water recreational area under sections 461A.59 and following. Unless and until that is done, we are convinced there is no justiciable controversy with regard to the applicability of section 461A.77.
III. Standing.
As an alternative to its adjudication based on lack of ripeness, the district court concluded that Citizens lacked standing to challenge the issuance of revenue bonds to finance this project. That ruling was premised on Citizens’ admission in its resistance to the motion to dismiss that none of its members were taxpayers or utilities customers of either of the appellee cities. 3 Citizens responds by contending that its members will be damaged by the project that the revenue bonds will make possible.
“ ‘Standing to sue’ has been defined to mean that a party must have ‘sufficient stake in an otherwise justiciable controversy to obtain judicial resolution of that controversy.’ ”
Birkhofer ex rel. Johannsen v. Brammeier,
Whether litigants have standing does not depend on the legal merit of their claims, but rather whether, if the wrong alleged produces a legally cognizable injury, they are among those who have sustained it.
Ioiua Civil Liberties Union v. Critelli
*476 IV. Uses Limited by Designated Agricultural Areas.
The district court’s decision contained no special mention of Citizens’ claims based on uses prohibited in a designated agricultural area by Iowa Code section 352.6. We are satisfied that Citizens’ claim based on that statute is not ripe for adjudication based on the same considerations that were discussed in Division II of this opinion. Moreover, because the cities urged in their motion to dismiss that this allegation fails to state a claim upon which relief may be granted, we observe that our decision in
In re Condemnation of Certain Rights,
We have considered all issues presented and conclude that the judgment of the district court should be affirmed.
AFFIRMED.
Notes
. Under rule 1.421(1), preanswer jurisdictional challenges include both lack of personal jurisdiction and lack of subject matter jurisdiction. While lack of ripeness or standing are technically not matters of subject matter jurisdiction, they are closely related doctrines. We have previously determined that the ripeness of a petition for declaratory judgment may be determined on a preanswer motion to dismiss.
Gospel Assembly Church
v.
Iowa Dep’t of Revenue,
. The case of
Comes v. City of Atlantic,
. This admission was made for purposes of avoiding the cities' claim that Citizens had failed to exhaust an administrative remedy available with respect to the issuance of the revenue bonds. That remedy is only available to residents of the cities and persons owning property therein.
