Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5531365B2 - Falling water line editing program and falling water line editing device - Google Patents
[go: Go Back, main page]

JP5531365B2 - Falling water line editing program and falling water line editing device - Google Patents

Falling water line editing program and falling water line editing device Download PDF

Info

Publication number
JP5531365B2
JP5531365B2 JP2010175409A JP2010175409A JP5531365B2 JP 5531365 B2 JP5531365 B2 JP 5531365B2 JP 2010175409 A JP2010175409 A JP 2010175409A JP 2010175409 A JP2010175409 A JP 2010175409A JP 5531365 B2 JP5531365 B2 JP 5531365B2
Authority
JP
Japan
Prior art keywords
cell
line
waterfall
falling water
falling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010175409A
Other languages
Japanese (ja)
Other versions
JP2012037608A (en
Inventor
悟史 山口
務 池田
成仁 山保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Power Solutions Co Ltd
Original Assignee
Hitachi Power Solutions Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Power Solutions Co Ltd filed Critical Hitachi Power Solutions Co Ltd
Priority to JP2010175409A priority Critical patent/JP5531365B2/en
Publication of JP2012037608A publication Critical patent/JP2012037608A/en
Application granted granted Critical
Publication of JP5531365B2 publication Critical patent/JP5531365B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Instructional Devices (AREA)
  • Processing Or Creating Images (AREA)

Description

本発明は、コンピュータを使って流域情報を編集する方法に関する。本発明は特に、数値地形モデル(digital elevation mode, DEM)に基づいてコンピュータプログラムによって作成した落水線を編集する方法に関する。   The present invention relates to a method for editing basin information using a computer. In particular, the present invention relates to a method for editing a waterfall line created by a computer program based on a digital elevation model (digital elevation mode, DEM).

落水線(channel network)は、水文学の基本的なデータの一種である。落水線は地表面の水が流れる方向を示す有向線分である。より正確には、水文学の対象とする時空間スケールにおける表流水の流向を示すデータであり、地図では有向線分として表現されることが多い。落水線を用いれば、流域を容易に求めることができる。ある地点の流域を求めるには、その地点から落水線を逆に(すなわち上流方向に)たどればよい。また、分布型流出モデル(流域における水の流れを再現する物理モデル)に必要な流向と勾配は、落水線に沿った地表面標高の勾配として容易に算出できる。このように落水線は水文学の調査研究において、広く使われるデータである。   The channel network is a kind of basic data in hydrology. The falling water line is a directed line segment indicating the direction in which water on the ground surface flows. More precisely, it is data indicating the flow direction of surface water on a spatio-temporal scale that is the subject of hydrology, and is often expressed as a directed line segment on a map. If the falling water line is used, the basin can be easily obtained. In order to find the basin of a certain point, it is only necessary to follow the falling water line from that point in reverse (that is, in the upstream direction). Moreover, the flow direction and gradient required for the distributed runoff model (physical model that reproduces the water flow in the basin) can be easily calculated as the gradient of the ground surface elevation along the falling water line. In this way, the waterfall line is data widely used in hydrological research.

落水線は、コンピュータプログラム(落水線作成プログラム)によって作成されることが多い。落水線作成プログラムの入力データは地表面の標高データである。これは、水文学的な時空間スケールにおいて、水の流向は地表面の最も急な下り勾配方向(最急勾配方向)と一致するという経験的知識を利用するためである。主要な落水線作成プログラムの比較、およびそれらの処理手順は、非特許文献1に詳しい。   The waterfall line is often created by a computer program (waterfall line creation program). The input data of the falling water line creation program is the elevation data of the ground surface. This is to utilize empirical knowledge that, on a hydrological spatio-temporal scale, the water flow direction coincides with the steepest descent direction of the ground surface (the steepest gradient direction). Non-Patent Document 1 provides a detailed comparison of major waterfall line creation programs and their processing procedures.

落水線の表現方法は一意ではない。たとえば、落水線の方向、すなわち地表面の最急勾配方向を0以上360未満の角度で表す方法(非特許文献1)が考えられる。しかし、現在最も広く使われている方法(D8 Methodと呼ばれる)はそれとは異なり、落水線の方向が8方向のみで表現される(非特許文献2、非特許文献3)。D8 methodでは、セル(cell)と呼ばれる矩形の小領域の集合で地表面を表現する。この実装では、入力データとして利用する地表面の標高データが、DEM(Digital Elevation Model)と呼ばれる表現形式をとる。DEMでは、セルごとに与えた標高値によって地表面の標高が表現される。また、あるセルを始点とする落水線は、1本かつ終点が隣接するセルとなるものに限定される。隣接するセルは8個あるので、この限定によって落水線は8方向のみとなる。このようにして作成された落水線が、水文学の調査研究で利用されている。たとえば特許文献1に開示された「全国合成レーダ雨量を用いた分布型流出予測システム」、特許文献2に開示された「洪水予測システム」が挙げられる。さらには、インターネットを介したクライアント・サーバシステムで流域分割を行う方法が提案されている(非特許文献4)。また、D8 methodと類似の方法によって8方向のみの落水線を生成する方法が特許文献3の「地下標高モデル作成方法、排水処理領域分割方法、排水処理能力評価方法および装置」に開示されている。   The method of expressing the falling water line is not unique. For example, a method of expressing the direction of the falling water line, that is, the steepest gradient direction of the ground surface with an angle of 0 or more and less than 360 (Non-Patent Document 1) is conceivable. However, the most widely used method (referred to as D8 Method) is different from that, and the direction of the falling water line is expressed only in 8 directions (Non-Patent Document 2 and Non-Patent Document 3). In the D8 method, the ground surface is expressed by a set of rectangular small areas called cells. In this implementation, the elevation data of the ground surface used as input data takes an expression form called DEM (Digital Elevation Model). In DEM, the altitude of the ground surface is expressed by the altitude value given for each cell. Moreover, the falling water line which makes a certain cell a starting point is limited to what becomes a cell which one end point adjoins. Since there are eight adjacent cells, this limitation results in only eight waterfall lines. The waterfall line created in this way is used in hydrological research. For example, a “distributed runoff prediction system using national synthetic radar rainfall” disclosed in Patent Document 1 and a “flood prediction system” disclosed in Patent Document 2 can be cited. Furthermore, a method for dividing a basin in a client / server system via the Internet has been proposed (Non-Patent Document 4). Further, a method for generating a waterfall line in only eight directions by a method similar to the D8 method is disclosed in “Patent Document 3 Method for Creating Underground Elevation Model, Method for Dividing Wastewater Treatment Area, Method for Evaluating Wastewater Treatment Capacity and Apparatus”. .

特開2009−8651号公報JP 2009-8651 A 特開2007−11582号公報JP 2007-11582 A 特開2007−204932号公報JP 2007-204932 A 特開2009−163621号公報JP 2009-163621 A

Tarboton, D. G.: A New Method for the Determination of Flow Directions and Upslope Areas in Grid Digital Elevation Models, Water Resources Research, Vol. 33, No. 2, pp. 309-319, 1997.Tarboton, D. G .: A New Method for the Determination of Flow Directions and Upslope Areas in Grid Digital Elevation Models, Water Resources Research, Vol. 33, No. 2, pp. 309-319, 1997. O'Callaghan, J. F., and D. M. Mark: The extraction of drainage networks from digital elevation data, Computer Vision, Graphics, and Image Processing, Vol. 28, No. 3, pp. 323-344, 1984.O'Callaghan, J. F., and D. M. Mark: The extraction of drainage networks from digital elevation data, Computer Vision, Graphics, and Image Processing, Vol. 28, No. 3, pp. 323-344, 1984. Jenson, S. K., and J. O. Domingue: Extracting topographic structure from digital elevation data for geographic information system analysis, Photogrammetric Engineering & Remote Sensing, Vol. 54, No. 11, pp. 1593-1600, 1988.Jenson, S. K., and J. O. Domingue: Extracting topographic structure from digital elevation data for geographic information system analysis, Photogrammetric Engineering & Remote Sensing, Vol. 54, No. 11, pp. 1593-1600, 1988. Choi, J. Y., and B. A. Engel: Real-Time watershed delineation system using Web-GIS, Journal of Computing in Civil Engineering, Vol. 17, No. 3, pp. 189-196, DOI: 10.1061/(ASCE)0887-3801(2003)17:3(189), 2003.Choi, JY, and BA Engel: Real-Time watershed delineation system using Web-GIS, Journal of Computing in Civil Engineering, Vol. 17, No. 3, pp. 189-196, DOI: 10.1061 / (ASCE) 0887-3801 (2003) 17: 3 (189), 2003. Kobayashi, K., K. Takara, Y. Tachikawa and T. Sayama, Analysis of the Yuragawa River Flood by Typhoon No. 23 in October 2004 using a distributed rainfall-runoff model, 京都大学防災研究所年報, No. 49 C, 2006.Kobayashi, K., K. Takara, Y. Tachikawa and T. Sayama, Analysis of the Yuragawa River Flood by Typhoon No. 23 in October 2004 using a distributed rainfall-runoff model, Kyoto University Disaster Prevention Research Institute Annual Report, No. 49 C , 2006. Yamazaki, D., T. Oki, and S. Kanae, Deriving a global river network map and its sub-grid topographic characteristics from a fine-resolution flow direction map, Hydrology and Earth System Sciences, Vol. 13, Issue 11, pp. 2241-2251, 2009.Yamazaki, D., T. Oki, and S. Kanae, Deriving a global river network map and its sub-grid topographic characteristics from a fine-resolution flow direction map, Hydrology and Earth System Sciences, Vol. 13, Issue 11, pp 2241-2251, 2009. Freeman, T. G.: Calculating catchment area with divergent flow based on a regular grid, Computers & Geosciences, Vol. 17, Issue 3, pp. 413-422, DOI: 10.1016/0098-3004(91)90048-I, 1991.Freeman, T. G .: Calculating catchment area with divergent flow based on a regular grid, Computers & Geosciences, Vol. 17, Issue 3, pp. 413-422, DOI: 10.1016 / 0098-3004 (91) 90048-I, 1991. Quinn, P., K. Beven, P. Chevallier, and O. Planchon: The prediction of hillslope flow paths for distributed hydrological modelling using digital terrain models, Hydrological Processes, Vol. 5, Issue 1, pp. 59-79, DOI: 10.1002/hyp.3360050106, 1991.Quinn, P., K. Beven, P. Chevallier, and O. Planchon: The prediction of hillslope flow paths for distributed hydrological modeling using digital terrain models, Hydrological Processes, Vol. 5, Issue 1, pp. 59-79, DOI : 10.1002 / hyp.3360050106, 1991. Shrestha, R., Y. Tachikawa and K. Takara: A new method to define flow direction using grid digital elevation models, Annual Journal of Hydraulic Engineering, JSCE, Vol. 47, pp. 241-246, 2003.Shrestha, R., Y. Tachikawa and K. Takara: A new method to define flow direction using grid digital elevation models, Annual Journal of Hydraulic Engineering, JSCE, Vol. 47, pp. 241-246, 2003.

落水線作成プログラムによって作成された落水線が、実際に水が流れる方向とは異なることがある。このような問題は、発明者らがすでに開示した発明「流域推定プログラム」(特許文献4の図6)のように、地図と落水線とを重ねて表示することで顕在化する。一般に地図には水路が示されており、これと落水線とを重ねて表示すると、両者の位置および形状の差異が明確になる。一方で発明者らは、これらの問題はごく限定された地域のみに発生すると考えたため、ごく限定されたセルのデータを専門家が直に編集すればよいと考えていた。実際に、特許文献1では「メッシュに分割された流域について、数値地図(1kmメッシュ平均標高、KS−273:流域界位置、KS−272:流路位置)に基づき落水線図を作成し、さらに目視よる修正を加える。」と記述されており、このような考え方が一般的であることが推測される。   The waterfall line created by the waterfall line creation program may differ from the direction in which water actually flows. Such a problem becomes apparent when the map and the falling water line are displayed in an overlapping manner as in the invention “basin estimation program” already disclosed by the inventors (FIG. 6 of Patent Document 4). In general, a map shows a waterway, and when this and a falling water line are displayed in an overlapping manner, the difference in position and shape between the two becomes clear. On the other hand, the inventors thought that these problems occur only in a limited area, and therefore thought that an expert should directly edit data of a very limited cell. Actually, in Patent Document 1, “for a basin divided into meshes, a waterfall diagram is created based on a numerical map (1 km mesh average elevation, KS-273: basin boundary position, KS-272: flow path position), and It is assumed that such a way of thinking is general.

ところが実際には、その編集作業がきわめて困難で生産性が低いことがわかった。落水線は水文学的な時空間スケールにおける表流水の流向という、物理的意味を持ったデータである。一方、人間が落水線を任意に編集すると、この物理的意味と矛盾する不正な落水線が生成されうる。不正な落水線の例を図23に示す(図23は不正な落水線の例を示す説明図である)。   However, in practice, it was found that the editing work was extremely difficult and the productivity was low. The waterfall line is data with a physical meaning of the flow direction of surface water on a hydrological spatio-temporal scale. On the other hand, if a human edits a waterfall line arbitrarily, the illegal waterfall line which contradicts this physical meaning may be produced | generated. An example of an unauthorized waterfall line is shown in FIG. 23 (FIG. 23 is an explanatory diagram showing an example of an unauthorized waterfall line).

図23(a)において、セル2301から落水線の方向に進むと、もとのセル2301に戻る。すなわち、セル2301に流れ下った水は、それ以後位置エネルギーを永遠に失わず永遠に流れ下り続ける。ポンプ等の人工設備を使わない限り、このような流れを実現できない。   In FIG. 23A, when the cell 2301 is advanced in the direction of the falling water line, the original cell 2301 is restored. That is, the water that has flowed down into the cell 2301 continues to flow down forever without losing potential energy forever. Such a flow cannot be realized unless artificial equipment such as a pump is used.

別の例を図23(b)に示す。この例では、セル2311、2314、2313、2312の順に水が流れる。セル2311から出る落水線とセル2313から出る落水線が交差している。落水線の交差部分に立体交差を実現するサイフォンなどの人工設備を使わない限り、このような流れを実現できない。   Another example is shown in FIG. In this example, water flows in the order of the cells 2311, 2314, 2313, and 2312. The falling water line coming out from the cell 2311 and the falling water line coming out from the cell 2313 intersect. Such a flow cannot be realized unless an artificial facility such as a siphon that realizes a three-dimensional intersection is used at the intersection of falling water lines.

さらに別の例を図23(c)に示す。この図23(c)では、地表面の標高はセル2321が最大で降順にセル2321、2322、2323、2324であり、落水線がセル2321、2322、2323、2324の順に通過している。この落水線は下り方向に流れているため、一見正しいように思える。しかしこの落水線は、地表面の最急勾配方向と一致していないため不正である。   Yet another example is shown in FIG. In FIG. 23C, the altitude of the ground surface is the highest in the cell 2321, and the cells 2321, 2322, 2323, and 2324 in descending order, and the falling water line passes through the cells 2321, 2322, 2323, and 2324 in this order. This waterfall line seems to be correct because it flows downward. However, this waterfall line is illegal because it does not coincide with the steepest gradient direction on the ground surface.

この地形において正しい落水線を図23(d)に示す。セル2331、2332、2333が、それぞれ2334と落水線で直接結ばれている。すなわち、セル2331、2332及び2333から流出した水がセル2334に直接流れ込む。   The correct falling water line in this topography is shown in FIG. Cells 2331, 2332, and 2333 are directly connected to 2334, respectively, by falling water lines. That is, water flowing out of the cells 2331, 2332, and 2333 flows directly into the cell 2334.

水文学では1000万本程度の落水線からなる領域を対象とすることもある。たとえば、落水線作成プログラムにより作成された落水線のわずか0.01%を修正するとしても1000本の落水線を編集することになる。このような不正な落水線を1本も発生させることなく落水線を編集することは事実上不可能であり、仮に可能であってもきわめて生産性が低い作業である。   In hydrology, an area consisting of about 10 million falling water lines may be targeted. For example, even if only 0.01% of the waterfall lines created by the waterfall line creation program are corrected, 1000 waterfall lines are edited. It is practically impossible to edit the waterfall line without generating such an illegal waterfall line, and even if possible, it is an extremely low productivity operation.

作成された落水線は、水文学上の種々の処理、たとえばある地点の上流を特定する処理、流域面積を求める処理、または平均勾配を求める処理などに使用される。しかし、編集された落水線に上記のような不正が存在することによって、上記のような処理に支障が生じる場合がある。たとえば、図23(a)のように循環する落水線を用いた場合、上流を特定する処理が正常に終了しないといった問題が発生する。   The created falling water line is used for various hydrological processes, for example, a process for identifying an upstream of a certain point, a process for obtaining a basin area, or a process for obtaining an average gradient. However, there are cases where the above-described processing is hindered by the presence of the above-described fraud in the edited waterfall line. For example, when a falling water line as shown in FIG. 23 (a) is used, there arises a problem that the process of specifying the upstream does not end normally.

本発明はこの問題に鑑みてなされたものである。本発明の目的は、ユーザが落水線を編集することを可能にしつつ、落水線の物理的整合性を自動的に維持するコンピュータプログラムを提供することである。   The present invention has been made in view of this problem. An object of the present invention is to provide a computer program that automatically maintains the physical integrity of a waterfall while allowing a user to edit the waterfall.

本願で開示する代表的な発明の概要は以下の通りである。すなわち、コンピュータを制御する落水線編集プログラムであって、前記コンピュータは、前記落水線編集プログラムが格納されるメモリと、前記メモリに格納されたプログラムを実行するプロセッサとを備え、複数のセルを含む空間における、前記各セルの標高を示す標高データ、及び、前記各セルから水が流れる方向を示す落水線データを保持し、前記落水線編集プログラムは、前記セルの指定、及び前記指定されたセルを始点とする新たな落水線の指定を受ける第1手順と、前記指定された落水線と、既に指定された一つ以上の落水線とが循環する場合、および、前記指定された落水線が既に指定された落水線と交差する場合に、前記指定された落水線が不正であると判定する第2手順と、前記指定されたセルを始点とする複数の方向のうち、前記指定された落水線の方向以外の方向を無効方向として設定し、さらに、前記指定されたセルに隣接するセルを始点とする複数の方向のうち、前記指定された落水線と交差する方向を無効方向として設定することで、前記指定された落水線の方向に基づいて、前記各セルについて落水線の生成が禁止される無効方向を決定する第3手順と、前記標高データに基づいて、前記各セルから、前記無効方向以外の方向のうち、下流方向に水が流れるように前記落水線データを変更する第4手順と、を前記プロセッサに実行させ、前記第2手順において、前記指定された落水線が不正であると判定された場合、前記第3手順および前記第4手順の前に、前記指定されたセルについて、前記指定されたセルを始点とする新たな落水線の指定を受ける前記第1手順を再び前記プロセッサに実行させることを特徴とする。 The outline of the representative invention disclosed in the present application is as follows. That is, a waterfall line editing program for controlling a computer, wherein the computer includes a memory in which the waterfall line editing program is stored, and a processor that executes the program stored in the memory, and includes a plurality of cells. In the space, the altitude data indicating the altitude of each cell and the waterfall line data indicating the direction in which water flows from each cell are retained, and the waterfall line editing program stores the specified cell and the specified cell. A first procedure that receives a designation of a new waterfall starting from the point, a case where the designated waterfall and one or more already designated waterfalls circulate, and the designated waterfall when crossing the already specified drainage lines, a plurality of direction in which the designated drainage line is the starting point and the second procedure determines that fraud, the specified cell Of these, a direction other than the direction of the designated falling water line is set as an invalid direction, and further, among a plurality of directions starting from a cell adjacent to the designated cell, the direction intersects with the designated falling water line. By setting the direction as an invalid direction , based on the designated falling water line direction, a third procedure for determining an invalid direction in which the generation of a falling water line is prohibited for each cell, and on the basis of the elevation data , Causing the processor to execute a fourth procedure for changing the waterfall line data so that water flows downstream from each cell in a direction other than the invalid direction. In the second procedure, the designation is performed. If been drainage line is determined to be invalid, prior to the third procedure and the fourth procedure, for the designated cell, the designation of a new drainage line that starts the specified cell Kicking and wherein the to be executed by the re-said processor a first step.

本発明の一実施形態によれば、ユーザが落水線を編集することを可能にしつつ、落水線の物理的整合性を自動的に維持するコンピュータプログラムを提供できる。このプログラムによって、ユーザの知見を反映した落水線を短時間で生成し水文学に使用できるようになる。   According to an embodiment of the present invention, it is possible to provide a computer program that automatically maintains the physical integrity of a waterfall line while allowing a user to edit the waterfall line. With this program, it will be possible to generate waterfall lines reflecting user knowledge in a short time and use them in hydrology.

本発明の実施形態におけるコンピュータシステムの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the computer system in embodiment of this invention. 本発明の実施形態における落水線編集プログラムとハードウェア資源との相互作用を示すシーケンス図である。It is a sequence diagram which shows the interaction of the waterfall line edit program and hardware resource in embodiment of this invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集を開始した状態を示す説明図である。It is explanatory drawing which shows the state which started the edit in the replacement mode of GUI provided by the falling water line editing program in the first embodiment of the present invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集を開始した状態を示す第1の説明図である。It is 1st explanatory drawing which shows the state which started the edit in the replacement mode of GUI provided by the falling water line edit program in the 1st Embodiment of this invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集を継続している状態を示す第2の説明図である。It is the 2nd explanatory view showing the state where the edit in change mode of GUI provided by the falling water line edit program in a 1st embodiment of the present invention is continued. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集内容を確定している状態を示す説明図である。It is explanatory drawing which shows the state which has decided the edit content in the replacement mode of GUI provided by the falling water line edit program in the 1st Embodiment of this invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける地形を編集している状態を示す説明図である。It is explanatory drawing which shows the state which is editing the topography in the replacement mode of GUI provided by the falling water line editing program in the first embodiment of the present invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集後の落水線を表示した状態を示す説明図である。It is explanatory drawing which shows the state which displayed the waterfall line after editing in the replacement mode of GUI which the waterfall line edit program in the 1st Embodiment of this invention provides. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、追加モードにおける地形を編集している状態を示す説明図である。It is explanatory drawing which shows the state which is editing the topography in the addition mode of GUI which the waterfall line edit program in the 1st Embodiment of this invention provides. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、追加モードにおける地形を編集後の落水線を表示した状態を示す説明図である。It is explanatory drawing which shows the state which displayed the falling water line after editing the topography in the addition mode of GUI provided by the falling water line editing program in the 1st Embodiment of this invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、削除モードにおける地形を編集している状態を示す説明図である。It is explanatory drawing which shows the state which is editing the topography in the deletion mode of GUI provided by the falling water line editing program in the first embodiment of the present invention. 本発明の第1の実施形態における落水線編集プログラムが提供するGUIの、削除モードにおける地形を編集後の落水線を表示した状態を示す説明図である。It is explanatory drawing which shows the state which displayed the falling water line after editing the topography in deletion mode of GUI provided by the falling water line editing program in the 1st Embodiment of this invention. 本発明の第1の実施形態の落水線編集プログラムの機能モジュール構成を示すパッケージ図である。It is a package figure which shows the functional module structure of the falling water line edit program of the 1st Embodiment of this invention. 本発明の第1の実施形態のセルのデータ構造を示す説明図である。It is explanatory drawing which shows the data structure of the cell of the 1st Embodiment of this invention. 本発明の第1の実施形態の落水線編集内容の指定の処理における、落水線編集プログラムとハードウェア資源との相互作用の詳細を示すシーケンス図である。It is a sequence diagram which shows the detail of interaction with the waterfall line edit program and hardware resource in the process of designation | designated of the waterfall line edit content of the 1st Embodiment of this invention. 本発明の第1の実施形態における落水線編集内容の指定の処理のアルゴリズムを示すフローチャートである。It is a flowchart which shows the algorithm of the designation | designated process of the falling water line edit content in the 1st Embodiment of this invention. 本発明の第1の実施形態の地形編集内容の指定の処理における、落水線編集プログラムとハードウェア資源との相互作用の詳細を示すシーケンス図である。It is a sequence diagram which shows the detail of interaction with the falling water line edit program and hardware resource in the process of designation | designated of the topography edit content of the 1st Embodiment of this invention. 本発明の第1の実施形態の地形編集内容の指定の処理のアルゴリズムを示すフローチャートである。It is a flowchart which shows the algorithm of the process of designation | designated of the topography edit content of the 1st Embodiment of this invention. 本発明の第2の実施形態における落水線編集プログラムが提供するGUIの、付け替えモードにおける編集中の状態を示す説明図である。It is explanatory drawing which shows the state in edit in the replacement mode of GUI provided by the falling water line edit program in the 2nd Embodiment of this invention. 本発明の第2の実施形態における落水線編集内容の指定の処理のアルゴリズムを示すフローチャートである。It is a flowchart which shows the algorithm of the designation | designated process of the falling water line edit content in the 2nd Embodiment of this invention. 本発明の第2の実施形態における落水線編集プログラムが提供するGUIの、流域外の一部領域を流域として追加する場合における編集中の状態を示す説明図である。It is explanatory drawing which shows the state in edit in the case of adding the one part area | region outside a basin as a basin of GUI provided by the falling water line edit program in the 2nd Embodiment of this invention. 本発明の第2の実施形態における落水線編集プログラムが提供するGUIの、流域の一部領域を流域外として削除する場合における編集中の状態を示す説明図である。It is explanatory drawing which shows the state in edit in the case of deleting the partial area | region of a basin as GUI outside which the falling water line edit program in the 2nd Embodiment of this invention provides. 不正な落水線の例を示す説明図であるIt is explanatory drawing which shows the example of an unauthorized waterfall line

最初に、本発明の概要を説明する。   First, the outline of the present invention will be described.

本発明は、発明者らが見いだした、実際の流れが次の3種類に分類されるという原理に基づく。   The present invention is based on the principle that the inventors have found that actual flows are classified into the following three types.

流れ1:落水線として表現できる流れ。   Flow 1: A flow that can be expressed as a falling water line.

流れ2:セル同士を結ぶ流れとして表現できる流れ。   Flow 2: A flow that can be expressed as a flow connecting cells.

流れ3:セル同士を結ぶ流れとして表現できない流れ(たとえば、セルよりも空間スケールが小さい流れ、水深方向に均一でない流れなど)。   Flow 3: A flow that cannot be expressed as a flow connecting cells (for example, a flow having a smaller spatial scale than the cells, a flow that is not uniform in the depth direction).

明らかに、流れ2は流れ1を包含する。流れ2の具体的な例を図23に示す。図23(a)から図23(d)に示した流れはすべてセル同士を結ぶ流れとして表現されており、明らかに流れ2である。一方、落水線として正しい流れは前述したとおり図23(d)のみであり、落水線(流れ1)は流れ2の一部である。   Clearly, stream 2 includes stream 1. A specific example of the flow 2 is shown in FIG. The flow shown in FIGS. 23A to 23D is all expressed as a flow connecting cells, and is clearly flow 2. On the other hand, the correct flow as the falling water line is only FIG. 23D as described above, and the falling water line (flow 1) is a part of the flow 2.

流れ2のうち、図23(c)および図23(d)の流れは、セルを結ぶ水路内の流れとして落水線と同じ物理法則(標高の下り方向に流れる流れ)で表現できる。なぜならば、落水線が有する「水が流れる方向」が落水線のように周囲のセルの標高により決定されても、水路のように水路の壁により決定されても、標高の下り方向に流れるという流れの性質に違いがないからである。このことは、セルに比べ幅が十分広い水路は、落水線で表現できることからも明らかである。このことからも示唆されるとおり、図23(c)および図23(d)の流れが落水線として表現できない理由は直感的にわかりにくい。図23(a)および図23(b)がセルの大きさを変更することでは表現できず、その表現には専用の物理モデル(ポンプまたはサイフォンなど)が必要なこととは大きく異なる。   Of the flow 2, the flow in FIGS. 23 (c) and 23 (d) can be expressed by the same physical law (flow flowing in the downward direction of the altitude) as the flow line in the water channel connecting the cells. This is because, even if the "water flowing direction" of the waterfall line is determined by the altitude of the surrounding cells as in the waterfall line, or determined by the wall of the waterway as in the waterway, it flows in the downward direction of the altitude. This is because there is no difference in the nature of the flow. This is clear from the fact that a water channel that is sufficiently wide compared to a cell can be represented by a falling water line. As suggested by this, the reason why the flow in FIGS. 23C and 23D cannot be expressed as a falling water line is difficult to understand intuitively. 23 (a) and 23 (b) cannot be expressed by changing the cell size, and the expression is greatly different from the need for a dedicated physical model (such as a pump or siphon).

一方、ユーザが「実際の流れと落水線とが違う」と考える原因は、地図に記載された水路を暗黙のうちにセルを結ぶ水路として近似表現し、その水路と落水線生成プログラムの作成した落水線とが大きく異なると判断するためと考えられる。したがって、落水線と水路とを共存させるようにすれば、ユーザにとって正しいと考えられる「落水線」が実現できる、と発明者らは考えた。   On the other hand, the reason that the user thinks "the actual flow and the falling water line are different" is that the water channel described on the map is implicitly expressed as a water channel that connects cells implicitly, and the water channel and the falling water line generation program are created. It is thought that it is judged that the waterfall line is very different. Accordingly, the inventors have thought that if the waterfall line and the water channel are allowed to coexist, a “waterfall line” that is considered to be correct for the user can be realized.

落水線は最急勾配方向に、水路は水路の中心線に沿って流れる。しかしどちらも、下り勾配方向に流れ下ることは共通である。したがってこれらの流れを共存させるためには、最急勾配方向でない方向に流れる落水線を許容し、かつ水路中心線に沿って下り勾配方向になるように地形を変更すればよい。ただしこの操作は、水路の上流端と落水線、および下流端と落水線とが矛盾なく接続するよう、落水線と水路の上流端とを結ぶ勾配、水路の下流端と落水線とを結ぶ勾配のどちらもが下り勾配になる場合のみ可能である。   The falling water line flows in the direction of the steepest slope, and the water channel flows along the center line of the water channel. However, it is common that both flow down in the downward gradient direction. Therefore, in order to allow these flows to coexist, it is only necessary to change the terrain so as to allow a falling water line that flows in a direction other than the steepest gradient direction and a downward gradient direction along the channel center line. However, in this operation, the slope connecting the downfall line and the upstream end of the waterway and the slope connecting the downstream end of the waterway and the downfall line so that the upstream end and downfall line of the waterway and the downstream end and downfall line are connected consistently. Both are possible only when the slope is downhill.

以上の原理に基づき、発明者らが考案した本発明の落水線編集プログラムは以下のステップ1からステップ3によって構成される。   Based on the above principle, the falling water line editing program of the present invention devised by the inventors is composed of the following steps 1 to 3.

ステップ1:ユーザからセルおよび流れる方向の指定を受ける。このステップでは、ユーザに水路となるセルおよびその流れ方向を、落水線編集指示として入力させればよい。   Step 1: A cell and a flow direction are designated from the user. In this step, the user only has to input a cell serving as a water channel and its flow direction as a falling water line editing instruction.

ステップ2:指定されたセルの流れる方向に基づき、指定されたセルの標高を決定する。ただし、1つのセルに2種類の標高が与えられる場合、または、指定されたセルであって、上流のセルが指定されなかったセルであり、かつ、上流のセルよりも標高が高い場合、または、指定されたセルであって、下流のセルが指定されなかったセルであり、かつ、下流のセルよりも標高が低い場合、地形の編集指示に変更不可能な指示と見なし、処理を中断するか、ステップ1に戻ってユーザに水路の位置の再入力を要求する。   Step 2: Determine the elevation of the designated cell based on the direction of flow of the designated cell. However, when two types of elevation are given to one cell, or when the designated cell is an upstream cell and the elevation is higher than the upstream cell, or If it is a specified cell and the downstream cell is not specified and the altitude is lower than that of the downstream cell, the terrain editing instruction is regarded as an instruction that cannot be changed, and the process is interrupted. Alternatively, the process returns to step 1 to request the user to re-enter the water channel position.

ステップ3:落水線を更新する。このステップでは、ステップ1で受け取ったセルおよび流れる方向、およびステップ2で決定された地形を用いて落水線を生成し、既存の落水線を上書きすればよい。   Step 3: Update the falling water line. In this step, it is only necessary to generate a waterfall using the cell received in step 1 and the flow direction and the topography determined in step 2 and to overwrite the existing waterfall.

なお、本発明は、流れ1および流れ2を対象とする。セルを用いて流れ3を表現できないことは明らかである。ただし、流れ3についてはすでに知られている技術と本発明とを組み合わせて用いることで対応できる。流れ1と流れ3とを表現する方法として、たとえば非特許文献5では、流れ1を表すモデルの特定のセルを別のモデル(河川モデル)のセルに接続する方法が用いられている。また非特許文献6では、1セルで2つ以上の流れを表現する方法を提案している。これらの方法は落水線を用いるモデルに組み合わせて用いることができるため、本発明に組み合わせて用いることができる。   The present invention is directed to stream 1 and stream 2. It is clear that the flow 3 cannot be expressed using cells. However, the flow 3 can be dealt with by combining a known technique and the present invention. As a method for expressing the flow 1 and the flow 3, for example, Non-Patent Document 5 uses a method of connecting a specific cell of a model representing the flow 1 to a cell of another model (river model). Non-Patent Document 6 proposes a method of expressing two or more flows in one cell. Since these methods can be used in combination with a model using a falling water line, they can be used in combination with the present invention.

以下、落水線編集プログラムの実施形態を2つの例を用いて説明する。第1の実施形態は落水線1本ごとの編集に適しており、第2の実施形態はより広い領域における複数本の落水線の編集に適している。どちらも同じ原理に基づいているため、1つのプログラムで両方の機能を備えても矛盾は生じない。したがって、両方の機能を備えるプログラムを作成し、これらの実施形態のどちらかをユーザに選択させてもよい。   Hereinafter, embodiments of the falling water line editing program will be described using two examples. The first embodiment is suitable for editing each falling water line, and the second embodiment is suitable for editing a plurality of falling water lines in a wider area. Since both are based on the same principle, there is no contradiction even if both functions are provided in one program. Therefore, a program having both functions may be created and the user may select either of these embodiments.

なお、説明の都合上、実施例において落水線はD8 methodで生成するものとする。したがって、各セルから出る落水線は1本である。また、落水線はセルの中心同士を結ぶ線分または矢印として表示される。ただし、本発明はD8 methodにのみ適用可能なわけではなく、セルにおける標高データを用いて落水線を生成し、セル同士を結ぶ有向線分として落水線を表現する場合に適用可能である。本実施例に記載した落水線生成方法D8 methodではない落水線生成方法として、たとえば非特許文献7または非特許文献8に示されたMultiple flow direction method、非特許文献9に示されたRanked flow tendency methodが挙げられる。これらの方法では、D8 methodとは異なり、各セルから出る落水線は1本以上となる。また、本実施形態に記載した落水線表示方法ではない方法として、非特許文献4(Fig.4d)に示された、セルの辺または頂点を結ぶ方法が挙げられる。   For convenience of explanation, it is assumed that the falling water line is generated by the D8 method in the embodiment. Therefore, there is one falling water line coming out from each cell. The falling water line is displayed as a line segment or an arrow connecting the centers of the cells. However, the present invention is not only applicable to the D8 method, but can be applied to a case where a falling line is generated using elevation data in cells and the falling line is expressed as a directed line segment connecting cells. Examples of waterfall line generation methods other than the waterfall line generation method D8 method described in the present embodiment include the multiple flow direction method shown in Non-Patent Document 7 or Non-Patent Document 8, and the Ranked flow tendency shown in Non-Patent Document 9. method. In these methods, unlike the D8 method, there are one or more falling water lines coming out of each cell. Further, as a method that is not the falling water line display method described in the present embodiment, there is a method of connecting cell edges or vertices shown in Non-Patent Document 4 (Fig. 4d).

<第1の実施形態>
以下、本発明の第1の実施形態を添付図面に基づいて説明する。
<First Embodiment>
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, a first embodiment of the invention will be described with reference to the accompanying drawings.

図1は、本発明の実施の形態におけるコンピュータシステムの構成を示す概略ブロック図である。   FIG. 1 is a schematic block diagram showing the configuration of a computer system according to an embodiment of the present invention.

本実施の形態のコンピュータシステムは、PC(Personal Computer)100によって構成される。PC100は、入出力部110を備える。入出力部110は、キーボード111およびマウス112などからなる入力部と、ディスプレイ113などからなる出力部によって構成される。ユーザは、入力部から命令を入力し、出力部から結果を確認することができる。   The computer system of the present embodiment is configured by a PC (Personal Computer) 100. The PC 100 includes an input / output unit 110. The input / output unit 110 includes an input unit including a keyboard 111 and a mouse 112, and an output unit including a display 113. The user can input a command from the input unit and check the result from the output unit.

さらにPC100は、メモリ120およびCPU(Central Processing Unit)130を備える。メモリ120には落水線編集プログラム141が展開される。この落水線作成プログラム141はCPUへの命令から構成される。CPU130は、落水線作成プログラム141の命令に従い、計算、HDD(Hard Disk Drive)190へのアクセス、および入出力部110との情報の交換などを行う。以下の説明において落水線編集プログラム141が実行する処理は、実際には、流域抽出プログラム141に記述された命令に従うCPU130によって実行される。   The PC 100 further includes a memory 120 and a CPU (Central Processing Unit) 130. A falling water line editing program 141 is developed in the memory 120. This falling water line creation program 141 is composed of instructions to the CPU. The CPU 130 performs calculation, access to an HDD (Hard Disk Drive) 190, exchange of information with the input / output unit 110, and the like in accordance with the instructions of the falling water line creation program 141. In the following description, the processing executed by the falling water line editing program 141 is actually executed by the CPU 130 in accordance with instructions described in the basin extraction program 141.

HDD190には標高データ191、落水線データ192、および地図データ193が格納されており、落水線編集プログラム141はこれらのデータを読み込むこと、および書き込むことができる。なお、HDD190は、PC100に内蔵されてもよいし、PC100の外部に接続されてもよいし、PC100からネットワーク経由でアクセスできる別の装置に接続されてもよい。   The HDD 190 stores altitude data 191, waterfall line data 192, and map data 193, and the waterfall line editing program 141 can read and write these data. The HDD 190 may be incorporated in the PC 100, connected to the outside of the PC 100, or connected to another device that can be accessed from the PC 100 via a network.

標高データ191は、一般的にDigital elevation model(DEM)と呼ばれるデータである。すなわち、標高データ191は、セルの位置とそのセルにおける地表面の標高を記載した情報である。ある位置に割り当てられるセルは唯一であるため、セルの位置情報に基づいてセルに一意な識別番号(ID)を割り当てることができる。また、この標高データ191では、陸域には標高値が、海域には海域を示す値が格納されている。なお、海域とは、流出口がない水域、つまり、海洋および閉塞湖沼域(水の流出口がない湖)等である。   The altitude data 191 is data generally called a digital elevation model (DEM). That is, the altitude data 191 is information describing the position of the cell and the altitude of the ground surface in the cell. Since a cell assigned to a location is unique, a unique identification number (ID) can be assigned to the cell based on the location information of the cell. Further, in the altitude data 191, an altitude value is stored in the land area, and a value indicating the sea area is stored in the sea area. The sea area is a water area without an outlet, that is, an ocean and a closed lake area (a lake without a water outlet).

落水線データ192は、標高データ191と同様にセルの位置とそのセルにおける落水線の属性とを記載した情報である。落水線の属性とは、向き、勾配などである。さらにこの属性に、そのセルより上流のセルの数、最下流のセルのIDなど、落水線データの解析結果を含めてもよい。このデータは、落水線生成プログラムを用いてあらかじめ作成しておく。落水線生成プログラムとして、たとえば発明者らが特許文献4で開示した発明「流域推定プログラム」を使うことができる。   The waterfall line data 192 is information describing the position of the cell and the attributes of the waterfall line in the cell, like the altitude data 191. The attributes of the falling water line are direction, gradient, and the like. Furthermore, this attribute may include the analysis result of the falling water line data such as the number of cells upstream from the cell and the ID of the most downstream cell. This data is created in advance using the falling water line generation program. As the falling water line generation program, for example, the invention “basin estimation program” disclosed in Patent Document 4 by the inventors can be used.

地図データ193は、ユーザが落水線を編集するための判断材料となる情報であればよい。地図データ193として適している情報として、河川等の位置が記載された地形図などが挙げられる。   The map data 193 may be information that can be used as a determination material for the user to edit the falling water line. Information suitable as the map data 193 includes a topographical map in which positions of rivers and the like are described.

図2は、PC100によって実行される落水線編集プログラム141とハードウェア資源との相互作用を示すシーケンス図である。   FIG. 2 is a sequence diagram showing the interaction between the waterfall line editing program 141 and hardware resources executed by the PC 100.

PC100で落水線編集プログラム141が起動される。落水線編集プログラム141は、HDD190から落水線データ192を読み出す(ステップ201)。データを読み出した落水線編集プログラム141は、ウィンドウ300からなるGUI(Graphical User Interface)をディスプレイ113に出力する(ステップ202)。このGUIを用いて、落水線編集プログラム141は、編集モードの指定を受ける(ステップ203)。このステップは省略可能である。このステップを実行すると、ユーザの誤操作を防ぐためにユーザの操作が制限される。さらにGUIを用いて、落水線編集プログラム141は、ユーザから落水線編集指示を受け取る(ステップ204)。落水線編集プログラム141は、指示された落水線が不正なものであるか否かを判定し、不正なものでない場合にのみこの指示を受け取る。   The falling water line editing program 141 is activated on the PC 100. The falling water line editing program 141 reads the falling water line data 192 from the HDD 190 (step 201). The falling water line editing program 141 that has read the data outputs a GUI (Graphical User Interface) composed of the window 300 to the display 113 (step 202). Using this GUI, the falling water line editing program 141 receives an edit mode designation (step 203). This step can be omitted. When this step is executed, the user's operation is restricted to prevent the user's erroneous operation. Further, using the GUI, the falling water line editing program 141 receives a falling water line editing instruction from the user (step 204). The falling water line editing program 141 determines whether or not the instructed falling water line is illegal, and receives this instruction only when it is not illegal.

つづいて落水線編集プログラム141は、ユーザによる落水線の編集指示を、地形の編集指示に変換する(ステップ205)。このステップでは、変換の詳細についてユーザに問い合わせを行ってもよい。本実施形態(第1の実施形態)は問い合わせる場合について説明し、別の実施形態(第2の実施形態)では問い合わせない場合について説明する。落水線編集プログラム141は、この地形の編集指示に従い地形を編集し(ステップ206)、さらに編集された地形に基づき落水線を生成する(ステップ207)。   Subsequently, the falling water line editing program 141 converts the falling water line editing instruction by the user into the terrain editing instruction (step 205). In this step, the user may be queried for details of the conversion. In the present embodiment (first embodiment), a case where an inquiry is made will be described. In another embodiment (second embodiment), a case where no inquiry is made will be explained. The falling water line editing program 141 edits the terrain according to the terrain editing instruction (step 206), and generates a falling water line based on the edited terrain (step 207).

このステップ207においては、落水線生成部1322(図13参照)を用いて下り勾配方向の落水線が生成される。落水線生成部1322としては、たとえば発明者らが特許文献4で開示した発明「流域推定プログラム」を使うことができる。なおステップ207において、落水線生成部1322は、ユーザが指定した落水線に戻る(すなわち循環する)落水線、および、ユーザが指定した落水線を横切る落水線を生成させないように落水線を生成する。   In this step 207, a downfall line in the downward gradient direction is generated using the downfall line generator 1322 (see FIG. 13). As the falling water line generation unit 1322, for example, the invention “basin estimation program” disclosed by the inventors in Patent Document 4 can be used. In step 207, the waterfall line generating unit 1322 generates a waterfall line so as not to generate a waterfall line that returns (that is, circulates) to the waterfall line designated by the user and a waterfall line that crosses the waterfall line designated by the user. .

また、後で詳細に説明するように、本実施形態では、あるセルについて無効方向が定められている場合、無効方向ではない方向のうち下り勾配方向に一致するように落水線が生成される。たとえば、上記の「流域推定プログラム」は、下りの最急勾配方向に一致する落水線を作成するが、本実施形態に「流域推定プログラム」を用いた場合、無効方向ではない方向のうち最急勾配方向に一致する落水線が作成される。   Further, as will be described in detail later, in the present embodiment, when an invalid direction is determined for a certain cell, a falling line is generated so as to coincide with a downward gradient direction among directions that are not invalid directions. For example, the “basin estimation program” described above creates a falling water line that matches the steepest slope direction of the downward slope, but when the “basin estimation program” is used in this embodiment, the steepest of the directions that are not invalid directions. A falling water line that matches the gradient direction is created.

落水線編集プログラム141は、生成した落水線をGUIに表示し(ステップ208)、落水線が意図通りであることをユーザに確認させてもよい。また、ユーザからデータを保存するコマンドを受け付けて、標高データ191および落水線データ192の書き込み(ステップ209および210)を行ってもよい。これらによって標高データ191および落水線データ192が更新される。   The falling water line editing program 141 may display the generated falling water line on the GUI (step 208) and allow the user to confirm that the falling water line is as intended. Alternatively, a command for saving data may be received from the user, and the altitude data 191 and the waterfall line data 192 may be written (steps 209 and 210). As a result, the altitude data 191 and the falling water line data 192 are updated.

なお、落水線編集プログラムは、ステップ203において、「付け替え」、「追加」または「削除」のいずれかをユーザに選択させることが望ましい。   Note that the falling water line editing program desirably causes the user to select “replacement”, “addition”, or “deletion” in step 203.

「付け替え」が選択された場合、ユーザが編集可能な落水線が流域内に制限される。この場合流域界が変更されないため、ステップ207の処理は流域内(すなわちステップ201で読み込んだ時点における落水線データ192によって特定される流域内)のみを対象にすればよい。具体的には、ステップ207において、落水線生成部1322は、流域内のセルのみについて最急勾配方向を特定し、それに基づいて落水線を作成するが、流域外のセルについては最急勾配方向を特定する処理を実行しない。   When “replacement” is selected, the user-editable waterfall line is restricted within the basin. In this case, since the basin boundary is not changed, the processing in step 207 may be performed only in the basin (that is, in the basin specified by the falling water line data 192 at the time of reading in step 201). Specifically, in step 207, the falling water line generating unit 1322 identifies the steepest gradient direction only for the cells in the basin, and creates the falling water line based on the specified direction, but the steepest gradient direction for the cells outside the basin. Do not execute processing to identify

「追加」が選択された場合、ユーザが編集可能な落水線の始点が流域外となるよう制限される。この場合流域が拡張されるため、ステップ207の処理は流域外も対象にする必要がある。すなわち、ステップ207において、落水線生成部1322は、流域内のセルだけでなく、流域外のセルについても最急勾配方向を特定し、それに基づいて落水線を作成する必要がある。   When “Add” is selected, the start point of the falling water line that can be edited by the user is limited to be outside the basin. In this case, since the basin is expanded, the processing in step 207 needs to be performed outside the basin. That is, in step 207, the falling water line generating unit 1322 needs to specify the steepest gradient direction not only for the cells in the basin but also for the cells outside the basin, and create the falling line based on the direction.

「削除」が選択された場合、ユーザが編集可能な落水線の終点が流域外となるよう制限される。この場合流域が縮小されるため、「付け替え」の場合と同様、ステップ207の処理は流域内のみを対象にすればよい。   When “Delete” is selected, the end point of the falling water line that can be edited by the user is restricted to be outside the basin. In this case, since the basin is reduced, as in the case of “replacement”, the processing in step 207 need only be performed within the basin.

なお、落水線編集プログラム141のシーケンスにおいて重要な点は、落水線編集指示の受け取り(ステップ204)、落水線の編集指示を地形等の編集指示に変換(ステップ205)、標高データの変更(ステップ206)、落水線データの変更(ステップ207)の順に処理がなされることである。この順に処理がなされる限り、その他のシーケンスを変更させることができる。たとえば、ステップ210の後再びステップ203に戻り新たな編集作業を継続することは可能である。   The important points in the sequence of the falling water line editing program 141 are the reception of the falling water line editing instruction (step 204), the conversion of the falling water line editing instruction into the editing instruction such as terrain (step 205), and the change of the altitude data (step). 206) and processing in the order of change of the falling water line data (step 207). As long as processing is performed in this order, other sequences can be changed. For example, it is possible to return to step 203 again after step 210 and continue a new editing operation.

