Aligning underlying background images with CUBE Network (.net)


It is possible to use a raster image underneath a binary network in the NET Windows in CUBE, as explained in this post.

In this post below we will explain how to align the raster image to your network.

Requirements: .NET network file and a high resolution image file.

The preferable approach to get your network and image aligned would be to georeference the raster image according to your network, before using it underneath the .net file in the NET Window. This should be done externally from CUBE, with any third-party GIS software. Once the raster image is geocoded, the information about base X, Y and scale will be filled in automatically. Several online tutorials explain how to georeference an image with third-party GIS software.

In case this is not possible, it is possible to reach an alignment between network and image also directly within the NET window. Please proceed as explained below:

1) Open .net file in CUBE and then add the underlying image as a IMG layer. Set X and Y as an anchor point close to your network (you can see the X and Y in the NET window when you open your network, at the bottom left corner of your window). Most likely, they will be mis-aligned and also mis-scaled.

2) Go to GIS Tools > Layer Alignment

3) In the Layer Alignment tool, select the Layer as the background image.

4) Click on the 'Move Layer Base Points' option. This will align one point of the image to the respective part of the .net file. To align, click on a point on the Image and drag to the respective point on the .NET file. In general, this is an anchor point and should be one of the corners of the network but also depends on the user and the network itself. 

5) Once dragged and dropped, the image will align more or less to the network. Repeat 4) as needed to align image/net for just one point/corner of the network. Next step is to scale the image to match the network scale.

6) Click on 'Scale Layer with Mouse'. Left-Click on the anchor point which is aligned as per Step 5. This will create a RED dot on the screen.

7) Now, use left-click and compress/expand the image. If you want to compress, click anywhere in the image and drag towards the RED dot (do it little-by-little). If you want to expand, click anywhere in the image and drag away from the RED dot (do it little-by-little)

8) Repeat Steps 6/7 until you find a good match.

9) It is likely that the underlying image will not match the network completely so its a trial/error.

Note: please consider the below (extracted from our Reference Guide) about the supported file formats: