Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Convert the .node file to a .csv
    1. Open the .node file in Excel (space delimited/treat consecutive delimiters as one).
    2. Scroll to row #999 - you likely need to shift the columns from there and onwards to the left to make sure they line up.
    3. Delete the first (empty) column.
    4. Replace the first line with some logical headers (e.g. ID, X, Y, Z, UNKNOWN)
    5. Scroll to row #999 - you likely need to shift the columns from there and onwards to the left to make sure they line up.
    6. The first column should be a unique ID starting at 1 and going up - we use this to sort the table later if needed.
    7. Save the file as a CSV


  2. Load CSV in QGIS and save/export as point shapefile:
    1. Open QGIS
    2. Click on the ‘Open Data Source Manager’ icon.
    3. Select ‘Delimited Text’ at the top of the window.
    4. Click ‘Browse’ and locate the CSV file on your computer, then click ‘Open’.
    5. Ensure ‘CSV’ is selected as the file format.
    6. In "Geometry Definition" select the correct CRS (probably EPSG:4326 - WGS 84)
    7. Click Add, Close
    8. Right click the newly added layer --> Export --> Save Features As... --> ESRI Shapefile --> Specify a name and double check the CRS --> OK


  3. Run the QGIS Thiessen Polygon tool to make a polygon shapefile with Thiessen/Voronoi polygons
    1. Vector / Geometry Tools / Voronoi Polygons

  4. Convert the .ldb land boundary file to a polyline shapefile:
    1. Start Delft3D
    2. Click Utilities
    3. Click QUICKPLOT
    4. Open .ldb file
    5. Under Export File Type, select save as ARCview shape
  5. Convert the .ldb polyline shapefile to a polygon shapefile:
    1. Add the .ldb polyline shapefile to QGIS
    2. Define the Projection of the line shapefile as WGS 1984 (if that's correct) --> Right click --> Layer CRS --> Set Layer CRS --> Select (probably WGS 84) and click OK
    3. The polyline has to be a closed polyline before you can convert it to polygon - this should have been provided by the model developer
    4. Vector / Geometry Tools / Lines to Polygons (save to new shapefile)
    5. Run Vector / Geoprocessing Tools / Union to make sure water polygon includes island cutouts. [This and the following step is not needed if using ArcGIS]
    6. Do some manual selection to select the polygon(s) covering water areas (exclude land areas). e.g. by selecting the main water area, reversing selection to select all islands/land areas, and deleting those features.

  6. Clip the Thiessen polygon shapefile using the LDB water polygon
    1. Vector / Geoprocessing Tools / Clip

  7. Sort the output polygon using the original unique ID.
    1. Processing / Toolbox / Vector general / Order by expression
    2. Expression = ID
    3. Sort Ascending
    4. Save as new shapefile
  8. Confirm the resulting shapefile has the same number of features as the original .node file (open the attribute table and check the number of records).
  9. Save this shapefile in your MapLayerFiles and refer to it from Grids.xml.

...