ステップ203からステップ208に関するGUIの遷移を図3から12に示す。   The transition of the GUI regarding step 203 to step 208 is shown in FIGS.

図3は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集を開始した状態(ステップ204)を示す説明図である。   FIG. 3 is an explanatory diagram showing a state where editing in the replacement mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is started (step 204).

図3のGUIは、ディスプレイ113の所定の領域に表示されるウィンドウ300からなり、キーボード111およびマウス112による入力を受け付ける。ウィンドウ300は、少なくとも落水線表示部310を備え、さらに編集コマンド入力部320および地形断面表示部330を備えることが望ましい。   3 includes a window 300 displayed in a predetermined area of the display 113, and receives input from the keyboard 111 and the mouse 112. The window 300 preferably includes at least a falling water line display unit 310, and further includes an editing command input unit 320 and a topographic section display unit 330.

落水線表示部310は、少なくともステップ201で読み込んだ落水線データ192に含まれる落水線(たとえば落水線311など)を表示する。これらの落水線はすべて下流端セル343に到達する。すなわち、この状態で落水線表示部310に表示されているセルはセル343の流域である。このことを明示するため、太い線分362のように流域界を表すことが望ましい。セルの位置を示すために線分361のようにセルの辺(枠線)を示してもよい。図3の例では、線分361のような枠線によって格子状に区切られた矩形の各領域がセル(たとえばセル341)である。   The falling water line display unit 310 displays the falling water lines (for example, the falling water line 311) included in the falling water line data 192 read at least in step 201. All these falling water lines reach the downstream end cell 343. That is, the cell displayed on the falling water line display unit 310 in this state is the basin of the cell 343. In order to clarify this, it is desirable to represent the basin boundary as a thick line segment 362. In order to indicate the position of the cell, a cell side (frame line) may be indicated like a line segment 361. In the example of FIG. 3, each rectangular area divided in a lattice shape by a frame line such as a line segment 361 is a cell (for example, a cell 341).

