twitter youtube facebook linkedin email
Connect with:

UK – New OS building height data – How to use it with AutoCAD Map3D/C3D and Autodesk Infraworks

mike hutt
June 5, 2014

Customers using Ordnance Survey MasterMap Topography Layer can now access information on the heights of almost 20 million buildings across Great Britain with the alpha release of OS building height attributes (www.ordnancesurvey.co.uk) Released on 17 March, OS MasterMap Topography Layer – Building Height Attribute is a product enhancement to OS MasterMap Topography Layer, and available to licence holders at no additional cost.

If you are one of the lucky customers who can now access this very useful dataset then here you will find how to use it in AutoCAD Map3D/C3D and Autodesk Infraworks environments.

First of all the OS MasterMap Topography Layer – Building Height Attribute comes as .cvs file and it is not joint to the topography so in order to reuse it with Autodesk products it is necessary to manipulate first the .csv file then you need to join it to the topography.

Step 1 – Managing the CSV data

The Building Height Attribute .csv contains the attribute OS_TOPO_TOID, which is the TOID from Topography Layer. This TOID is the attribute that is used to join the data to your Topography Layer data.

TOIDs are stored in GML as a character string, with the prefix ‘osgb’, and can comprise of either a 13-digit number or a 16-digit number after ‘osgb’ (for example, osgb1000042992516).

The first step is to open .csv, removes ‘osgb’ and adds three leading zeroes to 13-digit TOIDs and save as .xlsx

e.g. osgb1000042992516 becomes 0001000042992516

Step 2 – Managing OS Mastermap Topography Layer 

To make the TOIDs joining process simpler it is reccomend you filter the Building poligons in the OS Mastermap Topography Layer and you save it as sdf file.

a. Command line: MAPIMPORT, Select .gz file and bring it into your Map, > Select "Topographic Area" only > Create object data and select Import polygons as polylines.

B1p1

b. Command line: MAPEXPORT to .sdf (export Object data too)

B1p2

c. Connect to Data > Add sdf connection to the .sdf file just created

d. In the Task Pane> Select Layer> Right click, Query to Filter data> Filter the Buildings only

B1p3

Step 3 – Create Data Source Name (DSN)

You now need to create a Data Source Name (DSN) .

a. Using ODBC Data Source administrator, create a user DSN connected to the .xlsx file.

B1p4

b. Add an ODBC connection;In AutoCAD Map3D or Civil 3D Select, Task Pane > Manage data content > Connect to Data > Add ODBC connection to the user DSN just created.

  B1p5

Step 4 – Join the Building Height Attribute to OS Mastermap Topography

Once you have Building Height.xlsx file and the OS Mastermap Topography Layer (Buildings only) added to your Map;

a. Right click the Topographic Layer and Select "Create a join"

B1p6

b. Create a join between the sdf building topograpy layer and the building height data by matching the TOIDs

B1p7

c. In order to Save the joint Map, Right click the topography Layer and select "Export Layer to SDF".

Step 5 – Use the OS Building Height Attribute into Autodesk Infraworks

a. Launch Autodesk Infraworks

b. Drag and drop a digital terrain of the area. 

(If you do not have it you may want to use the free OS Terrain 50 Open Data  http://www.ordnancesurvey.co.uk/business-and-government/products/terrain-50.html)

c. Drag and drop the .sdf file created earlier and use the AbsH2 coloum for your building height.

B1p8

and voila' your town have now realist building height
B1p9

 Cristina Savian 

mike hutt

'