iRIC Software Logo



Line intersects with another cell in the grid

  • Jul 26 2021
  • carlocompanion

How to debug manually lines intersecting with another grid? It is tedious to identify the lines individually. See attached file for reference. Thanks.

iRIC does not ensure the safety of the attached file.


  1. keisuke.inoue says:

    Hello. Thank you for using iRIC.
    I’ve checked the *.ipro file that you’ve attached.
    As you’ve mentioned, the lines of grid intersects, and the length of grid edges changes drastically. It seems that it is not easy to setup grid good for simulation in this way.
    Can you try using grid generation algorithm “Create grid from polygonal line and width”, please? It tends to generates better grids for cases like yours. Using this algorithm, you can define the center line of the grid, independent from the river center line of river survey data. Please refer to the following URL to know how to use it.


  2. pritikumaricetpa says:

    In a grid-based system, such as a raster or a mesh, it’s possible for a line to intersect with more than one cell.
    Adjust the grid resolution: If the line is intersecting with multiple cells due to the cell size being too large, you may need to adjust the grid resolution to make the cells smaller. This will increase the accuracy of the representation but will also increase the computational complexity.
    Snap the line to the grid: If the line is not aligning perfectly with the cell boundaries, you can snap the line to the nearest grid cell to ensure that it only intersects with one cell.
    if you’re looking to improve your coding skills or learn new technologies, Cetpa Infotech offers a range of courses and training programs to help you stay up to date with the latest developments in the field. Check out our website for more information.


This site uses Akismet to reduce spam. Learn how your comment data is processed.

> Forum > Nays2DH > Line intersects with another cell in the grid