また落水線表示部310は、編集対象とする落水線をユーザに指定させる機能を備える。本実施例では、マウス112の動きを検知しマウスポインタ301を動かし、マウス112の操作(例えば左クリック)を検知することによって編集対象とする落水線をユーザに指定させる。ユーザの操作結果をユーザにわかりやすく伝えるために、指定された落水線311を太線等で表示する、かつ・または指定された落水線311の終点にアイコン302を表示することが望ましい。   The falling water line display unit 310 has a function of allowing the user to specify a falling water line to be edited. In the present embodiment, the movement of the mouse 112 is detected, the mouse pointer 301 is moved, and an operation (for example, left click) of the mouse 112 is detected to allow the user to designate a falling water line to be edited. In order to convey the user's operation result to the user in an easy-to-understand manner, it is desirable to display the designated waterfall line 311 with a thick line and / or display the icon 302 at the end point of the designated waterfall line 311.

さらに落水線表示部310は、マウス112の右クリックを検知し、ユーザが落水線編集プログラム141に編集終了を通知するためのユーザインタフェース(コンテキストメニュー)を出現させることが望ましい。その詳細については図6で説明する。編集コマンド入力部320は、ユーザに「編集モード」を指定させるドロップダウンリスト321を備える。ドロップダウンリスト321は、ユーザに「付け替え」、「追加」、「削除」のいずれかを選択させる。   Furthermore, it is desirable that the waterfall line display unit 310 detects a right click of the mouse 112 and causes a user interface (context menu) for the user to notify the waterfall line editing program 141 of the end of editing. Details thereof will be described with reference to FIG. The edit command input unit 320 includes a drop-down list 321 that allows the user to designate an “edit mode”. The drop-down list 321 allows the user to select one of “replacement”, “addition”, and “deletion”.

地形断面表示部330は、後述する落水線編集内容の指定処理(ステップ204)および落水線の編集指示を地形等の編集指示に変換(ステップ205)におけるユーザ操作を支援するためのGUIである。地形断面表示部330は、縦軸331および横軸332を備える。後述するとおり、この横軸に沿ってあるセルをある順番に従って並べ、それらの標高を縦軸に示す。さらに、地形断面表示部330は、ユーザに標高値を変更させるインターフェースを備える。このようにウィンドウ300は、少なくとも1以上の落水線を指定する機能を備える。   The terrain cross-section display unit 330 is a GUI for supporting user operations in the processing for specifying the details of the falling water line editing process (step 204) and converting the editing instructions for the falling water line into the editing instructions for the terrain (step 205). The topographic section display unit 330 includes a vertical axis 331 and a horizontal axis 332. As will be described later, the cells along the horizontal axis are arranged in a certain order, and their elevations are shown on the vertical axis. Furthermore, the topographic section display unit 330 includes an interface that allows the user to change the elevation value. As described above, the window 300 has a function of designating at least one falling water line.

また、ウィンドウ300の落水線表示部310に地図データ193を表示してもよい。これによって、ユーザが落水線を編集することが容易になる。この機能を実装するためには、ステップ201で落水線編集プログラム141が落水線データ192および地図データ193を読み込めばよい。   Further, the map data 193 may be displayed on the falling water line display unit 310 of the window 300. This makes it easy for the user to edit the falling water line. In order to implement this function, the falling water line editing program 141 may read the falling water line data 192 and the map data 193 in step 201.

本実施形態では、編集コマンド入力部320から「付け替え」、「追加」、「削除」のいずれかをユーザに選択させることでステップ203を実現する。   In the present embodiment, step 203 is realized by allowing the user to select any one of “replacement”, “addition”, and “deletion” from the editing command input unit 320.

第一に、ユーザが「付け替え」モードを選択した場合について図3から図8を参照して説明する。   First, the case where the user selects the “replacement” mode will be described with reference to FIGS. 3 to 8.

ユーザは、落水線表示部310において1つの落水線を選択する。図3は、落水線311が選択された直後の状態である。選択された落水線の終点にアイコン302が表示され、マウスポインタ301を動かすことでそのアイコンが動く。このアイコン302は、セル341(落水線311の始点セル)に隣接する8セルのうち、マウスポインタ301から最も近いセルの中心のみに表示される。ユーザがマウス112を左クリックすることで、落水線の終点をクリックしたセルに付け替えることができる。例えば、ユーザがセル342上にマウスポインタ301を置いて左クリックすると、画面は図4に遷移する。   The user selects one waterfall line in the waterfall display section 310. FIG. 3 shows a state immediately after the falling water line 311 is selected. An icon 302 is displayed at the end point of the selected falling water line, and the icon moves when the mouse pointer 301 is moved. This icon 302 is displayed only at the center of the cell closest to the mouse pointer 301 among the eight cells adjacent to the cell 341 (the start cell of the falling water line 311). When the user left-clicks the mouse 112, it can be replaced with the cell where the end point of the falling water line is clicked. For example, when the user places the mouse pointer 301 on the cell 342 and left-clicks, the screen transitions to FIG.

図4は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集を継続している状態(ステップ204)を示す第1の説明図である。   FIG. 4 is a first explanatory diagram showing a state (step 204) in which the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is being edited in the replacement mode.

図4のセル441および442は、それぞれ図3のセル341および342に相当する。   Cells 441 and 442 in FIG. 4 correspond to cells 341 and 342 in FIG. 3, respectively.

図3の落水線311は図4の落水線411に付け替えられる。さらに、この落水線411の下流に位置する落水線412が太線表示されている。これらの落水線411および412に沿った地形断面、すなわちセル441から443の標高が、地形断面表示部430に示されている。落水線411から412が矢印431から432に、セル441から443が矩形451から453にそれぞれ対応している。   The waterfall line 311 in FIG. 3 is replaced with the waterfall line 411 in FIG. 4. Furthermore, the falling water line 412 located downstream of the falling water line 411 is displayed with a bold line. The topographic sections along these falling water lines 411 and 412, that is, the elevations of the cells 441 to 443 are shown in the topographic section display section 430. Falling lines 411 to 412 correspond to arrows 431 to 432, and cells 441 to 443 correspond to rectangles 451 to 453, respectively.

