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 PDFInfo
- 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
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims description 339
- 238000000034 method Methods 0.000 claims description 104
- 230000008859 change Effects 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 31
- 238000010586 diagram Methods 0.000 description 27
- 238000012545 processing Methods 0.000 description 20
- 238000012790 confirmation Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 11
- 230000007704 transition Effects 0.000 description 11
- 238000012876 topography Methods 0.000 description 10
- 238000011144 upstream manufacturing Methods 0.000 description 9
- 238000012217 deletion Methods 0.000 description 8
- 230000037430 deletion Effects 0.000 description 8
- 238000004422 calculation algorithm Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 239000002352 surface water Substances 0.000 description 2
- 238000004065 wastewater treatment Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000008571 general function Effects 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000005293 physical law Methods 0.000 description 1
- 238000005381 potential energy Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
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”. .
落水線作成プログラムによって作成された落水線が、実際に水が流れる方向とは異なることがある。このような問題は、発明者らがすでに開示した発明「流域推定プログラム」(特許文献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
別の例を図23(b)に示す。この例では、セル2311、2314、2313、2312の順に水が流れる。セル2311から出る落水線とセル2313から出る落水線が交差している。落水線の交差部分に立体交差を実現するサイフォンなどの人工設備を使わない限り、このような流れを実現できない。
Another example is shown in FIG. In this example, water flows in the order of the
さらに別の例を図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
この地形において正しい落水線を図23(d)に示す。セル2331、2332、2333が、それぞれ2334と落水線で直接結ばれている。すなわち、セル2331、2332及び2333から流出した水がセル2334に直接流れ込む。
The correct falling water line in this topography is shown in FIG.
水文学では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.
最初に、本発明の概要を説明する。 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
さらにPC100は、メモリ120およびCPU(Central Processing Unit)130を備える。メモリ120には落水線編集プログラム141が展開される。この落水線作成プログラム141はCPUへの命令から構成される。CPU130は、落水線作成プログラム141の命令に従い、計算、HDD(Hard Disk Drive)190へのアクセス、および入出力部110との情報の交換などを行う。以下の説明において落水線編集プログラム141が実行する処理は、実際には、流域抽出プログラム141に記述された命令に従うCPU130によって実行される。
The
HDD190には標高データ191、落水線データ192、および地図データ193が格納されており、落水線編集プログラム141はこれらのデータを読み込むこと、および書き込むことができる。なお、HDD190は、PC100に内蔵されてもよいし、PC100の外部に接続されてもよいし、PC100からネットワーク経由でアクセスできる別の装置に接続されてもよい。
The
標高データ191は、一般的にDigital elevation model(DEM)と呼ばれるデータである。すなわち、標高データ191は、セルの位置とそのセルにおける地表面の標高を記載した情報である。ある位置に割り当てられるセルは唯一であるため、セルの位置情報に基づいてセルに一意な識別番号(ID)を割り当てることができる。また、この標高データ191では、陸域には標高値が、海域には海域を示す値が格納されている。なお、海域とは、流出口がない水域、つまり、海洋および閉塞湖沼域(水の流出口がない湖)等である。
The
落水線データ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
地図データ193は、ユーザが落水線を編集するための判断材料となる情報であればよい。地図データ193として適している情報として、河川等の位置が記載された地形図などが挙げられる。
The
図2は、PC100によって実行される落水線編集プログラム141とハードウェア資源との相互作用を示すシーケンス図である。
FIG. 2 is a sequence diagram showing the interaction between the waterfall
PC100で落水線編集プログラム141が起動される。落水線編集プログラム141は、HDD190から落水線データ192を読み出す(ステップ201)。データを読み出した落水線編集プログラム141は、ウィンドウ300からなるGUI(Graphical User Interface)をディスプレイ113に出力する(ステップ202)。このGUIを用いて、落水線編集プログラム141は、編集モードの指定を受ける(ステップ203)。このステップは省略可能である。このステップを実行すると、ユーザの誤操作を防ぐためにユーザの操作が制限される。さらにGUIを用いて、落水線編集プログラム141は、ユーザから落水線編集指示を受け取る(ステップ204)。落水線編集プログラム141は、指示された落水線が不正なものであるか否かを判定し、不正なものでない場合にのみこの指示を受け取る。
The falling water
つづいて落水線編集プログラム141は、ユーザによる落水線の編集指示を、地形の編集指示に変換する(ステップ205)。このステップでは、変換の詳細についてユーザに問い合わせを行ってもよい。本実施形態(第1の実施形態)は問い合わせる場合について説明し、別の実施形態(第2の実施形態)では問い合わせない場合について説明する。落水線編集プログラム141は、この地形の編集指示に従い地形を編集し(ステップ206)、さらに編集された地形に基づき落水線を生成する(ステップ207)。
Subsequently, the falling water
このステップ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
なお、落水線編集プログラムは、ステップ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
ステップ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
図3のGUIは、ディスプレイ113の所定の領域に表示されるウィンドウ300からなり、キーボード111およびマウス112による入力を受け付ける。ウィンドウ300は、少なくとも落水線表示部310を備え、さらに編集コマンド入力部320および地形断面表示部330を備えることが望ましい。
3 includes a
落水線表示部310は、少なくともステップ201で読み込んだ落水線データ192に含まれる落水線(たとえば落水線311など)を表示する。これらの落水線はすべて下流端セル343に到達する。すなわち、この状態で落水線表示部310に表示されているセルはセル343の流域である。このことを明示するため、太い線分362のように流域界を表すことが望ましい。セルの位置を示すために線分361のようにセルの辺(枠線)を示してもよい。図3の例では、線分361のような枠線によって格子状に区切られた矩形の各領域がセル(たとえばセル341)である。
The falling water
また落水線表示部310は、編集対象とする落水線をユーザに指定させる機能を備える。本実施例では、マウス112の動きを検知しマウスポインタ301を動かし、マウス112の操作(例えば左クリック)を検知することによって編集対象とする落水線をユーザに指定させる。ユーザの操作結果をユーザにわかりやすく伝えるために、指定された落水線311を太線等で表示する、かつ・または指定された落水線311の終点にアイコン302を表示することが望ましい。
The falling water
さらに落水線表示部310は、マウス112の右クリックを検知し、ユーザが落水線編集プログラム141に編集終了を通知するためのユーザインタフェース(コンテキストメニュー)を出現させることが望ましい。その詳細については図6で説明する。編集コマンド入力部320は、ユーザに「編集モード」を指定させるドロップダウンリスト321を備える。ドロップダウンリスト321は、ユーザに「付け替え」、「追加」、「削除」のいずれかを選択させる。
Furthermore, it is desirable that the waterfall
地形断面表示部330は、後述する落水線編集内容の指定処理(ステップ204)および落水線の編集指示を地形等の編集指示に変換(ステップ205)におけるユーザ操作を支援するためのGUIである。地形断面表示部330は、縦軸331および横軸332を備える。後述するとおり、この横軸に沿ってあるセルをある順番に従って並べ、それらの標高を縦軸に示す。さらに、地形断面表示部330は、ユーザに標高値を変更させるインターフェースを備える。このようにウィンドウ300は、少なくとも1以上の落水線を指定する機能を備える。
The terrain
また、ウィンドウ300の落水線表示部310に地図データ193を表示してもよい。これによって、ユーザが落水線を編集することが容易になる。この機能を実装するためには、ステップ201で落水線編集プログラム141が落水線データ192および地図データ193を読み込めばよい。
Further, the
本実施形態では、編集コマンド入力部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
第一に、ユーザが「付け替え」モードを選択した場合について図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
図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
図4のセル441および442は、それぞれ図3のセル341および342に相当する。
図3の落水線311は図4の落水線411に付け替えられる。さらに、この落水線411の下流に位置する落水線412が太線表示されている。これらの落水線411および412に沿った地形断面、すなわちセル441から443の標高が、地形断面表示部430に示されている。落水線411から412が矢印431から432に、セル441から443が矩形451から453にそれぞれ対応している。
The
この地形断面表示部430の左端のセル451の標高より右端セル453の標高の方が低い。この状態、すなわちユーザが指定を開始したセル(441)の標高より、そのセルの下流に位置するいずれかのセルの標高が低い状態において、ユーザはこの編集内容を確定すること、または編集を継続することのどちらかを選択できる。ユーザがセル444上にマウスポインタ401を置いて左クリックすると、ユーザが編集の継続を選択したと判定され、画面は図5に遷移する。
The elevation of the
図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
図5のセル541、542および543は、それぞれ図4のセル441、442および444に相当する。
Cells 541, 542, and 543 in FIG. 5 correspond to
図4の落水線412は図5の落水線512に付け替えられる。図4同様、この落水線512の下流にある落水線513および514が太線表示されている。落水線511から514に沿った地形断面、すなわちセル541から545までの標高が、地形断面表示部530に示されている。落水線511から514が矢印531から534に、セル541から545が矩形551から555にそれぞれ対応している。
The
この地形断面表示部530の左端のセル551の標高よりも右端セル555の標高の方が低い。やはりこの状態で、ユーザはこの編集内容を確定すること、または編集を継続することのどちらかを選択できる。ユーザがマウス112を操作(たとえば右クリック)すると、画面は図6に遷移する。
The altitude of the
図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
ユーザがマウス112を右クリックすると、「確定」および「キャンセル」と書かれたコンテキストメニュー601が出現し、「確定」を選択することでユーザは編集内容を確定することができ、「キャンセル」を選択することでコンテキストメニュー601を非表示にすることができる。この状態でユーザが「確定」を選択すると、落水線編集プログラム141はステップ205に移行し、画面は図7に遷移する。
When the user right-clicks the
図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
図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
この自動的に算出された標高がユーザの意図と異なる場合、ユーザがそれを編集できる。ユーザが実線の矩形の上辺にマウスポインタを近づけると、マウスポインタが矢印型のアイコン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
この状態でユーザが確定ボタン725を操作(たとえば確定ボタン上にマウスポインタを置いてマウス112を操作)すると、落水線編集プログラム141はステップ205を完了させるとともにステップ206から208までを実行し、画面は図8に遷移する。
In this state, when the user operates the confirm button 725 (for example, the
図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
図8のセル842から844は、それぞれ図7のセル742から744に相当する。
ステップ206(標高データの変更)によって、セル842から844までの標高が変化する。したがって、この変化の影響を受けて、これらのセルを終点とする落水線が変化する。一方、これらのセルを始点とする落水線はステップ204でユーザが指定した通りに変更される。図8の例では、図7の落水線746から747が落水線846から847にそれぞれ自動的に付け替えられる。
In step 206 (altitude data change), the altitudes of
ユーザは落水線表示部810を参照して落水線が意図通りであることを確認し、データを保存するコマンドを必要に応じて発行する。これを受けた落水線編集プログラム141はステップ209から210を実行する。ステップ209(標高データ191の書き込み)およびステップ210(落水線データ192の書き込み)によって、編集作業の結果がHDD190に保存されることになる。
The user refers to the falling water
なお、図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
この図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
落水線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
つづいてユーザが確定ボタン925を操作すると、落水線編集プログラム141はステップ206から208を実行し、画面は図10に遷移する。
Subsequently, when the user operates the
図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
ステップ206(標高データの変更)によって、セル1042の標高が変化する。したがって、この変化の影響を受けて、これらのセルを終点とする落水線が変化する。図10の例では、落水線1011から1014が追加される。
In step 206 (altitude data change), the altitude of the
第三に、ステップ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
図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
図11では、ユーザによってセル1142を始点とし、セル1143を終点とする落水線1112が追加されている。図4同様、この落水線1112の下流にある落水線1113が太線表示されている。
In FIG. 11, a falling
落水線1111から1113に沿った地形断面、すなわちセル1141から1144までの標高が、地形断面表示部1130に示されている。落水線1111から1113が矢印1131から1133に、セル1141から1144が矩形1151から1154にそれぞれ対応している。この地形断面表示部1130の左端のセル1151の標高よりも右端セル1154の標高の方が低い。
The topographic section along the falling
なお、この図11におけるステップ204は以下の通り実行された。ユーザが指定を開始したセルは1141であり、このセルを始点とする落水線1111の終点として、ユーザは流域内のセル1142を指定した。この時点でステップ204を完了することは許可されない。この時点では、セル1141から流出した水が、ユーザによって指定された落水線を経由して、セル1141より標高の低い流域外のセルに流れ込むことができないためである。このため、落水線編集プログラム141はコンテキストメニュー601の「確定」メニューを出現させず、セル1142を始点とする落水線の終点を指定させる操作を受け付ける。
Note that
つづいてユーザはセル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
コンテキストメニュー601の「確定」メニューをユーザが選択すると、落水線編集プログラム141はステップ204を完了させる。つづいてユーザが確定ボタン1125を操作すると、落水線編集プログラム141はステップ206から208を実行し、画面は図12に遷移する。
When the user selects the “confirm” menu of the
図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
図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
ステップ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
図13は、本発明の第1の実施形態の落水線編集プログラム141の機能モジュール構成を示すパッケージ図である。
FIG. 13 is a package diagram showing the functional module configuration of the falling water
落水線編集プログラム141は、ウィンドウ管理モジュール1310およびロジック管理モジュール1320の2つのモジュールから構成される。ウィンドウ管理モジュール1310には、ウィンドウ枠管理部1311、落水線表示部1312、編集コマンド入力部1313、および地形断面表示部1314が含まれる。一方、ロジック管理モジュール1320には、落水線編集部1321、落水線生成部1322、およびファイル入出力部1323が含まれる。
The falling water
図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
図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
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
図15は、本発明の第1の実施形態の落水線編集内容の指定(ステップ204)の処理における、落水線編集プログラム141とハードウェア資源との相互作用の詳細を示すシーケンス図である。
FIG. 15 is a sequence diagram illustrating details of the interaction between the waterfall
ステップ204において落水線編集プログラム141はユーザからの開始セル(すなわち対象とする落水線の始点セル)の指定を受け付ける(ステップ1501)。ユーザは入出力部110を通じ開始セルを指定する(ステップ1502)。この際、ステップ203で指定した編集モードが「付け替え」および「削除」の場合、流域内にあるセルのみ指定可能にする。一方「追加」の場合、流域外にあるセルのみ指定可能にする。
In
つづいて落水線編集プログラム141は通過セルの指定を受け付ける(ステップ1503)。通過セルとは、開始セルを始点とする落水線の、終点となるセルである。図3の画面状態は、このステップ1502に該当する。
Subsequently, the falling water
ユーザは入出力部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
落水線編集プログラム141は、「地形編集指示に変換可能」な場合は確定指示またはさらなる通過セルの指定を受け付け、「地形編集指示に変換不可能」の場合はさらなる通過セルの指定を受け付ける(ステップ1508)。図4および5の画面状態は、このステップ1508に該当する。
The falling water
ユーザは入出力部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,
図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
ただし、編集モードが「付け替え」かつ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
つづいて落水線編集プログラム141は、ユーザからの通過セルの指定を受け付け(ステップ1603)、ユーザから入力された値をtheCellに格納する。このことは、セル配列Cellsの最後の要素とtheCellとを結ぶ方向の落水線(たとえば、ステップ1601において図4のセル441が指定され、ステップ1603においてセル442が指定された場合、落水線411)がユーザによって指定されたことを意味する。
Subsequently, the falling water
ただし、落水線編集プログラム141は、入力された落水線が不正なものであるか否かを判定し、不正なものである場合はユーザから入力された値をtheCellに格納しない。具体的には、次の場合、落水線編集プログラム141はユーザが指定した落水線を「不正」な落水線と判定してユーザからの入力を拒絶する(ステップ1604);(1)theCellの値がすでにセル配列Cellsに格納されている場合、または(2)新たな落水線が既存のユーザ指定の落水線を交差する場合。
However, the falling water
なお、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
なお、このように設定された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
落水線の始点が流域外である場合、下流セルが落水線データ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
このステップ1606の終了後、落水線編集プログラム141は、セル配列LowerCellsを初期化(すなわちセル配列LowerCellsに含まれる全要素を削除)しておく。つづいて落水線編集プログラム141は、ステップ1606で探索した下流セルをセル配列LowerCellsに追加する(ステップ1608)。
After the end of step 1606, the falling water
つづいて、落水線編集プログラム141は、ステップ1608で追加された下流セルに至る落水線が「地形編集指示に変換不可能」であるか否かを判定する(ステップ1609)。具体的には、セル配列LowerCellsに変数cellが含まれている場合、ユーザに指定された落水線及びその下流の落水線がループを形成する(図23(a)参照)。このような場合、および、ステップ1608で追加された下流セルに至る落水線が、既にユーザに指定された落水線またはその下流の落水線と交差する場合(図23(b)参照)、ユーザからの入力は「地形編集指示に変換不可能」である。この場合はステップ1603に戻り、落水線編集プログラム141はユーザからのさらなる通過セルの入力を受け付ける。
Subsequently, the falling water
このセル配列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
図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
なお、図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
ただし、ステップ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
ユーザからの入力が「地形編集指示に変換可能」である場合、落水線編集プログラム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
図17は、本発明の第1の実施形態の地形編集内容の指定(ステップ205)の処理における、落水線編集プログラム141とハードウェア資源との相互作用の詳細を示すシーケンス図である。
FIG. 17 is a sequence diagram illustrating details of the interaction between the waterfall
落水線編集プログラム141は、セル標高を仮に決める(ステップ1701)。仮決めの方法は後述する図18を用いて説明する。
The falling water
落水線編集プログラム141は、ステップ1701における仮決めの結果を地形断面図として入出力部110に表示し(ステップ1702)、ユーザからの確定指示または標高の指定を受け付ける(ステップ1703)。図7、図9、および図11の画面状態は、このステップ1703に該当する。
The falling water
ユーザは、入出力部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,
図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
つづいて、落水線編集プログラム141は、これらのセルの平均勾配AveSlopeを算出する(ステップ1802)。このAveSlopeの値はセル配列Cellsの最初の要素(図7の例では、セル751)の標高Cells.Front.Glevと最後の要素(図7の例では、セル755)の標高Cells.Last.Glevとの差を、落水線の長さの合計値で割ることによって求める。
Subsequently, the falling water
つづいて、落水線編集プログラム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
なお、この標高の仮の値は、セル配列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,
つづいて、落水線編集プログラム141は、セル配列Cellsの全要素間が下り勾配であることを示すフラグIsValidUserChannelをtrueにする(ステップ1804)。これによって、標高の仮の値を、各セルの標高として確定することが可能になる。すなわち、フラグIsValidUserChannelがtrueになると、確定ボタン(たとえば図7の確定ボタン725)が表示され、それに対するユーザの操作を受け付けることが可能になる。
Subsequently, the falling water
つづいて、落水線編集プログラム141は、標高の仮の値を入出力部110に表示しユーザからの指示を受け付ける(ステップ1805)。落水線編集プログラム141は、フラグIsValidUserChannelがtrueである場合は標高の変更または確定の指示を受け付け、フラグIsValidUserChannelがfalseである場合は標高の変更を受け付ける。ユーザの指示は変数Commandに格納される。
Subsequently, the falling water
変数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
上記のように標高を編集することによって、ユーザが指定した落水線の方向は必ず下り勾配方向と一致する。しかし、ユーザが指定した落水線が最急勾配の方向と一致するとは限らない。したがって、ステップ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
図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
図19に示すウィンドウ1900は、図3に示したウィンドウ300と類似の機能を提供する。ただしウィンドウ300の落水線表示部310ではすべての落水線を表示していたのに対し、ウィンドウ1900の落水線表示部1910にはあらかじめ設定した値以上の流域面積を持つセルの落水線(たとえば落水線1921)、および流域界1922が表示される。一般に流域面積が大きいセルの落水線ほど重要なため、このようにすることで重要な落水線のみを編集対象とすることができる。また、ウィンドウ300で提供された編集コマンド入力部320および地形断面表示部330が、ウィンドウ1900では提供されない。本実施例においては、落水線の編集として「付け替え」のみが使用される。また、ユーザからの地形編集指示は受け付けず、ステップ1803で算出される仮の標高を常に採用する。したがって、編集コマンド入力部320を使用するステップ203、および地形断面表示部330を使用するステップ205は、ユーザに問い合わせを行うことなく処理される。
A
このウィンドウ1900は、落水線編集プログラム141がHDD190から落水線データ192を読み出した(ステップ201)後に、ディスプレイ113に出力される(ステップ202)。編集モードは常に「付け替え」である(ステップ203)。このウィンドウ1900を使って、ユーザは落水線を編集する(ステップ204)。なお、ユーザによる編集が開始される前の時点において、ウィンドウ1900には太い実線で示す落水線1911及びその両端のアイコン1912、1913は表示されていない。
This
まず、落水線編集プログラム141は、流域内の任意の1セルを開始セル(ユーザの入力した落水線の始点)としてユーザに指定させ、開始セルの中心にアイコン1912を表示する。つづいて、落水線編集プログラム141は、流域内にあり、かつ開始セルよりも標高が低い任意の1セルを終了セル(すなわちユーザの入力した落水線の終点)としてユーザに指定させる。終了セルを指定すると、終了セルの中心にアイコン1913が表示され、さらに開始セルと終了セルとを結ぶ線分が通過するセルに落水線1911が表示される。
First, the falling water
この状態で、ユーザはこの落水線1911を確定すること、または落水線1911が通過するセルを変更することができる。前者の場合、ユーザは確定ボタン1931を操作する。後者の場合、ユーザはポリライン編集に必要な一般的な機能を使って落水線1911を編集する。ただし、ポリライン編集において制御点はセル上にのみ限定される。
In this state, the user can determine the
たとえば生成された落水線1911の形状を変更したい場合、マウス112を用いて落水線1911を構成する1セルをクリックする。するとクリックしたセルの位置にポリラインの制御点が追加され、かつマウスカーソルがマウスカーソル1901のように変化し、制御点が移動可能なことを表示する。ユーザはこの制御点を別のセルに移動させることができる。ユーザが確定ボタン1931を操作すると、ステップ204が終了する。
For example, when it is desired to change the shape of the generated
つづいて、落水線の編集指示を地形等の編集指示に変換(ステップ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 (
なお、ウィンドウ1900は、編集コマンド入力部320、および地形断面表示部330を提供することも可能である。その場合、編集コマンド入力部320、および地形断面表示部330の操作方法は実施例1と同様となる。
The
編集モードが「追加」の場合、ウィンドウ1900において、流域外の任意の1セルが開始セルとして指定され、流域内にあり、かつ開始セルよりも標高が低い任意の1セルが終了セルとして指定される。
When the edit mode is “add”, in the
編集モードが「削除」の場合、ウィンドウ1900において、流域内の任意の1セルが開始セルとして指定され、流域外にあり、かつ開始セルよりも標高が低い任意の1セルが終了セルとして指定される。
When the edit mode is “Delete”, in the
第1の実施形態と同様に、「追加」「削除」どちらの編集モードでも、ステップ204以外の処理は「付け替え」の場合と同じである。
As in the first embodiment, in both the “add” and “delete” editing modes, the processing other than
図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
つづいて落水線編集プログラム141は、ユーザからの終了セルの指定を受け付け(ステップ2003)、ユーザから入力された値をtheCellに格納する。ただし、theCellが流域外にある場合、またはtheCellの標高が開始セルCells.First.Glevの標高以上の場合、落水線編集プログラム141は、ユーザからの入力を「不正」または「地形編集指示に変換不可能」な落水線として拒絶する(ステップ2004)。この場合、落水線編集プログラム141はステップ2003に戻り、再びユーザからの終了セルの指定を受け付ける。
Subsequently, the falling water
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
つづいて落水線編集プログラム141は、セル配列CtrlCellsの全要素を順に結ぶ線分をセル配列に変換する(ステップ2006)。変換方法としては、ブレゼンハム法(Bresenham’s line algorithm)など、線分をセルに変換する一般的な方法を用いればよい。このようにして最初の要素が開始セル、最後の要素が終了セルとなるセル配列Cellsが作成される。
Subsequently, the falling water
つづいて落水線編集プログラム141は、作成したセル配列上に落水線を表示し、ユーザからの通過セルの指定を受け付け、ユーザの入力を変数theCellに格納する(ステップ2007)。変数theCellが確定指示、すなわち確定ボタン1931の操作である場合、落水線編集プログラム141はこのステップ204を終了する(ステップ2008)。
Subsequently, the falling water
変数theCellが通過セルの指定である場合には、落水線編集プログラム141は、ユーザ指定の落水線がループを描く、またはユーザ指定の落水線同士が交差するという条件が真であるかを判別する(ステップ2009)。ユーザ指定の落水線がループを描くか否かは、図18のステップ1807と同様の方法で判定されてもよい。ステップ2009の条件が偽である場合(すなわち、ユーザ指定の落水線がループを描かず、かつ、ユーザ指定の落水線同士が交差しない場合)には、落水線編集プログラム141はそのセルをセル配列CtrlCellに挿入し(ステップ2010)、ステップ2006に戻る。条件が真である場合にはそのセルを破棄してステップ2006に戻る。
When the variable theCell is a passing cell designation, the falling water
本実施例における落水線の追加および削除の処理は、流域界の追加または削除の処理の後、落水線の付け替え処理を行うことで実現する。 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
図21に示すGUIは、流域界を示す線分2122を、マウスカーソル2101を用いて流域外に拡張する機能を提供する。線分2123は、このようにして拡張された新たな流域界である。
The GUI shown in FIG. 21 provides a function of extending a
図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
図21と同様に、図22に示すGUIは、流域界を示す線分2222を、マウスカーソル2201を用いて流域内に縮小する機能を提供する。線分2223は、このようにして縮小された新たな流域界である。
Similar to FIG. 21, the GUI shown in FIG. 22 provides a function of reducing a
図21および図22に示した操作によって流域界を示す線分を移動させたのちに、ユーザが確定ボタン2231を操作すると、落水線編集プログラム141は、新たな流域界に接するセルについて、新たな流域界を横切る方向を「無効な方向」に設定する(すなわち、そのような「無効な方向」を示す値をInvalidDirectionsに追加する)。また、消去された流域界に接するセルについて、消去された流域界を横切る方向について、「無効な方向」の設定を解除する(すなわち、そのような「無効な方向」を示す値をInvalidDirectionsから削除する)。
When the user operates the
その後、このセルデータに基づき落水線データの変更(ステップ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
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.
前記終点のセルの下流のセルを、前記始点のセルより標高が低いセルに到達するまで探索する第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セル、および、前記第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.
前記第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.
複数のセルを含む空間における、前記各セルの標高を示す標高データ、及び、前記各セルから水が流れる方向を示す落水線データを保持し、 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.
一つの落水線または連続する複数の落水線が指定され、かつ、前記一つの落水線または前記連続する複数の落水線の末尾の落水線の終点のセルの標高が、前記一つの落水線または前記連続する複数の落水線の先頭の落水線の始点のセルの標高より高い場合、前記終点のセルの下流のセルを、前記始点のセルより標高が低いセルに到達するまで探索し、 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.
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)
| 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)
| 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 |
-
2010
- 2010-08-04 JP JP2010175409A patent/JP5531365B2/en active Active
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 |