この地形断面表示部430の左端のセル451の標高より右端セル453の標高の方が低い。この状態、すなわちユーザが指定を開始したセル(441)の標高より、そのセルの下流に位置するいずれかのセルの標高が低い状態において、ユーザはこの編集内容を確定すること、または編集を継続することのどちらかを選択できる。ユーザがセル444上にマウスポインタ401を置いて左クリックすると、ユーザが編集の継続を選択したと判定され、画面は図5に遷移する。   The elevation of the rightmost cell 453 is lower than the elevation of the leftmost cell 451 of the topographical section display unit 430. In this state, that is, in a state where the altitude of any cell located downstream of the cell (441) where the user starts specifying is lower than the altitude of the cell, the user confirms the editing content or continues editing. You can choose either to do. When the user places the mouse pointer 401 on the cell 444 and left-clicks, it is determined that the user has selected to continue editing, and the screen transitions to FIG.

図5は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集を継続している状態(ステップ204)を示す第2の説明図である。   FIG. 5 is a second explanatory diagram illustrating a state (step 204) in which editing in the replacement mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is continued.

図5のセル541、542および543は、それぞれ図4のセル441、442および444に相当する。   Cells 541, 542, and 543 in FIG. 5 correspond to cells 441, 442, and 444 in FIG. 4, respectively.

図4の落水線412は図5の落水線512に付け替えられる。図4同様、この落水線512の下流にある落水線513および514が太線表示されている。落水線511から514に沿った地形断面、すなわちセル541から545までの標高が、地形断面表示部530に示されている。落水線511から514が矢印531から534に、セル541から545が矩形551から555にそれぞれ対応している。   The waterfall line 412 of FIG. 4 is replaced with the waterfall line 512 of FIG. As in FIG. 4, the falling water lines 513 and 514 downstream of the falling water line 512 are displayed in bold lines. The topographic section along the falling water lines 511 to 514, that is, the elevations of the cells 541 to 545 are shown in the topographic section display unit 530. Falling lines 511 to 514 correspond to arrows 531 to 534, and cells 541 to 545 correspond to rectangles 551 to 555, respectively.

この地形断面表示部530の左端のセル551の標高よりも右端セル555の標高の方が低い。やはりこの状態で、ユーザはこの編集内容を確定すること、または編集を継続することのどちらかを選択できる。ユーザがマウス112を操作(たとえば右クリック)すると、画面は図6に遷移する。   The altitude of the right end cell 555 is lower than the altitude of the left end cell 551 of the topographic section display unit 530. Again, in this state, the user can choose to either confirm this editing content or continue editing. When the user operates the mouse 112 (for example, right click), the screen transitions to FIG.

図6は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集内容を確定している状態(ステップ204)を示す説明図である。   FIG. 6 is an explanatory diagram showing a state (step 204) where the editing content in the replacement mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is fixed.

ユーザがマウス112を右クリックすると、「確定」および「キャンセル」と書かれたコンテキストメニュー601が出現し、「確定」を選択することでユーザは編集内容を確定することができ、「キャンセル」を選択することでコンテキストメニュー601を非表示にすることができる。この状態でユーザが「確定」を選択すると、落水線編集プログラム141はステップ205に移行し、画面は図7に遷移する。   When the user right-clicks the mouse 112, a context menu 601 written “Confirm” and “Cancel” appears. By selecting “Confirm”, the user can confirm the edited contents, and click “Cancel”. By selecting, the context menu 601 can be hidden. When the user selects “OK” in this state, the falling water line editing program 141 proceeds to step 205, and the screen transitions to FIG.

図7は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける地形を編集している状態(ステップ205)を示す説明図である。   FIG. 7 is an explanatory diagram showing a state (step 205) in which the terrain in the replacement mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is edited.

図7のセル741から745は、それぞれ図5のセル541から545に相当する。   Cells 741 to 745 in FIG. 7 correspond to cells 541 to 545 in FIG. 5, respectively.

GUIがこの状態に遷移すると、ユーザが編集コマンド入力部720の確定ボタン725、及び地形断面表示部730を操作することが可能になる。地形断面表示部730には実線の矩形(矩形751から755)および破線の矩形(矩形756から758)が描かれている。破線の矩形は図5および図6同様、セル742から744の標高を表す。実線の矩形は、地形断面表示部730の左端のセル751から右端セル755に向けて下り勾配になるように(すなわち、各落水線の終点のセルの標高が始点のセルの標高より低くなるように)自動的に算出された標高を表す。   When the GUI transitions to this state, the user can operate the confirmation button 725 and the topographic section display unit 730 of the editing command input unit 720. A solid line rectangle (rectangles 751 to 755) and a broken line rectangle (rectangles 756 to 758) are drawn on the topographic section display unit 730. The broken-line rectangle represents the altitude of the cells 742 to 744 as in FIGS. The solid line rectangle has a downward slope from the leftmost cell 751 of the topographic section display unit 730 toward the rightmost cell 755 (that is, the elevation of the cell at the end point of each falling water line is lower than the elevation of the cell at the start point). B) represents the automatically calculated elevation.

この自動的に算出された標高がユーザの意図と異なる場合、ユーザがそれを編集できる。ユーザが実線の矩形の上辺にマウスポインタを近づけると、マウスポインタが矢印型のアイコン701に変化し、矩形の上辺が変更可能であることを示す。また、セル751からセル755に向けて下り勾配であれば、確定ボタン725は操作可能な状態となっている。すなわち、ユーザが指定を開始したセル(741)から、ユーザが指定を確定したセル745にかけて全て下り勾配である場合にステップ205を完了することができる。   If this automatically calculated altitude is different from the user's intention, the user can edit it. When the user brings the mouse pointer close to the upper side of the solid rectangle, the mouse pointer changes to an arrow icon 701, indicating that the upper side of the rectangle can be changed. In addition, if the slope is downward from the cell 751 toward the cell 755, the confirm button 725 is operable. In other words, step 205 can be completed when all the slopes are from the cell (741) in which the user has started the specification to the cell 745 in which the user has specified the specification.

この状態でユーザが確定ボタン725を操作(たとえば確定ボタン上にマウスポインタを置いてマウス112を操作)すると、落水線編集プログラム141はステップ205を完了させるとともにステップ206から208までを実行し、画面は図8に遷移する。   In this state, when the user operates the confirm button 725 (for example, the mouse 112 is operated by placing the mouse pointer on the confirm button), the falling water line editing program 141 completes step 205 and executes steps 206 to 208. Transitions to FIG.

図8は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集後の落水線を表示した状態(ステップ208)を示す説明図である。   FIG. 8 is an explanatory diagram showing a state (step 208) in which the waterfall line after editing in the replacement mode of the GUI provided by the waterfall line editing program 141 according to the first embodiment of the present invention is displayed.

図8のセル842から844は、それぞれ図7のセル742から744に相当する。   Cells 842 to 844 in FIG. 8 correspond to cells 742 to 744 in FIG. 7, respectively.

ステップ206(標高データの変更)によって、セル842から844までの標高が変化する。したがって、この変化の影響を受けて、これらのセルを終点とする落水線が変化する。一方、これらのセルを始点とする落水線はステップ204でユーザが指定した通りに変更される。図8の例では、図7の落水線746から747が落水線846から847にそれぞれ自動的に付け替えられる。   In step 206 (altitude data change), the altitudes of cells 842 to 844 change. Therefore, under the influence of this change, the falling water line which ends these cells changes. On the other hand, the falling water line starting from these cells is changed as specified by the user in step 204. In the example of FIG. 8, the falling water lines 746 to 747 in FIG. 7 are automatically replaced with the falling water lines 846 to 847, respectively.

ユーザは落水線表示部810を参照して落水線が意図通りであることを確認し、データを保存するコマンドを必要に応じて発行する。これを受けた落水線編集プログラム141はステップ209から210を実行する。ステップ209(標高データ191の書き込み)およびステップ210(落水線データ192の書き込み)によって、編集作業の結果がHDD190に保存されることになる。   The user refers to the falling water line display unit 810, confirms that the falling water line is as intended, and issues a command for saving data as necessary. In response to this, the falling water line editing program 141 executes steps 209 to 210. The result of the editing work is stored in the HDD 190 by step 209 (altitude data 191 writing) and step 210 (waterfall line data 192 writing).

なお、図7の地形編集処理において、始点(セル751)および終点(セル755)の標高の編集を省略することで、よりユーザの利便性を向上させることができる。ユーザがこれらのセルを選択したという事実から、ユーザは始点(セル751)より上流の落水線、および始点(セル755)より下流の落水線を正しいと判断したと解釈できるためである。   In the terrain editing process of FIG. 7, the user convenience can be further improved by omitting the editing of the elevation of the start point (cell 751) and the end point (cell 755). This is because the fact that the user has selected these cells can be interpreted that the user has determined that the waterfall line upstream from the start point (cell 751) and the waterfall line downstream from the start point (cell 755) are correct.

第二に、ステップ203(編集モードの指定)においてユーザが「追加」モードを選択した場合について図9から図10を参照して説明する。   Second, the case where the user selects the “add” mode in step 203 (designation of edit mode) will be described with reference to FIGS.

図9は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、追加モードにおける地形を編集している状態(ステップ205)を示す説明図である。   FIG. 9 is an explanatory diagram showing a state (step 205) in which the terrain in the addition mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is being edited.

この図9は、落水線編集内容の指定処理(ステップ204)がなされた状態、すなわち図6に示したようなコンテキストメニュー601を通じて、落水線の編集内容がユーザによって確定された状態である。ステップ204においてユーザは、流域外のセルを始点とし、流域内のセルを終点とする落水線を指定する。図9では、ユーザによってセル941を始点とし、セル942を終点とする落水線911が指定されている。また、図4同様、この落水線911の下流にある落水線912が太線表示されている。   FIG. 9 shows a state in which the process of specifying the waterfall line editing process (step 204) has been performed, that is, a state in which the content of editing the waterfall line has been confirmed by the user through the context menu 601 as shown in FIG. In step 204, the user designates a falling water line that starts from a cell outside the basin and ends at a cell inside the basin. In FIG. 9, a falling water line 911 starting from the cell 941 and ending at the cell 942 is designated by the user. Further, as in FIG. 4, the falling water line 912 downstream of the falling water line 911 is indicated by a bold line.

落水線911から912に沿った地形断面、すなわちセル941から943までの標高が、地形断面表示部930に示されている。落水線911から912が矢印931から932に、セル941から943が矩形951から953にそれぞれ対応している。この地形断面表示部930の左端のセル951の標高よりも右端セル953の標高の方が低い。このようにステップ204は、ユーザが指定を開始したセル(941)の標高よりも、そのセルの下流に位置するいずれかのセルの標高が低い場合に完了させることができる。また、ステップ205は、ユーザが指定を開始したセル(941)から、ユーザが指定を確定したセル943にかけて全て下り勾配である場合に完了することができる。   The topographic section along the falling water lines 911 to 912, that is, the elevations of the cells 941 to 943 are shown in the topographic section display unit 930. Falling lines 911 to 912 correspond to arrows 931 to 932, and cells 941 to 943 correspond to rectangles 951 to 953, respectively. The altitude of the right end cell 953 is lower than the altitude of the left end cell 951 of the topographic section display unit 930. Thus, step 204 can be completed when the altitude of any cell located downstream of the cell (941) that the user has started to specify is lower than the altitude. Further, step 205 can be completed when all of the cells from the cell (941) in which the user has started the specification to the cell 943 in which the user has made the specification are descending.

つづいてユーザが確定ボタン925を操作すると、落水線編集プログラム141はステップ206から208を実行し、画面は図10に遷移する。   Subsequently, when the user operates the confirm button 925, the falling water line editing program 141 executes steps 206 to 208, and the screen transitions to FIG.

図10は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、追加モードにおける地形を編集後の落水線を表示した状態(ステップ208)を示す説明図である。   FIG. 10 is an explanatory diagram showing a state (step 208) of displaying the falling water line after editing the terrain in the addition mode of the GUI provided by the falling water line editing program 141 in the first embodiment of the present invention.

ステップ206(標高データの変更)によって、セル1042の標高が変化する。したがって、この変化の影響を受けて、これらのセルを終点とする落水線が変化する。図10の例では、落水線1011から1014が追加される。   In step 206 (altitude data change), the altitude of the cell 1042 changes. Therefore, under the influence of this change, the falling water line which ends these cells changes. In the example of FIG. 10, waterfall lines 1011 to 1014 are added.

第三に、ステップ203(編集モードの指定)においてユーザが「削除」モードを選択した場合について図11から図12を参照して説明する。   Third, the case where the user selects the “delete” mode in step 203 (designation of edit mode) will be described with reference to FIGS.

図11は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、削除モードにおける地形を編集している状態(ステップ205)を示す説明図である。   FIG. 11 is an explanatory diagram showing a state (step 205) in which the terrain in the deletion mode of the GUI provided by the falling water line editing program 141 according to the first embodiment of the present invention is being edited.

図9同様、この図11は落水線編集内容の指定処理(ステップ204)がなされた状態、すなわち図6に示したようなコンテキストメニュー601を通じて、落水線の編集内容がユーザにより確定された状態を示す。ただし、「追加」モードとは逆に、この「削除」モードではステップ204においてユーザは流域内のセルを始点とし、流域外のセルを終点とする落水線を指定する。ここで、「流域内」とは流域界1162によって囲まれた流域の内側、[流域外]とはその流域の外側を意味する。流域界1162は、図3の流域界362に対応するが、流域界362は上記の「追加」モードの編集によって流域界1162に変更されている。   Like FIG. 9, this FIG. 11 shows a state where the process of specifying the waterfall line editing content (step 204) has been performed, that is, a state where the editing content of the waterfall line has been confirmed by the user through the context menu 601 as shown in FIG. Show. However, contrary to the “add” mode, in this “delete” mode, in step 204, the user designates a falling water line starting from a cell in the basin and ending in a cell outside the basin. Here, “inside the basin” means inside the basin surrounded by the basin boundary 1162, and “outside the basin” means outside the basin. The basin boundary 1162 corresponds to the basin boundary 362 in FIG. 3, but the basin boundary 362 has been changed to the basin boundary 1162 by editing the “addition” mode described above.

図11では、ユーザによってセル1142を始点とし、セル1143を終点とする落水線1112が追加されている。図4同様、この落水線1112の下流にある落水線1113が太線表示されている。   In FIG. 11, a falling water line 1112 starting from the cell 1142 and ending at the cell 1143 is added by the user. As in FIG. 4, the falling water line 1113 downstream of the falling water line 1112 is indicated by a bold line.

落水線1111から1113に沿った地形断面、すなわちセル1141から1144までの標高が、地形断面表示部1130に示されている。落水線1111から1113が矢印1131から1133に、セル1141から1144が矩形1151から1154にそれぞれ対応している。この地形断面表示部1130の左端のセル1151の標高よりも右端セル1154の標高の方が低い。   The topographic section along the falling water lines 1111 to 1113, that is, the elevations of the cells 1141 to 1144 are shown in the topographic section display unit 1130. Falling lines 1111 to 1113 correspond to arrows 1131 to 1133, and cells 1141 to 1144 correspond to rectangles 1151 to 1154, respectively. The altitude of the right end cell 1154 is lower than the altitude of the left end cell 1151 of the topographic section display unit 1130.

なお、この図11におけるステップ204は以下の通り実行された。ユーザが指定を開始したセルは1141であり、このセルを始点とする落水線1111の終点として、ユーザは流域内のセル1142を指定した。この時点でステップ204を完了することは許可されない。この時点では、セル1141から流出した水が、ユーザによって指定された落水線を経由して、セル1141より標高の低い流域外のセルに流れ込むことができないためである。このため、落水線編集プログラム141はコンテキストメニュー601の「確定」メニューを出現させず、セル1142を始点とする落水線の終点を指定させる操作を受け付ける。   Note that step 204 in FIG. 11 was performed as follows. The cell that the user starts to designate is 1141, and the user designates the cell 1142 in the basin as the end point of the falling water line 1111 starting from this cell. At this point, step 204 is not allowed to complete. This is because, at this time, the water flowing out from the cell 1141 cannot flow into a cell outside the basin whose elevation is lower than that of the cell 1141 via the falling water line designated by the user. For this reason, the falling water line editing program 141 accepts an operation for designating the end point of the falling water line starting from the cell 1142 without causing the “confirm” menu of the context menu 601 to appear.

つづいてユーザはセル1142を始点とする落水線の終点をセル1143に指定した。この段階で落水線1113が太線表示される。この落水線1113は、セル1143が指定された時点(すなわちセル1143の標高が編集される前の時点)における最急勾配方向を示す。落水線1113の終点セルであるセル1144の標高はセル1141の標高より低く、かつ、そのセル1144は流域外のセル(すなわち流域界1162の外側のセル)である。この場合、ユーザの指定に整合するように各セルの標高を変更することによって、セル1141を、流域界362が示す流域から削除することができる。このため、セル1143が指定された時点で、ステップ204を完了することが許可される。   Subsequently, the user designates the end point of the falling water line starting from the cell 1142 as the cell 1143. At this stage, the falling water line 1113 is displayed as a bold line. The falling water line 1113 indicates the steepest gradient direction at the time when the cell 1143 is designated (that is, the time before the altitude of the cell 1143 is edited). The altitude of the cell 1144 that is the end point cell of the falling water line 1113 is lower than the altitude of the cell 1141, and the cell 1144 is a cell outside the basin (that is, a cell outside the basin boundary 1162). In this case, the cell 1141 can be deleted from the basin indicated by the basin boundary 362 by changing the elevation of each cell to match the user's designation. Thus, step 204 is permitted to be completed when cell 1143 is designated.

コンテキストメニュー601の「確定」メニューをユーザが選択すると、落水線編集プログラム141はステップ204を完了させる。つづいてユーザが確定ボタン1125を操作すると、落水線編集プログラム141はステップ206から208を実行し、画面は図12に遷移する。   When the user selects the “confirm” menu of the context menu 601, the falling water line editing program 141 completes step 204. Subsequently, when the user operates the confirm button 1125, the falling water line editing program 141 executes steps 206 to 208, and the screen transitions to FIG.

図12は、本発明の第1の実施形態における落水線編集プログラム141が提供するGUIの、削除モードにおける地形を編集後の落水線を表示した状態(ステップ208)を示す説明図である。   FIG. 12 is an explanatory diagram showing a state (step 208) in which the falling line after editing the topography in the deletion mode of the GUI provided by the falling line editing program 141 according to the first embodiment of the present invention is displayed.

図12のセル1241から1243は、それぞれ図11のセル1141から1143に相当する。また、図12の落水線1211から1213は、それぞれ図11の落水線1111から1113に相当する。   The cells 1241 to 1243 in FIG. 12 correspond to the cells 1141 to 1143 in FIG. 11, respectively. Moreover, the waterfall lines 1211 to 1213 in FIG. 12 correspond to the waterfall lines 1111 to 1113 in FIG. 11, respectively.

ステップ206(標高データの変更)によって、セル1242から1243の標高が変化する。したがって、この変化の影響を受けて、これらのセルを終点とする落水線が変化する。図12の例では、落水線1214が削除される。また、ユーザの指定した落水線1211から1213も流域から削除される。これに伴い流域界も図3の流域界362から図12の流域界1262のように変更される。   In step 206 (altitude data change), the altitudes of the cells 1242 to 1243 change. Therefore, under the influence of this change, the falling water line which ends these cells changes. In the example of FIG. 12, the falling water line 1214 is deleted. Also, the falling water lines 1211 to 1213 designated by the user are also deleted from the basin. Accordingly, the watershed boundary is also changed from the watershed boundary 362 in FIG. 3 to the watershed boundary 1262 in FIG.

図13は、本発明の第1の実施形態の落水線編集プログラム141の機能モジュール構成を示すパッケージ図である。   FIG. 13 is a package diagram showing the functional module configuration of the falling water line editing program 141 according to the first embodiment of this invention.

落水線編集プログラム141は、ウィンドウ管理モジュール1310およびロジック管理モジュール1320の2つのモジュールから構成される。ウィンドウ管理モジュール1310には、ウィンドウ枠管理部1311、落水線表示部1312、編集コマンド入力部1313、および地形断面表示部1314が含まれる。一方、ロジック管理モジュール1320には、落水線編集部1321、落水線生成部1322、およびファイル入出力部1323が含まれる。   The falling water line editing program 141 includes two modules, a window management module 1310 and a logic management module 1320. The window management module 1310 includes a window frame management unit 1311, a falling water line display unit 1312, an edit command input unit 1313, and a topographic section display unit 1314. On the other hand, the logic management module 1320 includes a waterfall line editing unit 1321, a waterfall line generation unit 1322, and a file input / output unit 1323.

図3に示した落水線編集プログラム141のGUIについて、ウィンドウ300はウィンドウ枠管理部1311が管理し、その内部の落水線表示部310、編集コマンド入力部320、および地形断面表示部330は落水線表示部1312、編集コマンド入力部1313、および地形断面表示部1314がそれぞれ管理する。また、図2に示した落水線編集プログラム141のシーケンスにおいて、落水線データ192の読み込み(ステップ201)、標高データ191の書き込み(ステップ209)、および落水線データ192の書き込み(ステップ210)は主にファイル入出力部1323が管理する。落水線編集指示の受け取り(ステップ204)、落水線編集指示を地形の編集指示に変換(ステップ205)、標高データの変更(ステップ206)は主に落水線編集部1321が管理する。落水線データの変更(ステップ207)は主に落水線生成部1322が管理する。落水線生成部1322としては、たとえば発明者らが特許文献4で開示した発明「流域推定プログラム」を使うことができる。   As for the GUI of the waterfall line editing program 141 shown in FIG. 3, the window 300 is managed by the window frame management unit 1311, and the waterfall line display unit 310, the editing command input unit 320, and the topographic cross section display unit 330 inside the window 300 The display unit 1312, the edit command input unit 1313, and the topographical section display unit 1314 manage each. Further, in the sequence of the waterfall line editing program 141 shown in FIG. 2, the reading of the waterfall line data 192 (step 201), the writing of the altitude data 191 (step 209), and the writing of the waterfall line data 192 (step 210) are mainly performed. The file input / output unit 1323 manages the file. Receiving the falling water line editing instruction (step 204), converting the falling water line editing instruction into a terrain editing instruction (step 205), and changing elevation data (step 206) are mainly managed by the falling water line editing unit 1321. The change of the waterfall line data (step 207) is mainly managed by the waterfall line generator 1322. As the falling water line generation unit 1322, for example, the invention “basin estimation program” disclosed by the inventors in Patent Document 4 can be used.

図14は、本発明の第1の実施形態のセルのデータ構造を示す説明図である。   FIG. 14 is an explanatory diagram illustrating a cell data structure according to the first embodiment of this invention.

図14の表1400にセル型のデータを示す。セル型(クラス名Cell)は、Glev、IsTheBasin、LowerDirection、およびInvalidDirectionsの4つのメンバ変数を持つクラスとする。Glevは浮動小数点型であり、標高を保持する。IsTheBasinはブール型であり、セルが流域内のセルであればtrueを、そうでなければfalseを保持する。LowerDirectionは列挙型であり、水が流れる方向(8種類)、またはそのセルから水が流れないことを示す合計9種類の値のいずれかを保持する。   Table 1400 in FIG. 14 shows cell type data. The cell type (class name Cell) is a class having four member variables of Glev, IsTheBasin, LowerDirection, and InvalidDirections. Glev is a floating-point type and retains elevation. IsTheBasin is a Boolean type and holds true if the cell is in a basin, false otherwise. LowerDirection is an enumeration type, and holds either of the directions in which water flows (eight types) or a total of nine types of values indicating that water does not flow from the cell.

InvalidDirectionsはビットフィールドを表す列挙型である。InvalidDirectionsが保持できる値はLowerDirection同様、セルから水が流れる方向(8種類)、またはそのセルから水が流れないことを示す合計9種類であるが、LowerDirectionとは異なりこれら9種類がそれぞれtrueまたはfalseの値を保持する。   InvalidDirections is an enumerated type that represents a bit field. As with LowerDirection, InvalidDirections can hold a total of nine values indicating the direction in which water flows from the cell (eight types) or no water flowing from the cell. However, unlike LowerDirection, these nine types are true or false, respectively. Holds the value of.

流域界362は、IsTheBasinを参照し流域内のセルと流域外のセルとの境界に作成される。   The basin boundary 362 is created at the boundary between the cells in the basin and the cells outside the basin with reference to IsTheBasin.

InvalidDirectionsは、無効な落水線の方向、すなわち、落水線の生成が禁止される方向を示す。たとえば、ユーザが作成した落水線を横切る方向の値がtrueとなる。これは、ユーザが作成した落水線を横切る方向が無効な方向であること、すなわちその方向の落水線の生成が禁止されることを意味する。同様に、ユーザがあるセルを始点とする落水線の方向を指定した場合、そのセルについて、指定された方向以外の方向のInvalidDirectionsの値はtrueになる。落水線生成部1322はステップ207においてこのInvalidDirectionsを参照し、その値trueに対応する方向の落水線を生成しないようにする。なお、このセル型のデータは拡張可能であり、他の変数を持たせてもよい。   InvalidDirections indicates the direction of the invalid waterfall line, that is, the direction in which the generation of the waterfall line is prohibited. For example, the value in the direction across the falling water line created by the user is true. This means that the direction crossing the waterfall created by the user is an invalid direction, that is, generation of a waterfall in that direction is prohibited. Similarly, when the direction of the waterfall line starting from a certain cell is designated by the user, the value of InvalidDirections in a direction other than the designated direction is true for that cell. In step 207, the falling water line generation unit 1322 refers to this InvalidDirections so as not to generate a falling water line in the direction corresponding to the value true. This cell type data can be expanded and may have other variables.

以下、これらの画面遷移を実現する処理シーケンス(図2)におけるステップ204、205の詳細を説明する。これら以外のステップの処理内容は、画面遷移から明らかであるため説明は割愛する。   Details of steps 204 and 205 in the processing sequence (FIG. 2) for realizing these screen transitions will be described below. Since the processing contents of the steps other than these are obvious from the screen transition, the description is omitted.

図15は、本発明の第1の実施形態の落水線編集内容の指定(ステップ204)の処理における、落水線編集プログラム141とハードウェア資源との相互作用の詳細を示すシーケンス図である。   FIG. 15 is a sequence diagram illustrating details of the interaction between the waterfall line editing program 141 and the hardware resource in the processing of specifying the waterfall line editing content (step 204) according to the first embodiment of this invention.

ステップ204において落水線編集プログラム141はユーザからの開始セル(すなわち対象とする落水線の始点セル)の指定を受け付ける(ステップ1501)。ユーザは入出力部110を通じ開始セルを指定する(ステップ1502)。この際、ステップ203で指定した編集モードが「付け替え」および「削除」の場合、流域内にあるセルのみ指定可能にする。一方「追加」の場合、流域外にあるセルのみ指定可能にする。   In step 204, the falling water line editing program 141 accepts designation of the start cell (that is, the start cell of the target falling water line) from the user (step 1501). The user designates a start cell through the input / output unit 110 (step 1502). At this time, if the editing mode designated in step 203 is “replacement” or “deletion”, only the cells in the basin can be designated. On the other hand, in the case of “add”, only cells outside the basin can be specified.

つづいて落水線編集プログラム141は通過セルの指定を受け付ける(ステップ1503)。通過セルとは、開始セルを始点とする落水線の、終点となるセルである。図3の画面状態は、このステップ1502に該当する。   Subsequently, the falling water line editing program 141 accepts designation of a passing cell (step 1503). A passing cell is a cell that is an end point of a falling water line that starts from a start cell. The screen state in FIG. 3 corresponds to this step 1502.

ユーザは入出力部110を通じ通過セルを指定する(ステップ1504)。このようにして入力された落水線は、「地形編集指示に変換可能」、「地形編集指示に変換不可能」、および「不正」の3種類に判別される。これらの判別方法は後述する図16を用いて説明する。   The user designates a passing cell through the input / output unit 110 (step 1504). The falling water line input in this manner is classified into three types: “can be converted into terrain editing instruction”, “cannot be converted into terrain editing instruction”, and “illegal”. These determination methods will be described with reference to FIG.

入力された落水線が「不正」であると判定された場合、入力値は拒絶され、ステップ1503に戻る。それ以外の場合、落水線編集プログラム141は落水線編集指示を地形編集指示へ変換する(ステップ1505)。このステップ1505において標高データ191が読み込まれる(ステップ1506)。また、ステップ1505の処理結果が入出力部110に地形断面図として表示される(ステップ1507)。   If it is determined that the input waterfall line is “illegal”, the input value is rejected and the process returns to step 1503. In other cases, the falling water line editing program 141 converts the falling water line editing instruction into a terrain editing instruction (step 1505). In step 1505, the altitude data 191 is read (step 1506). In addition, the processing result of step 1505 is displayed as a topographic sectional view on the input / output unit 110 (step 1507).

落水線編集プログラム141は、「地形編集指示に変換可能」な場合は確定指示またはさらなる通過セルの指定を受け付け、「地形編集指示に変換不可能」の場合はさらなる通過セルの指定を受け付ける(ステップ1508)。図4および5の画面状態は、このステップ1508に該当する。   The falling water line editing program 141 accepts a confirmation instruction or further passing cell designation when “can be converted into terrain editing instruction”, and accepts further passing cell designation when “cannot be converted into terrain editing instruction” (step) 1508). The screen states in FIGS. 4 and 5 correspond to this step 1508.

ユーザは入出力部110を通じ確定指示または通過セルを指定する(ステップ1509)。図6の画面は、このステップ1509において確定指示を入力している状態である。   The user designates a confirmation instruction or a passing cell through the input / output unit 110 (step 1509). The screen in FIG. 6 is in a state where a confirmation instruction is input in step 1509.

ユーザが入出力部110を通じ通過セルを指定した場合、ステップ1505に戻る(ステップ1510)。確定指示の場合はステップ204を終了する。   When the user designates a passing cell through the input / output unit 110, the process returns to Step 1505 (Step 1510). In the case of a confirmation instruction, step 204 is ended.

図16は、本発明の第1の実施形態における落水線編集内容の指定(ステップ204)の処理のアルゴリズムを示すフローチャートである。   FIG. 16 is a flowchart showing an algorithm of processing for designating the content of the falling water line editing (step 204) in the first embodiment of the present invention.

図15と図16との関係は以下の通りである; ステップ1501がステップ1601に、ステップ1503がステップ1602−1603に、ステップ1505−1506がステップ1604−1610に、ステップ1508がステップ1611−1612に対応する。   The relationship between FIG. 15 and FIG. 16 is as follows: Step 1501 to Step 1601, Step 1503 to Step 1602-1603, Step 1505-1506 to Step 1604-1610, Step 1508 to Step 1611-1612 Correspond.

落水線編集プログラム141はユーザからの開始セルの指定を受け付ける(ステップ1601)。落水線編集プログラム141は、ユーザからの入力を受け付ける関数WaitUserInputを呼び出し、ユーザから入力された値をtheCellに格納する。そして、落水線編集プログラム141は、この値theCellは要素のない空のセル配列Cellsの最初の要素として追加する(ステップ1602)。   The falling water line editing program 141 accepts designation of the start cell from the user (step 1601). The falling water line editing program 141 calls a function WaitUserInput that receives an input from the user, and stores the value input by the user in theCell. The falling water line editing program 141 adds this value theCell as the first element of the empty cell array Cells having no element (step 1602).

ただし、編集モードが「付け替え」かつtheCellが流域外にある場合、または編集モードが「追加」かつtheCellが流域内にある場合、または編集モードが「削除」かつtheCellが流域外にある場合、落水線編集プログラム141はユーザからの入力を拒絶しステップ1601に戻る。   However, if the editing mode is “Replace” and theCell is outside the basin, or if the editing mode is “Add” and theCell is in the basin, or if the editing mode is “Delete” and theCell is outside the basin, The line editing program 141 rejects the input from the user and returns to step 1601.

つづいて落水線編集プログラム141は、ユーザからの通過セルの指定を受け付け(ステップ1603)、ユーザから入力された値をtheCellに格納する。このことは、セル配列Cellsの最後の要素とtheCellとを結ぶ方向の落水線(たとえば、ステップ1601において図4のセル441が指定され、ステップ1603においてセル442が指定された場合、落水線411)がユーザによって指定されたことを意味する。   Subsequently, the falling water line editing program 141 accepts designation of a passing cell from the user (step 1603), and stores the value input by the user in theCell. This is the falling water line in the direction connecting the last element of the cell array Cells and theCell (for example, when the cell 441 in FIG. 4 is specified in step 1601 and the cell 442 is specified in step 1603, the falling line 411). Is specified by the user.

ただし、落水線編集プログラム141は、入力された落水線が不正なものであるか否かを判定し、不正なものである場合はユーザから入力された値をtheCellに格納しない。具体的には、次の場合、落水線編集プログラム141はユーザが指定した落水線を「不正」な落水線と判定してユーザからの入力を拒絶する(ステップ1604);(1)theCellの値がすでにセル配列Cellsに格納されている場合、または(2)新たな落水線が既存のユーザ指定の落水線を交差する場合。   However, the falling water line editing program 141 determines whether or not the input falling water line is illegal, and if it is incorrect, the value input by the user is not stored in theCell. Specifically, in the following case, the falling water line editing program 141 determines that the falling water line designated by the user is an “illegal” falling water line and rejects the input from the user (step 1604); (1) the value of theCell Is already stored in the cell array Cells, or (2) a new waterfall line intersects an existing user-specified waterfall line.

なお、theCellの値がすでにセル配列Cellsに格納されていることは、入力された新たな落水線と既に入力されている落水線とがループを形成することを意味する。すなわち、図23に記載された落水線がすべてユーザ指定の落水線であると仮定した場合、図23(a)は上記(1)の場合に、図23(b)は上記(2)の場合に該当する。   The fact that the value of theCell is already stored in the cell array Cells means that a new waterfall line input and a waterfall line already input form a loop. That is, when it is assumed that all the falling water lines shown in FIG. 23 are user-specified water falling lines, FIG. 23A shows the case of (1) above, and FIG. 23B shows the case of (2) above. It corresponds to.

ユーザが指定した落水線が「不正」な落水線でない場合、ユーザが指定した落水線は、「地形編集指示に変換可能」な落水線または「地形編集指示に変換不可能」な落水線のいずれかである。この場合、落水線編集プログラム141はユーザから入力された値theCellをセル配列Cellsに追加する(ステップ1605)。この際、落水線編集プログラム141は、セル配列Cellsの追加前の最後の要素(変数cellとする)のInvalidDirectionsに、cellとtheCellとを結ぶ方向(すなわちユーザが指定した落水線の方向)をのぞく7方向を設定する。さらに、落水線編集プログラム141は、cellに隣接するセルのInvalidDirectionsに、cellとtheCellとを結ぶ方向と交差する方向を設定する。   If the user-specified waterfall line is not an "invalid" waterfall line, the user-specified waterfall line is either a waterfall line that can be converted to a terrain editing instruction or a waterfall line that cannot be converted to a terrain editing instruction. It is. In this case, the falling water line editing program 141 adds the value theCell input by the user to the cell array Cells (step 1605). At this time, the waterfall editing program 141 removes the direction connecting the cell and theCell (that is, the direction of the waterfall specified by the user) to InvalidDirections of the last element before adding the cell array Cells (referred to as a variable cell). Set 7 directions. Furthermore, the falling water line editing program 141 sets the direction intersecting the direction connecting the cell and theCell to InvalidDirections of the cell adjacent to the cell.

なお、このように設定されたInvalidDirectionsは、ステップ207において、落水線生成部1322によって参照される。落水線生成部1322は、ステップ207において、たとえば特許文献4に開示されたように、最急勾配法によって落水線を生成する。このとき、落水線生成部1322は、各セルのInvalidDirectionsを参照して、無効な方向以外の方向のうち最急勾配の方向の落水線を生成する。これによって、ユーザが指定した落水線がステップ207において確実に生成され、さらに、ユーザが指定した落水線と交差する落水線の生成が禁止される。   Note that InvalidDirections set in this way are referred to by the falling water line generator 1322 in step 207. In step 207, the falling water line generation unit 1322 generates a falling water line by the steepest gradient method, for example, as disclosed in Patent Document 4. At this time, the falling water line generation unit 1322 refers to InvalidDirections of each cell and generates a falling water line in the direction of the steepest gradient among directions other than the invalid direction. Thereby, the waterfall line designated by the user is reliably generated in step 207, and the generation of the waterfall line intersecting with the waterfall line designated by the user is prohibited.

つづいて落水線編集プログラム141は、セル配列Cellsの最後の要素、すなわちtheCellの下流のセルを変数cellに代入する(ステップ1606)。このtheCellの下流セルとは、theCellを始点とする落水線の終点セルのことであり、theCellとこの下流セルとは隣接する。たとえばtheCellが図4のセル442とすると、下流セルはセル443である。この下流セルは、たとえば最急勾配法によって定められる。ただし、既にtheCellについて無効な方向(InvalidDirections)が定められている場合、その無効方向を除く方向のうち最急勾配の方向の落水線が定められる。後述するステップ1607も同様である。   Subsequently, the falling water line editing program 141 substitutes the last element of the cell array Cells, that is, the cell downstream of theCell, in the variable cell (step 1606). The downstream cell of theCell is an end cell of a falling water line that starts from theCell, and theCell and this downstream cell are adjacent to each other. For example, if theCell is the cell 442 in FIG. 4, the downstream cell is the cell 443. This downstream cell is determined by the steepest gradient method, for example. However, when an invalid direction (InvalidDirections) has already been defined for theCell, a falling water line with the steepest gradient direction among the directions excluding the invalid direction is defined. The same applies to step 1607 described later.

落水線の始点が流域外である場合、下流セルが落水線データ192に存在しない。この場合、落水線編集プログラム141は地形データ191から下流セルを求めてもよいし、変数cellにtheCellを代入しステップ1610に進んでもよい。   When the start point of the waterfall line is outside the basin, the downstream cell does not exist in the waterfall data 192. In this case, the falling water line editing program 141 may obtain a downstream cell from the topographic data 191, or may substitute theCell into a variable cell and proceed to Step 1610.

このステップ1606の終了後、落水線編集プログラム141は、セル配列LowerCellsを初期化(すなわちセル配列LowerCellsに含まれる全要素を削除)しておく。つづいて落水線編集プログラム141は、ステップ1606で探索した下流セルをセル配列LowerCellsに追加する(ステップ1608)。   After the end of step 1606, the falling water line editing program 141 initializes the cell array LowerCells (that is, deletes all elements included in the cell array LowerCells). Subsequently, the falling water line editing program 141 adds the downstream cell searched in Step 1606 to the cell array LowerCells (Step 1608).

つづいて、落水線編集プログラム141は、ステップ1608で追加された下流セルに至る落水線が「地形編集指示に変換不可能」であるか否かを判定する(ステップ1609)。具体的には、セル配列LowerCellsに変数cellが含まれている場合、ユーザに指定された落水線及びその下流の落水線がループを形成する(図23(a)参照)。このような場合、および、ステップ1608で追加された下流セルに至る落水線が、既にユーザに指定された落水線またはその下流の落水線と交差する場合(図23(b)参照)、ユーザからの入力は「地形編集指示に変換不可能」である。この場合はステップ1603に戻り、落水線編集プログラム141はユーザからのさらなる通過セルの入力を受け付ける。   Subsequently, the falling water line editing program 141 determines whether or not the falling water line that reaches the downstream cell added in Step 1608 is “cannot be converted into a terrain editing instruction” (Step 1609). Specifically, when the variable cell is included in the cell array LowerCells, the falling line designated by the user and the falling line downstream thereof form a loop (see FIG. 23A). In such a case, and when the falling water line reaching the downstream cell added in step 1608 intersects the falling water line already designated by the user or the downstream falling water line (see FIG. 23B), the user The input of “cannot be converted into terrain editing instructions”. In this case, the process returns to step 1603, and the falling water line editing program 141 receives an input of a further passing cell from the user.

このセル配列LowerCellsに変数cellが含まれていない場合(ステップ1609)、かつ開始セルの標高よりも変数cellの標高が低い場合(ステップ1610)、ユーザからの入力は「地形編集指示に変換可能」である。この場合、落水線編集プログラム141の処理はステップ1611に進む。一方、開始セルの標高よりも変数cellの標高が低くない場合は、ユーザからの入力が「地形編集指示に変換可能」であるか「地形編集指示に変換不可能」であるかを判定できないため、落水線編集プログラム141は変数cellの下流セルを探索し、探索された下流セルを変数cellに格納した(ステップ1607)のち、再びステップ1608を実行する。   When variable cell is not included in this cell array LowerCells (step 1609), and when the elevation of variable cell is lower than the elevation of the start cell (step 1610), the input from the user is “can be converted into terrain editing instruction” It is. In this case, the process of the falling water line editing program 141 proceeds to step 1611. On the other hand, if the elevation of the variable cell is not lower than the elevation of the start cell, it cannot be determined whether the input from the user is "can be converted to terrain editing instructions" or "cannot be converted to terrain editing instructions" The falling water line editing program 141 searches for the downstream cell of the variable cell, stores the searched downstream cell in the variable cell (step 1607), and then executes step 1608 again.

図7の例では、セル741がユーザによって指定された開始セル、セル742および743がユーザによって指定された通過セル、セル744および745が探索された下流セルである。開始セルから通過セルに至る落水線、および、通過セルから通過セルに至る落水線がユーザ指定の落水線である。   In the example of FIG. 7, cell 741 is a start cell specified by the user, cells 742 and 743 are passing cells specified by the user, and cells 744 and 745 are searched downstream cells. The waterfall line from the start cell to the passing cell and the waterfall line from the passing cell to the passing cell are user-specified waterfall lines.

なお、図7の例では、ユーザによって指定された末尾の落水線の終点であるセル743の標高が、先頭の落水線の始点であるセル741の標高より高いため、入力された指示が地形編集指示に変換可能であるか否かを判定するために、セル743の下流を探索する必要があった。しかし、仮に図7の例においてセル744および745もユーザによって通過セルとして指定された場合、セル745の標高がセル741の標高より低いため、セル745の下流の落水線が既に指定されたセルに戻る(すなわちループが形成される)または既に指定された落水線と交差する可能性がいずれもない。このため、セル745の下流セルを探索する必要はない。   In the example of FIG. 7, since the altitude of the cell 743 that is the end point of the last falling water line specified by the user is higher than the altitude of the cell 741 that is the starting point of the first falling water line, the input instruction is It was necessary to search downstream of the cell 743 to determine whether or not it can be converted into an instruction. However, if the cells 744 and 745 are also designated as passing cells by the user in the example of FIG. 7, since the altitude of the cell 745 is lower than the altitude of the cell 741, the downfall line downstream of the cell 745 has already been designated. There is no possibility of going back (ie, forming a loop) or intersecting the already specified waterfall. For this reason, it is not necessary to search the downstream cell of the cell 745.

ただし、ステップ1607において変数cellが流域外であるためにそれの下流セルが存在しない場合には、落水線編集プログラム141は地形データ191から下流セルを求めてもよいし、ステップ1603に進んでもよい。   However, if there is no downstream cell because the variable cell is outside the basin in step 1607, the falling water line editing program 141 may obtain the downstream cell from the topographic data 191 or may proceed to step 1603. .

ユーザからの入力が「地形編集指示に変換可能」である場合、落水線編集プログラム141はユーザからのさらなる通過セルの入力、または確定指示を受け付け、ユーザの入力を変数theCellに格納する(ステップ1611)。変数theCellがさらなる通過セルの入力である場合はステップ1603に戻り、変数theCellが確定指示である場合はステップ204を終了する(ステップ1612)。   When the input from the user is “can be converted into a terrain editing instruction”, the falling water line editing program 141 receives an input of a further passing cell or a confirmation instruction from the user, and stores the user's input in a variable theCell (step 1611). ). When the variable theCell is an input of a further passing cell, the process returns to step 1603, and when the variable theCell is a confirmation instruction, the step 204 is ended (step 1612).

図17は、本発明の第1の実施形態の地形編集内容の指定(ステップ205)の処理における、落水線編集プログラム141とハードウェア資源との相互作用の詳細を示すシーケンス図である。   FIG. 17 is a sequence diagram illustrating details of the interaction between the waterfall line editing program 141 and the hardware resources in the processing for specifying the terrain editing content (step 205) according to the first embodiment of this invention.

落水線編集プログラム141は、セル標高を仮に決める(ステップ1701)。仮決めの方法は後述する図18を用いて説明する。   The falling water line editing program 141 temporarily determines the cell altitude (step 1701). The provisional determination method will be described with reference to FIG.

落水線編集プログラム141は、ステップ1701における仮決めの結果を地形断面図として入出力部110に表示し(ステップ1702)、ユーザからの確定指示または標高の指定を受け付ける(ステップ1703)。図7、図9、および図11の画面状態は、このステップ1703に該当する。   The falling water line editing program 141 displays the result of provisional determination in step 1701 as a topographic sectional view on the input / output unit 110 (step 1702), and accepts a confirmation instruction from the user or designation of altitude (step 1703). The screen states in FIGS. 7, 9, and 11 correspond to this step 1703.

ユーザは、入出力部110を通じ確定指示または標高の指定を行う(ステップ1704)。ユーザが標高の指定を行った場合(ステップ1705)ステップ1703に戻り(ステップ1706)、確定指示の場合ステップ205を終了する。   The user performs a confirmation instruction or an altitude designation through the input / output unit 110 (step 1704). When the user designates the altitude (step 1705), the process returns to step 1703 (step 1706), and in the case of a confirmation instruction, step 205 is ended.

図18は、本発明の第1の実施形態の地形編集内容の指定(ステップ205)の処理のアルゴリズムを示すフローチャートである。   FIG. 18 is a flowchart showing an algorithm for specifying the terrain editing content (step 205) according to the first embodiment of this invention.

図17と図18との関係は以下の通りである; ステップ1701がステップ1801−1804に、ステップ1703がステップ1805に、ステップ1705がステップ1806に、ステップ1706がステップ1807−1808に対応する。   The relationship between FIG. 17 and FIG. 18 is as follows; Step 1701 corresponds to Steps 1801-1804, Step 1703 corresponds to Step 1805, Step 1705 corresponds to Step 1806, and Step 1706 corresponds to Steps 1807-1808.

落水線編集プログラム141は、図16のステップ1608で作成したセル配列LowerCellsをセル配列Cellsに追加する(ステップ1801)。   The falling water line editing program 141 adds the cell array LowerCells created in step 1608 of FIG. 16 to the cell array Cells (step 1801).

つづいて、落水線編集プログラム141は、これらのセルの平均勾配AveSlopeを算出する(ステップ1802)。このAveSlopeの値はセル配列Cellsの最初の要素(図7の例では、セル751)の標高Cells.Front.Glevと最後の要素(図7の例では、セル755)の標高Cells.Last.Glevとの差を、落水線の長さの合計値で割ることによって求める。   Subsequently, the falling water line editing program 141 calculates the average slope AveSlope of these cells (step 1802). The value of this AveSlope is the elevation Cells.Front.Glev of the first element (cell 751 in the example of FIG. 7) and the elevation Cells.Last.Glev of the last element (cell 755 in the example of FIG. 7) of the cell array Cells. Is divided by the total length of the falling water lines.

つづいて、落水線編集プログラム141は、このAveSlopeを用いてセル標高の仮の値を求める(ステップ1803)。セル配列Cellsのi番目のセルの標高Cells[i].Glevの仮の値はAveSlope * Distance(Cells[i-1], Cells[i]) + Cells[i-1].Glevとする。ただし、Distance(cell0, cell1)はcell0とcell1の間の距離を返す関数である。また、最初の要素(Cells[0]、すなわちCells.Front)および最後の要素(Cells.Last)については、標高の仮の値を求めない。これによって、最初の要素から最後の要素に至るまでに落水線が通過する隣接セル間の勾配が一定になる。図7の例では、セル751から755に至る各落水線の方向が下り勾配方向に一致するように、セル752から754までの標高が変更され、かつ、それらの勾配が一定になる。   Subsequently, the falling water line editing program 141 obtains a temporary value of the cell elevation using this AveSlope (step 1803). The temporary value of the elevation Cell [i] .Glev of the i-th cell of the cell array Cells is AveSlope * Distance (Cells [i-1], Cells [i]) + Cells [i-1] .Glev. However, Distance (cell0, cell1) is a function that returns the distance between cell0 and cell1. In addition, for the first element (Cells [0], that is, Cells.Front) and the last element (Cells.Last), a temporary value of altitude is not obtained. Thereby, the gradient between adjacent cells through which the waterfall line passes from the first element to the last element becomes constant. In the example of FIG. 7, the altitudes of the cells 752 to 754 are changed so that the directions of the falling water lines from the cells 751 to 755 coincide with the downward gradient direction, and the gradients thereof become constant.

なお、この標高の仮の値は、セル配列Cellsの全要素間が下り勾配となる限り、別の方法によって求めてもよい。したがって、ユーザによって指定された全ての落水線が、最急勾配方向とは一致しないとしても、下り勾配方向とは一致する場合、セルの標高値を変更しなくてもよい(すなわち、ステップ205および206を省略してもよい)。   The temporary value of the altitude may be obtained by another method as long as all elements of the cell array Cells have a downward gradient. Therefore, even if all the falling water lines designated by the user do not coincide with the steepest gradient direction, the altitude value of the cell does not have to be changed if they coincide with the downward gradient direction (ie, step 205 and 206 may be omitted).

つづいて、落水線編集プログラム141は、セル配列Cellsの全要素間が下り勾配であることを示すフラグIsValidUserChannelをtrueにする(ステップ1804)。これによって、標高の仮の値を、各セルの標高として確定することが可能になる。すなわち、フラグIsValidUserChannelがtrueになると、確定ボタン(たとえば図7の確定ボタン725)が表示され、それに対するユーザの操作を受け付けることが可能になる。   Subsequently, the falling water line editing program 141 sets a flag IsValidUserChannel indicating that the gradient between all the elements of the cell array Cells is true (step 1804). This makes it possible to determine the temporary altitude value as the altitude of each cell. That is, when the flag IsValidUserChannel becomes true, a confirmation button (for example, the confirmation button 725 in FIG. 7) is displayed, and it becomes possible to accept the user's operation for that.

つづいて、落水線編集プログラム141は、標高の仮の値を入出力部110に表示しユーザからの指示を受け付ける(ステップ1805)。落水線編集プログラム141は、フラグIsValidUserChannelがtrueである場合は標高の変更または確定の指示を受け付け、フラグIsValidUserChannelがfalseである場合は標高の変更を受け付ける。ユーザの指示は変数Commandに格納される。   Subsequently, the falling water line editing program 141 displays a temporary value of the altitude on the input / output unit 110 and receives an instruction from the user (step 1805). The falling water line editing program 141 accepts an elevation change or confirmation instruction when the flag IsValidUserChannel is true, and accepts an elevation change when the flag IsValidUserChannel is false. User instructions are stored in the variable Command.

変数Commandが標高の変更の指示である場合(ステップ1806)、落水線編集プログラム141は、その指示を標高に反映し、セル配列Cellsの全要素間の勾配を計算する(ステップ1807)。落水線編集プログラム141は、すべての要素間の勾配が下り勾配の場合、フラグValidUserChannelをtrueにする。一方、いずれかの要素間の勾配が下り勾配でない(すなわち上り勾配である)場合、落水線編集プログラム141は、フラグValidUserChannelをfalseにして、ステップ1805に戻る(ステップ1808)。ステップ1806において変数Commandが標高の変更の指示である場合(すなわち確定ボタンが操作された場合)、ステップ205を終了する。   When the variable Command is an instruction to change the altitude (step 1806), the falling water line editing program 141 reflects the instruction on the altitude and calculates the gradient between all elements of the cell array Cells (step 1807). The falling water line editing program 141 sets the flag ValidUserChannel to true when the gradient between all elements is a downward gradient. On the other hand, if the gradient between any of the elements is not a downward gradient (that is, an upward gradient), the falling water line editing program 141 sets the flag ValidUserChannel to false and returns to step 1805 (step 1808). In step 1806, when the variable Command is an instruction to change the altitude (that is, when the confirmation button is operated), step 205 is ended.

上記のように標高を編集することによって、ユーザが指定した落水線の方向は必ず下り勾配方向と一致する。しかし、ユーザが指定した落水線が最急勾配の方向と一致するとは限らない。したがって、ステップ206において標高データが変更された後のステップ207の落水線生成を、落水線の方向を制限することなく行えば、ユーザが指定した落水線が生成されない可能性がある。このため、本実施形態では既に説明したように、ユーザが指定したセルに関して、ユーザが指定した方向以外の方向が無効な方向として登録され、落水線生成部1322は無効な方向の落水線を生成しない。これによって、ユーザが指定した落水線がステップ207の落水線生成の後も維持される。しかし、このことは、本実施形態において図23(c)のような落水線の生成が許容されることをも意味する。   By editing the altitude as described above, the direction of the falling water line specified by the user always matches the downward gradient direction. However, the falling water line designated by the user does not always coincide with the direction of the steepest slope. Therefore, if the waterfall line generation in step 207 after the elevation data is changed in step 206 without restricting the direction of the waterfall line, the waterfall line specified by the user may not be generated. For this reason, as already described in the present embodiment, the direction other than the direction specified by the user is registered as an invalid direction for the cell specified by the user, and the falling water line generation unit 1322 generates a falling water line in an invalid direction. do not do. Thereby, the waterfall line designated by the user is maintained after the waterfall line generation in step 207. However, this also means that in this embodiment, the generation of waterfall lines as shown in FIG.

しかしながら、本実施形態では、既に説明したように図23(a)および(b)のような落水線の生成は確実に防止され、さらに、上り勾配方向の落水線も生成されない。このため、本実施形態によって生成された落水線は、水文学上の種々の処理、たとえば流域面積の算出などに支障なく使用することができる。   However, in the present embodiment, as already described, the generation of the waterfall line as shown in FIGS. 23A and 23B is reliably prevented, and further, the waterfall line in the upward gradient direction is not generated. For this reason, the falling water line produced | generated by this embodiment can be used without trouble in various hydrological processes, for example, calculation of a basin area.

以上のように、本発明の第1の実施形態によれば、ユーザが落水線を編集することを可能にしつつ、落水線の物理的整合性を自動的に維持するコンピュータプログラムを提供することができる。これによって、実際の水路の形状等、ユーザの知見を反映した落水線を短時間で生成し、水文学に使用することができる。   As described above, according to the first embodiment of the present invention, it is possible to provide a computer program that automatically maintains the physical integrity of the waterfall line while allowing the user to edit the waterfall line. it can. As a result, a falling water line reflecting the knowledge of the user, such as the actual shape of the water channel, can be generated in a short time and used for hydrology.

<第2の実施形態>
以下、本発明の第2の実施形態を添付図面に基づいて説明する。本発明の実施の形態におけるコンピュータシステムの構成を示す概略ブロック図(図1)、および、PC100によって実行される落水線編集プログラム141とハードウェア資源との相互作用を示すシーケンス図(図2)は、第1の実施形態において説明したものと同じである。ただし、ステップ203、204および205の処理の詳細が異なる。これらの差異について言及しながら、ステップ201からステップ208について図19から図22を参照して説明する。
<Second Embodiment>
Hereinafter, a second embodiment of the present invention will be described with reference to the accompanying drawings. The schematic block diagram (FIG. 1) which shows the structure of the computer system in embodiment of this invention, and the sequence diagram (FIG. 2) which shows the interaction of the waterfall line editing program 141 and hardware resource which are performed by PC100 are shown. The same as described in the first embodiment. However, the details of the processing of steps 203, 204 and 205 are different. Steps 201 to 208 will be described with reference to FIGS. 19 to 22 while referring to these differences.

図19は、本発明の第2の実施形態における落水線編集プログラム141が提供するGUIの、付け替えモードにおける編集中の状態(ステップ204)を示す説明図である。   FIG. 19 is an explanatory diagram showing a state during editing in the replacement mode of the GUI provided by the falling water line editing program 141 according to the second embodiment of the present invention (step 204).

図19に示すウィンドウ1900は、図3に示したウィンドウ300と類似の機能を提供する。ただしウィンドウ300の落水線表示部310ではすべての落水線を表示していたのに対し、ウィンドウ1900の落水線表示部1910にはあらかじめ設定した値以上の流域面積を持つセルの落水線(たとえば落水線1921)、および流域界1922が表示される。一般に流域面積が大きいセルの落水線ほど重要なため、このようにすることで重要な落水線のみを編集対象とすることができる。また、ウィンドウ300で提供された編集コマンド入力部320および地形断面表示部330が、ウィンドウ1900では提供されない。本実施例においては、落水線の編集として「付け替え」のみが使用される。また、ユーザからの地形編集指示は受け付けず、ステップ1803で算出される仮の標高を常に採用する。したがって、編集コマンド入力部320を使用するステップ203、および地形断面表示部330を使用するステップ205は、ユーザに問い合わせを行うことなく処理される。   A window 1900 shown in FIG. 19 provides a function similar to that of the window 300 shown in FIG. However, the waterfall line display unit 310 of the window 300 displays all the waterfall lines, whereas the waterfall line display unit 1910 of the window 1900 displays a waterfall line (for example, a waterfall line) of a cell having a basin area larger than a preset value. Line 1921), and basin boundary 1922 are displayed. In general, since the falling water line of a cell having a larger basin area is more important, only the important falling water line can be set as the editing target. Further, the edit command input unit 320 and the topographic section display unit 330 provided in the window 300 are not provided in the window 1900. In this embodiment, only “replacement” is used for editing the falling water line. Also, the terrain editing instruction from the user is not accepted, and the temporary elevation calculated in step 1803 is always adopted. Therefore, step 203 using the edit command input unit 320 and step 205 using the topographic section display unit 330 are processed without making an inquiry to the user.

このウィンドウ1900は、落水線編集プログラム141がHDD190から落水線データ192を読み出した(ステップ201)後に、ディスプレイ113に出力される(ステップ202)。編集モードは常に「付け替え」である(ステップ203)。このウィンドウ1900を使って、ユーザは落水線を編集する(ステップ204)。なお、ユーザによる編集が開始される前の時点において、ウィンドウ1900には太い実線で示す落水線1911及びその両端のアイコン1912、1913は表示されていない。   This window 1900 is output to the display 113 after the waterfall line editing program 141 reads the waterfall line data 192 from the HDD 190 (step 201) (step 202). The editing mode is always “replacement” (step 203). Using this window 1900, the user edits the falling water line (step 204). It should be noted that at the time before editing by the user is started, the falling water line 1911 indicated by a thick solid line and the icons 1912 and 1913 at both ends thereof are not displayed in the window 1900.

まず、落水線編集プログラム141は、流域内の任意の1セルを開始セル(ユーザの入力した落水線の始点)としてユーザに指定させ、開始セルの中心にアイコン1912を表示する。つづいて、落水線編集プログラム141は、流域内にあり、かつ開始セルよりも標高が低い任意の1セルを終了セル(すなわちユーザの入力した落水線の終点)としてユーザに指定させる。終了セルを指定すると、終了セルの中心にアイコン1913が表示され、さらに開始セルと終了セルとを結ぶ線分が通過するセルに落水線1911が表示される。   First, the falling water line editing program 141 causes the user to designate an arbitrary cell in the basin as a starting cell (starting point of the falling water line input by the user), and displays an icon 1912 at the center of the starting cell. Subsequently, the falling water line editing program 141 allows the user to designate an arbitrary cell that is in the basin and has an altitude lower than the starting cell as an end cell (that is, the end point of the falling water line input by the user). When the end cell is designated, an icon 1913 is displayed at the center of the end cell, and a falling water line 1911 is displayed in a cell through which a line segment connecting the start cell and the end cell passes.

この状態で、ユーザはこの落水線1911を確定すること、または落水線1911が通過するセルを変更することができる。前者の場合、ユーザは確定ボタン1931を操作する。後者の場合、ユーザはポリライン編集に必要な一般的な機能を使って落水線1911を編集する。ただし、ポリライン編集において制御点はセル上にのみ限定される。   In this state, the user can determine the waterfall line 1911 or change the cell through which the waterfall line 1911 passes. In the former case, the user operates the confirm button 1931. In the latter case, the user edits the falling water line 1911 using a general function necessary for polyline editing. However, in polyline editing, control points are limited only to cells.

たとえば生成された落水線1911の形状を変更したい場合、マウス112を用いて落水線1911を構成する1セルをクリックする。するとクリックしたセルの位置にポリラインの制御点が追加され、かつマウスカーソルがマウスカーソル1901のように変化し、制御点が移動可能なことを表示する。ユーザはこの制御点を別のセルに移動させることができる。ユーザが確定ボタン1931を操作すると、ステップ204が終了する。   For example, when it is desired to change the shape of the generated waterfall line 1911, the mouse 112 is used to click one cell constituting the waterfall line 1911. Then, a control point of the polyline is added at the position of the clicked cell, and the mouse cursor changes like a mouse cursor 1901 to display that the control point can be moved. The user can move this control point to another cell. When the user operates the confirm button 1931, step 204 ends.

つづいて、落水線の編集指示を地形等の編集指示に変換(ステップ205)、標高データの変更(ステップ206)および落水線データの変更(ステップ207)が実行される。この処理において、落水線生成部1322が対象とすべきセルはステップ201で読み込んだ時点における落水線データ192に示された流域内のみであり、流域外は対象外にできる。なぜならば、「付け替え」において流域界は変更しないためである。   Subsequently, the editing instruction for the falling water line is converted into an editing instruction for terrain or the like (step 205), the altitude data is changed (step 206), and the falling water data is changed (step 207). In this process, the cells that should be targeted by the falling water line generation unit 1322 are only within the watershed indicated by the waterfall line data 192 at the time of reading in step 201, and outside the watershed can be excluded. This is because the basin boundary is not changed in the “replacement”.

これらの処理によって、落水線は変更される。変更された落水線は落水線表示部1910に表示される(ステップ208)。図19の落水線は図21の落水線のように変更される。ユーザの指定した落水線(落水線1911および2111)は、そのユーザの指定のとおりに作成される。一方、その周囲の落水線も標高データの変更により影響を受けることによって形状が変更される。たとえば図19の落水線1921は、図21の落水線2121のように変更される。   By these processes, the falling water line is changed. The changed waterfall line is displayed on the waterfall line display unit 1910 (step 208). The waterfall line in FIG. 19 is changed to the waterfall line in FIG. The waterfall lines (waterfall lines 1911 and 2111) designated by the user are created as designated by the user. On the other hand, the shape of the surrounding falling water line is changed by being affected by the change of the altitude data. For example, the falling water line 1921 in FIG. 19 is changed to a falling water line 2121 in FIG.

なお、ウィンドウ1900は、編集コマンド入力部320、および地形断面表示部330を提供することも可能である。その場合、編集コマンド入力部320、および地形断面表示部330の操作方法は実施例1と同様となる。   The window 1900 can also provide an edit command input unit 320 and a topographic section display unit 330. In that case, the operation method of the edit command input unit 320 and the topographical section display unit 330 is the same as that of the first embodiment.

編集モードが「追加」の場合、ウィンドウ1900において、流域外の任意の1セルが開始セルとして指定され、流域内にあり、かつ開始セルよりも標高が低い任意の1セルが終了セルとして指定される。   When the edit mode is “add”, in the window 1900, any one cell outside the basin is designated as the start cell, and any one cell that is within the basin and whose elevation is lower than the start cell is designated as the end cell. The

編集モードが「削除」の場合、ウィンドウ1900において、流域内の任意の1セルが開始セルとして指定され、流域外にあり、かつ開始セルよりも標高が低い任意の1セルが終了セルとして指定される。   When the edit mode is “Delete”, in the window 1900, any one cell in the basin is designated as the start cell, and any one cell that is outside the basin and whose elevation is lower than the start cell is designated as the end cell. The

第1の実施形態と同様に、「追加」「削除」どちらの編集モードでも、ステップ204以外の処理は「付け替え」の場合と同じである。   As in the first embodiment, in both the “add” and “delete” editing modes, the processing other than step 204 is the same as in the “replacement” case.

図20は、本発明の第2の実施形態における落水線編集内容の指定(ステップ204)の処理のアルゴリズムを示すフローチャートである。   FIG. 20 is a flowchart showing an algorithm for processing for specifying the content of the falling water line editing (step 204) in the second embodiment of the present invention.

まず、落水線編集プログラム141は、ユーザによる開始セルの指定を受け付ける(ステップ2001)。落水線編集プログラム141は、ユーザからの入力を受け付ける関数WaitUserInputを呼び出し、ユーザから入力された値をtheCellに格納する。この値theCellは要素のない空のセル配列Cellsの最初の要素として追加される(ステップ2002)。ただし、theCellが流域外にある場合、ユーザからの入力を拒絶しステップ2001に戻る。   First, the falling water line editing program 141 accepts designation of a start cell by the user (step 2001). The falling water line editing program 141 calls a function WaitUserInput that receives an input from the user, and stores the value input by the user in theCell. This value theCell is added as the first element of the empty cell array Cells having no element (step 2002). However, if theCell is outside the basin, the input from the user is rejected and the process returns to step 2001.

つづいて落水線編集プログラム141は、ユーザからの終了セルの指定を受け付け(ステップ2003)、ユーザから入力された値をtheCellに格納する。ただし、theCellが流域外にある場合、またはtheCellの標高が開始セルCells.First.Glevの標高以上の場合、落水線編集プログラム141は、ユーザからの入力を「不正」または「地形編集指示に変換不可能」な落水線として拒絶する(ステップ2004)。この場合、落水線編集プログラム141はステップ2003に戻り、再びユーザからの終了セルの指定を受け付ける。   Subsequently, the falling water line editing program 141 receives the designation of the end cell from the user (step 2003), and stores the value input by the user in theCell. However, if theCell is outside the basin, or the elevation of theCell is higher than the elevation of the start cell Cells.First.Glev, the falling water line editing program 141 converts the input from the user to “illegal” or “terrain editing instruction” Reject as "impossible" waterfall (step 2004). In this case, the falling water line editing program 141 returns to step 2003 to accept the designation of the end cell from the user again.

theCellが流域内にあり、かつ、theCellの標高が開始セルCells.First.Glevの標高より低い場合、落水線編集プログラム141は、ユーザからの入力を「地形編集指示に変換可能」であると判定し、ユーザから入力された値theCellをセル配列CtrlCellsに追加する(ステップ2005)。   When theCell is in the basin and the elevation of theCell is lower than the elevation of the start cell Cells.First.Glev, the falling water line editing program 141 determines that the input from the user can be “converted into a terrain editing instruction”. Then, the value theCell input by the user is added to the cell array CtrlCells (step 2005).

つづいて落水線編集プログラム141は、セル配列CtrlCellsの全要素を順に結ぶ線分をセル配列に変換する(ステップ2006)。変換方法としては、ブレゼンハム法(Bresenham’s line algorithm)など、線分をセルに変換する一般的な方法を用いればよい。このようにして最初の要素が開始セル、最後の要素が終了セルとなるセル配列Cellsが作成される。   Subsequently, the falling water line editing program 141 converts a line segment that sequentially connects all elements of the cell array CtrlCells into a cell array (step 2006). As a conversion method, a general method for converting a line segment into a cell such as Bresenham's line algorithm may be used. In this way, a cell array Cells is created in which the first element is the start cell and the last element is the end cell.

つづいて落水線編集プログラム141は、作成したセル配列上に落水線を表示し、ユーザからの通過セルの指定を受け付け、ユーザの入力を変数theCellに格納する(ステップ2007)。変数theCellが確定指示、すなわち確定ボタン1931の操作である場合、落水線編集プログラム141はこのステップ204を終了する(ステップ2008)。   Subsequently, the falling water line editing program 141 displays the falling water line on the created cell array, receives the designation of the passing cell from the user, and stores the user input in the variable theCell (step 2007). If the variable theCell is a confirmation instruction, that is, an operation of the confirmation button 1931, the falling water line editing program 141 ends this step 204 (step 2008).

変数theCellが通過セルの指定である場合には、落水線編集プログラム141は、ユーザ指定の落水線がループを描く、またはユーザ指定の落水線同士が交差するという条件が真であるかを判別する(ステップ2009)。ユーザ指定の落水線がループを描くか否かは、図18のステップ1807と同様の方法で判定されてもよい。ステップ2009の条件が偽である場合(すなわち、ユーザ指定の落水線がループを描かず、かつ、ユーザ指定の落水線同士が交差しない場合)には、落水線編集プログラム141はそのセルをセル配列CtrlCellに挿入し(ステップ2010)、ステップ2006に戻る。条件が真である場合にはそのセルを破棄してステップ2006に戻る。   When the variable theCell is a passing cell designation, the falling water line editing program 141 determines whether the condition that the user-specified water line draws a loop or the user-specified water lines intersect each other is true. (Step 2009). Whether or not the user-specified waterfall line draws a loop may be determined by the same method as in step 1807 in FIG. When the condition of step 2009 is false (that is, when the user-specified waterfall line does not draw a loop and the user-specified waterfall lines do not intersect with each other), the waterfall line editing program 141 arranges the cell in a cell array. Insert in CtrlCell (step 2010) and return to step 2006. If the condition is true, discard the cell and return to step 2006.

本実施例における落水線の追加および削除の処理は、流域界の追加または削除の処理の後、落水線の付け替え処理を行うことで実現する。   The process of adding and deleting waterfall lines in the present embodiment is realized by performing a process of replacing waterfall lines after the process of adding or deleting watershed boundaries.

図21は、本発明の第2の実施形態における落水線編集プログラム141が提供するGUIの、流域外の一部領域を流域として追加する場合における編集中の状態を示す説明図である。   FIG. 21 is an explanatory diagram showing a state during editing when a partial area outside the basin is added as a basin of the GUI provided by the falling water line editing program 141 according to the second embodiment of the present invention.

図21に示すGUIは、流域界を示す線分2122を、マウスカーソル2101を用いて流域外に拡張する機能を提供する。線分2123は、このようにして拡張された新たな流域界である。   The GUI shown in FIG. 21 provides a function of extending a line segment 2122 indicating a basin boundary outside the basin using the mouse cursor 2101. A line segment 2123 is a new watershed boundary expanded in this way.

図22は、本発明の第2の実施形態における落水線編集プログラム141が提供するGUIの、流域の一部領域を流域外として削除する場合における編集中の状態を示す説明図である。   FIG. 22 is an explanatory diagram illustrating a state during editing in the case where the GUI provided by the falling water line editing program 141 according to the second embodiment of the present invention is deleted when a partial area of the basin is deleted.

図21と同様に、図22に示すGUIは、流域界を示す線分2222を、マウスカーソル2201を用いて流域内に縮小する機能を提供する。線分2223は、このようにして縮小された新たな流域界である。   Similar to FIG. 21, the GUI shown in FIG. 22 provides a function of reducing a line segment 2222 indicating the basin boundary into the basin using the mouse cursor 2201. A line segment 2223 is a new watershed boundary reduced in this way.

図21および図22に示した操作によって流域界を示す線分を移動させたのちに、ユーザが確定ボタン2231を操作すると、落水線編集プログラム141は、新たな流域界に接するセルについて、新たな流域界を横切る方向を「無効な方向」に設定する(すなわち、そのような「無効な方向」を示す値をInvalidDirectionsに追加する)。また、消去された流域界に接するセルについて、消去された流域界を横切る方向について、「無効な方向」の設定を解除する(すなわち、そのような「無効な方向」を示す値をInvalidDirectionsから削除する)。   When the user operates the confirm button 2231 after moving the line segment indicating the basin boundary by the operation shown in FIG. 21 and FIG. 22, the falling water line editing program 141 creates a new one for the cell in contact with the new basin boundary. Set the direction across the basin boundary to “invalid direction” (ie, add a value to InvalidDirections indicating such “invalid direction”). Also, for cells that touch the erased basin boundary, cancel the “invalid direction” setting for the direction across the erased basin boundary (that is, delete the value indicating such “invalid direction” from InvalidDirections). To do).

その後、このセルデータに基づき落水線データの変更(ステップ207)が実行される。なお、落水線データの変更(ステップ207)の処理において、この流域界の横切る落水線を生成させないようにする。このようにして流域界を変更した後、必要に応じユーザは、図19を用いて説明した落水線付け替えの操作によって、流域内の落水線を編集する。   Thereafter, the waterfall line data is changed (step 207) based on the cell data. In the process of changing the falling water line data (step 207), the falling water line crossing the watershed boundary is not generated. After changing the watershed boundary in this way, the user edits the waterfall line in the watershed by the operation of replacing the waterfall line described with reference to FIG.

以上の本発明の第2の実施形態によれば、比較的簡便なユーザインターフェースを用いて、第1の実施形態と同様の落水線の編集をすることが可能になる。   According to the second embodiment of the present invention described above, it is possible to edit the falling water line as in the first embodiment using a relatively simple user interface.

以上述べたとおり、本発明によればユーザが落水線を編集することを可能にしつつ、落水線の物理的整合性を自動的に維持するプログラムコンピュータプログラムが提供できる。このプログラムによって、地図に示された水路と落水線とで両者の位置および形状が異なる箇所をユーザが発見した場合、ユーザ自身が落水線を地図に示された水路に合うように編集することができるようになる。   As described above, according to the present invention, it is possible to provide a program computer program that automatically maintains the physical consistency of the waterfall line while allowing the user to edit the waterfall line. If the user finds a location where the location and shape of the waterway and the waterfall shown on the map differ from each other, the user can edit the waterfall to fit the waterway shown on the map. become able to.

100 PC
141 落水線編集プログラム
191 標高データ
192 落水線データ
1911 ユーザの入力した落水線
1912 開始セル(ユーザの入力した落水線の始点)
1913 終了セル(セルユーザの入力した落水線の終点)
1921 落水線データ192に基づく、閾値以上の流域面積を持つ落水線
2111 ユーザの入力情報に基づいて生成された新たな落水線
100 PC
141 Falling Line Editing Program 191 Elevation Data 192 Falling Line Data 1911 Falling Line 1912 Entered by User Start Cell (Starting Point of Falling Line Entered by User)
1913 End cell (end point of falling water line entered by cell user)
1921 A new waterfall generated based on user input information based on the user's input information based on the user's input data.

Claims (14)

コンピュータを制御する落水線編集プログラムであって、
前記コンピュータは、
前記落水線編集プログラムが格納されるメモリと、前記メモリに格納されたプログラムを実行するプロセッサとを備え、
複数のセルを含む空間における、前記各セルの標高を示す標高データ、及び、前記各セルから水が流れる方向を示す落水線データを保持し、
前記落水線編集プログラムは、
前記セルの指定、及び前記指定されたセルを始点とする新たな落水線の指定を受ける第1手順と、
前記指定された落水線と、既に指定された一つ以上の落水線とが循環する場合、および、前記指定された落水線が既に指定された落水線と交差する場合に、前記指定された落水線が不正であると判定する第2手順と、
前記指定されたセルを始点とする複数の方向のうち、前記指定された落水線の方向以外の方向を無効方向として設定し、さらに、前記指定されたセルに隣接するセルを始点とする複数の方向のうち、前記指定された落水線と交差する方向を無効方向として設定することで、前記指定された落水線の方向に基づいて、前記各セルについて落水線の生成が禁止される無効方向を決定する第3手順と、
前記標高データに基づいて、前記各セルから、前記無効方向以外の方向のうち、下流方向に水が流れるように前記落水線データを変更する第4手順と、を前記プロセッサに実行させ、
前記第2手順において、前記指定された落水線が不正であると判定された場合、前記第3手順および前記第4手順の前に、前記指定されたセルについて、前記指定されたセルを始点とする新たな落水線の指定を受ける前記第1手順を再び前記プロセッサに実行させることを特徴とする落水線編集プログラム。
A drainage line editing program for controlling a computer,
The computer
A memory for storing the waterfall editing program; and a processor for executing the program stored in the memory;
In a space including a plurality of cells, the altitude data indicating the altitude of each cell, and waterfall line data indicating the direction in which water flows from each cell,
The falling water line editing program is
A first procedure for receiving designation of the cell and designation of a new waterfall line starting from the designated cell;
The designated waterfall when the designated waterfall circulates and one or more already designated waterfalls circulate, and when the designated waterfall intersects the already designated waterfall. A second procedure for determining that the line is incorrect ;
Among a plurality of directions starting from the specified cell, a direction other than the direction of the specified falling water line is set as an invalid direction, and a plurality of cells starting from a cell adjacent to the specified cell are set. By setting a direction that intersects the designated waterfall line as an invalid direction among the directions, an invalid direction in which the generation of the waterfall line is prohibited for each cell based on the direction of the designated waterfall line is set. A third procedure to determine;
Based on the altitude data, the processor executes the fourth procedure of changing the waterfall line data so that water flows downstream from each cell in a direction other than the invalid direction,
In the second procedure, when it is determined that the designated falling water line is invalid, the designated cell is set as a start point for the designated cell before the third procedure and the fourth procedure. A falling water line editing program which causes the processor to execute again the first procedure which receives designation of a new falling water line to be performed.
前記落水線編集プログラムは、前記指定された落水線の終点のセルの標高が始点のセルの標高より低くなるように、前記始点または終点の少なくとも一方のセルの標高を変更する第5手順を、前記第4手順の前に前記プロセッサに実行させることを特徴とする請求項1に記載の落水線編集プログラム。   The falling water line editing program changes a height of at least one cell of the start point or the end point so that an altitude of an end cell of the designated falling line is lower than an altitude of a start point cell, The falling water line editing program according to claim 1, wherein the processor is executed before the fourth procedure. 前記第1手順において連続する複数の落水線が指定され、かつ、前記連続する複数の落水線の末尾の落水線の終点のセルの標高が、前記連続する複数の落水線の先頭の落水線の始点のセルの標高より低い場合、前記第5手順は、前記先頭の落水線の始点のセルから前記末尾の落水線の終点のセルに至る落水線が経由するセルのうち、前記先頭の落水線の始点のセルおよび前記末尾の落水線の終点のセルを除くセルの標高を、前記各落水線の方向が下り勾配の方向に一致するように変更する手順を含むことを特徴とする請求項2に記載の落水線編集プログラム。   A plurality of continuous waterfall lines are specified in the first procedure, and an altitude of an end cell of the last waterfall line of the plurality of continuous waterfall lines is an elevation of the first waterfall line of the plurality of continuous waterfall lines. When the elevation is lower than the start point cell, the fifth step includes the first fall line among the cells through which the fall line from the start point cell of the first fall line to the end cell of the last fall line passes. The method includes a step of changing the altitude of the cells excluding the start cell and the end cell of the trailing waterfall line so that the direction of each waterfall line coincides with the downward slope direction. The falling water line editing program described in. 前記第1手順において一つの落水線または連続する複数の落水線が指定され、かつ、前記一つの落水線または前記連続する複数の落水線の末尾の落水線の終点のセルの標高が、前記一つの落水線または前記連続する複数の落水線の先頭の落水線の始点のセルの標高より高い場合、前記落水線編集プログラムは、
前記終点のセルの下流のセルを、前記始点のセルより標高が低いセルに到達するまで探索する第6手順を前記プロセッサに実行させ、
一つ以上の前記探索された下流のセルに至る落水線と、既に指定された一つ以上の落水線とが循環する場合、および、前記探索された下流のセルに至る落水線と、既に指定された落水線とが交差する場合、前記第4手順の前に、前記始点のセルを始点とする新たな落水線の指定を受けるために前記第1手順を再び前記プロセッサに実行させ、
前記第5手順は、前記始点のセルから前記探索された末尾のセルに至る落水線が経由するセルのうち、前記始点のセルおよび前記探索された末尾のセルを除くセルの標高を、前記各落水線の方向が下り勾配の方向に一致するように変更する手順を含むことを特徴とする請求項3に記載の落水線編集プログラム。
In the first procedure, one falling line or a plurality of continuous falling lines is designated, and the altitude of the cell at the end of the falling line at the end of the one falling line or the plurality of continuous falling lines is the above-described one. If it is higher than the elevation of the cell at the start of the first waterfall line or the first waterfall line of the plurality of waterfall lines, the waterfall editing program
Causing the processor to execute a sixth procedure for searching for a cell downstream from the cell at the end point until a cell having an altitude lower than the cell at the start point is reached;
If one or more waterfalls leading to the searched downstream cell and one or more waterfalls already specified circulate, and a waterfall leading to the searched downstream cell already specified The first procedure is executed again to receive the designation of a new waterfall line starting from the cell at the start point before the fourth procedure,
In the fifth procedure, among the cells through which a falling line from the start point cell to the searched end cell passes, the elevations of the cells excluding the start point cell and the searched end cell are set to 4. The falling water line editing program according to claim 3, further comprising a procedure for changing the direction of the falling water line so as to coincide with the direction of the downward slope.
前記コンピュータは、前記各セルが流域内のセルであるか否かを示す情報をさらに保持し、
前記指定されたセルが前記流域内のセルであり、かつ、前記指定されたセルを始点とする前記指定された落水線の終点のセルが前記流域内のセルである場合、前記落水線編集プログラムは、前記流域内のセルのみを対象として、前記第4手順を前記プロセッサに実行させることを特徴とする請求項1に記載の落水線編集プログラム。
The computer further holds information indicating whether each cell is a cell in a basin;
When the designated cell is a cell in the basin and the cell at the end point of the designated waterfall line starting from the designated cell is a cell in the basin, the waterfall line editing program 2. The falling water line editing program according to claim 1, wherein the processor is caused to execute the fourth procedure for only cells in the basin.
前記コンピュータは、前記各セルが流域内のセルであるか否かを示す情報をさらに保持し、
前記指定されたセルが前記流域内のセルであり、かつ、前記指定されたセルを始点とする前記指定された落水線の終点のセルが前記流域外のセルである場合、前記落水線編集プログラムは、前記流域内のセルのみを対象として、前記第4手順を前記プロセッサに実行させることを特徴とする請求項1に記載の落水線編集プログラム。
The computer further holds information indicating whether each cell is a cell in a basin;
When the designated cell is a cell in the basin, and the cell at the end point of the designated waterfall line starting from the designated cell is a cell outside the watershed, the waterfall line editing program 2. The falling water line editing program according to claim 1, wherein the processor is caused to execute the fourth procedure for only cells in the basin.
前記コンピュータは、前記各セルが流域内のセルであるか否かを示す情報をさらに保持し、
前記指定されたセルが前記流域外のセルであり、かつ、前記指定されたセルを始点とする前記指定された落水線の終点のセルが前記流域内のセルである場合、前記落水線編集プログラムは、前記流域内のセル及び前記流域外のセルを対象として、前記第4手順を前記プロセッサに実行させることを特徴とする請求項1に記載の落水線編集プログラム。
The computer further holds information indicating whether each cell is a cell in a basin;
The specified cell is said basin outside the cell, and wherein when the cell of the end point of the specified drainage line is a cell in said basin, said drainage line editing program that starts the specified cell 2. The falling water line editing program according to claim 1, wherein the processor executes the fourth procedure for cells in the basin and cells outside the basin.
前記第1手順は、前記指定された落水線の終点のセルを始点とする新たな落水線の指定を受ける手順を含むことを特徴とする請求項1に記載の落水線編集プログラム。 2. The falling water line editing program according to claim 1, wherein the first procedure includes a procedure of receiving designation of a new falling water line starting from a cell at an end point of the designated falling water line. 前記複数のセルは、第1セルおよび第2セルを含み、
前記第1手順は、第1セル、第2セル、および、前記第1セルから前記第2セルに至る複数の連続する新たな落水線の指定を受ける手順を含むことを特徴とする請求項1に記載の落水線編集プログラム。
The plurality of cells includes a first cell and a second cell;
2. The first procedure includes a procedure of receiving designation of a first cell, a second cell, and a plurality of continuous new waterfall lines from the first cell to the second cell. The falling water line editing program described in.
前記落水線編集プログラムは、流域の境界の位置の指定を受ける第7手順をさらに前記プロセッサに実行させ、The falling water line editing program further causes the processor to execute a seventh step of receiving designation of a basin boundary position,
前記第3手順は、前記指定された流域の境界に隣接する前記セルについて、前記指定された流域の境界と交差する方向を無効方向として設定する手順をさらに含むことを特徴とする請求項1に記載の落水線編集プログラム。  The said 3rd procedure further includes the procedure which sets the direction which cross | intersects the boundary of the said specified basin as an invalid direction about the said cell adjacent to the boundary of the said specified basin. The described falling water line editing program.
プログラムが格納されるメモリと、前記メモリに格納されたプログラムを実行するプロセッサとを備え、A memory for storing a program; and a processor for executing the program stored in the memory,
複数のセルを含む空間における、前記各セルの標高を示す標高データ、及び、前記各セルから水が流れる方向を示す落水線データを保持し、  In a space including a plurality of cells, the altitude data indicating the altitude of each cell, and the waterfall line data indicating the direction in which water flows from each cell,
前記セルの指定、及び前記指定されたセルを始点とする新たな落水線の指定を受け、  In response to the designation of the cell and the designation of a new waterfall line starting from the designated cell,
前記指定された落水線と、既に指定された一つ以上の落水線とが循環する場合、および、前記指定された落水線が既に指定された落水線と交差する場合に、前記指定された落水線が不正であると判定し、  The designated waterfall when the designated waterfall circulates and one or more already designated waterfalls circulate, and when the designated waterfall intersects the already designated waterfall. Determine that the line is incorrect,
前記指定されたセルを始点とする複数の方向のうち、前記指定された落水線の方向以外の方向を無効方向として設定し、さらに、前記指定されたセルに隣接するセルを始点とする複数の方向のうち、前記指定された落水線と交差する方向を無効方向として設定することで、前記指定された落水線の方向に基づいて、前記各セルについて落水線の生成が禁止される無効方向を決定し、  Among a plurality of directions starting from the specified cell, a direction other than the direction of the specified falling water line is set as an invalid direction, and a plurality of cells starting from a cell adjacent to the specified cell are set. By setting a direction that intersects the designated waterfall line as an invalid direction among the directions, an invalid direction in which the generation of the waterfall line is prohibited for each cell based on the direction of the designated waterfall line is set. Decide
前記標高データに基づいて、前記各セルから、前記無効方向以外の方向のうち、下流方向に水が流れるように前記落水線データを変更し、  Based on the elevation data, the waterfall line data is changed so that water flows in the downstream direction from the cells other than the invalid direction,
前記指定された落水線が不正であると判定された場合、前記無効方向の決定および前記落水線データの変更の前に、前記指定されたセルを始点とする新たな落水線の指定を再び受けることを特徴とする落水線編集装置。  When it is determined that the designated waterfall line is invalid, the designation of a new waterfall line starting from the designated cell is received again before the invalid direction is determined and the waterfall line data is changed. A falling water line editing device characterized by that.
前記落水線編集装置は、前記落水線データの変更の前に、前記指定された落水線の終点のセルの標高が始点のセルの標高より低くなるように、前記始点または終点の少なくとも一方のセルの標高を変更することを特徴とする請求項11に記載の落水線編集装置。The waterfall line editing device, before changing the waterfall line data, at least one cell of the start point or the end point so that the altitude of the end cell of the designated waterfall line is lower than the altitude of the cell of the start point. 12. The falling water line editing apparatus according to claim 11, wherein the altitude of the waterfall is changed. 前記落水線編集装置は、連続する複数の落水線が指定され、かつ、前記連続する複数の落水線の末尾の落水線の終点のセルの標高が、前記連続する複数の落水線の先頭の落水線の始点のセルの標高より低い場合、前記先頭の落水線の始点のセルから前記末尾の落水線の終点のセルに至る落水線が経由するセルのうち、前記先頭の落水線の始点のセルおよび前記末尾の落水線の終点のセルを除くセルの標高を、前記各落水線の方向が下り勾配の方向に一致するように変更することを特徴とする請求項12に記載の落水線編集装置。The waterfall editing device is configured such that a plurality of continuous waterfall lines are designated, and an elevation of a cell at the end of the waterfall line at the end of the plurality of waterfall lines is an initial waterfall of the plurality of continuous waterfall lines. If the elevation is lower than the cell at the start point of the line, the cell at the start point of the first falling line out of the cells that pass through the falling line from the start point cell of the first falling line to the end point cell of the last falling line The falling line editing device according to claim 12, wherein the altitude of the cells excluding the cell at the end point of the trailing falling line is changed so that the direction of each falling line coincides with the direction of the downward slope. . 前記落水線編集装置は、The falling water line editing device
一つの落水線または連続する複数の落水線が指定され、かつ、前記一つの落水線または前記連続する複数の落水線の末尾の落水線の終点のセルの標高が、前記一つの落水線または前記連続する複数の落水線の先頭の落水線の始点のセルの標高より高い場合、前記終点のセルの下流のセルを、前記始点のセルより標高が低いセルに到達するまで探索し、  A single falling line or a plurality of continuous falling lines is designated, and an elevation of a cell at the end of the falling line at the end of the one falling line or the plurality of continuous falling lines is the one falling line or the If it is higher than the elevation of the cell at the start of the first falling water line of the plurality of continuous waterfalls, the downstream cell of the cell at the end point is searched until reaching a cell whose elevation is lower than the cell at the start point,
一つ以上の前記探索された下流のセルに至る落水線と、既に指定された一つ以上の落水線とが循環する場合、および、前記探索された下流のセルに至る落水線と、既に指定された落水線とが交差する場合、前記落水線データの変更の前に、再び、前記始点のセルを始点とする新たな落水線の指定を受け、  If one or more waterfalls leading to the searched downstream cell and one or more waterfalls already specified circulate, and a waterfall leading to the searched downstream cell already specified If the waterfall line is crossed, before the change of the waterfall line data, again, the designation of a new waterfall line starting from the start point cell,
前記始点のセルから前記探索された末尾のセルに至る落水線が経由するセルのうち、前記始点のセルおよび前記探索された末尾のセルを除くセルの標高を、前記各落水線の方向が下り勾配の方向に一致するように変更することを特徴とする請求項13に記載の落水線編集装置。  Among the cells through which the falling water line from the starting point cell to the searched end cell passes, the altitude of the cell excluding the starting point cell and the searched end cell is reduced in the direction of each falling line. The falling water line editing apparatus according to claim 13, wherein the waterfall line editing apparatus is changed so as to coincide with the direction of the gradient.
JP2010175409A 2010-08-04 2010-08-04 Falling water line editing program and falling water line editing device Active JP5531365B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010175409A JP5531365B2 (en) 2010-08-04 2010-08-04 Falling water line editing program and falling water line editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010175409A JP5531365B2 (en) 2010-08-04 2010-08-04 Falling water line editing program and falling water line editing device

Publications (2)

Publication Number Publication Date
JP2012037608A JP2012037608A (en) 2012-02-23
JP5531365B2 true JP5531365B2 (en) 2014-06-25

Family

ID=45849691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010175409A Active JP5531365B2 (en) 2010-08-04 2010-08-04 Falling water line editing program and falling water line editing device

Country Status (1)

Country Link
JP (1) JP5531365B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008689B (en) * 2014-04-25 2016-05-25 山东科技大学 For slope flow multithread to and the simulated experiment platform of assignment of traffic algorithm

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127156A (en) * 2004-10-28 2006-05-18 Japan Weather Association Method and system for evaluating flooding risk, basin database, its preparation program, and method and program for simulating flooding
JP2007011582A (en) * 2005-06-29 2007-01-18 Information & Science Techno-System Co Ltd Flood forecasting system
JP4782572B2 (en) * 2006-01-31 2011-09-28 株式会社パスコ Underground elevation model creation method, wastewater treatment area division method, wastewater treatment capacity evaluation method and apparatus
JP4682178B2 (en) * 2007-05-31 2011-05-11 財団法人河川情報センター Distributed runoff forecasting system using nationwide synthetic radar rainfall
JP5026992B2 (en) * 2008-01-09 2012-09-19 株式会社日立エンジニアリング・アンド・サービス Basin estimation program

Also Published As

Publication number Publication date
JP2012037608A (en) 2012-02-23

Similar Documents

Publication Publication Date Title
JP2021086628A (en) Watershed segmentation in civil engineering
CN110427554B (en) Interest point recommendation method and device, intelligent terminal, server and storage medium
CN113850822A (en) An automatic division method of slope elements based on confluence division
Xiong et al. Drainage basin object-based method for regional-scale landform classification: A case study of loess area in China
JP5337995B2 (en) Watershed extraction program and watershed extraction device
CN102651143A (en) Automatically generating method of pinchout geological body three-dimensional complex profile
US7599820B2 (en) Graphical user interface for interactive construction of typical cross-section frameworks
KR20230170430A (en) System, method and computer program for making three-dimensional geospatial model of river
EP3983643B1 (en) Geological grid analysis
JP5154918B2 (en) Analytical method for evaluating the effects of long-term changes in the geological environment on groundwater flow
CN115841022B (en) A data processing method and related equipment based on face rockfill dam
JP5531365B2 (en) Falling water line editing program and falling water line editing device
JP3748268B1 (en) Method and program for creating fluid three-dimensional moving image
Zhang et al. A study of variables characterizing drainage patterns in river networks
JP6936749B2 (en) Flood Prediction Program and Flood Prediction System
Zhu et al. A digital twin-driven enhanced visualization method for high-steep slope scene
Salvi et al. Morphometric Analysis of Sina River Basin At Midsangavi Using Rs & Gis
CN114882144A (en) Method and device for generating river topological structure, computing equipment and medium
Araujo-Carrillo et al. Mapping a hydrophysical soil property through a comparative analysis of local and global scale approximations
Zhang The application of GIS viewable area analysis based on algorithm in landscape planning and design
Kanfar et al. Well placement optimization for avoiding caves using GANs and POMDPs
JP7393508B1 (en) Channel design support device and channel design support program
Kaneider et al. Automatic annotation placement for interactive maps
La Russa Exploiting advantages of VPL in city information modelling for rapid digital urban surveying and structural analysis
KR102525926B1 (en) Method and Apparatus for Predicting Land Creep

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120316

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140303

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140325

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140404

R150 Certificate of patent or registration of utility model

Ref document number: 5531365

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150