13
The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web) Gordon Luckett – Arrow Geomatics Inc. GS5030 Learn how to create intelligent data in AutoCAD Map 3D software, render it in 3D in InfraWorks software, and serve it up online with Infrastructure Map Server software. All 3 products follow the life span of building footprints and parcel fabric as the design goes from being basic polylines to intelligent 3D data- rich objects Learning Objectives At the end of this class, you will be able to: Learn how to add attributes to data in AutoCAD Map 3D software Learn how to bring data into InfraWorks software Learn how to utilize data in the Infrastructure Map Server platform Learn how to publish graphical and attribute-rich data to the web About the Speaker Gordon Luckett is the president of Arrow Geomatics, Inc., a geographic information system (GIS) consulting, training, and development company, and he has authored many of the official Infrastucture Map Server and AutoCAD Map 3D coursewares for Autodesk, Inc. Gordon works with many levels of governments to facilitate the integration of various systems using Autodesk products. Oracle Spatial and Microsoft SQL Server Spatial are part of Gordon's specialties, especially when the software systems are combined with Autodesk and Open Source GIS products. [email protected]

AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

  • Upload
    lecong

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

Gordon Luckett – Arrow Geomatics Inc.

GS5030

Learn how to create intelligent data in AutoCAD Map 3D software, render it in 3D in InfraWorks software, and serve it up online with Infrastructure Map Server software. All 3 products follow the life span of building footprints and parcel fabric as the design goes from being basic polylines to intelligent 3D data-rich objects

Learning Objectives At the end of this class, you will be able to:

• Learn how to add attributes to data in AutoCAD Map 3D software

• Learn how to bring data into InfraWorks software

• Learn how to utilize data in the Infrastructure Map Server platform

• Learn how to publish graphical and attribute-rich data to the web

About the Speaker

Gordon Luckett is the president of Arrow Geomatics, Inc., a geographic information system

(GIS) consulting, training, and development company, and he has authored many of the official

Infrastucture Map Server and AutoCAD Map 3D coursewares for Autodesk, Inc. Gordon works

with many levels of governments to facilitate the integration of various systems using Autodesk

products. Oracle Spatial and Microsoft SQL Server Spatial are part of Gordon's specialties,

especially when the software systems are combined with Autodesk and Open Source GIS

products.

[email protected]

Page 2: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 2

AutoCAD Map 3D: Use LIDAR to Extract Building Heights and Add to

Buildings Steps to perform operation:

1. In your DWG, ensure all your building footprints are closed polylines.

2. Using the MAPEXPORT command, export your building footprints as an SDF file.

Ensure the “Treat Closed Polylines as Polygons” is checked.

3. Using the MAPPOINTCLOUDMANAGER command, add the Lidar (LAS) file to your

drawing.

4. Generate an INDEX and Add to map.

5. Right-click the new Point Cloud in your Display Manager and click Create Surface to

open the Surface Manager, or user the MAPSURFACEMANAGER command.

6. Add the new ISD file Twice to your Manager.

Page 3: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

3 [email protected]

7. In the Filter Point Cloud dialog, for the first one, choose 2 – Ground, and the second,

choose 6 –Building.

8. Generate the Surface(s) and Add to Map.

Page 4: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 4

9. For both Surfaces, in Display Manager, right-click each Surface and pick Create Contour

Layer.

10. Make your Contour Elevation Interval as accurate as you require (i.e. 0.1 Meters or 0.25

Feet)

11. Ensure the Create Contours As is set to POLYGON.

12. Save your Contours as BUILDING_contour.sdf and GROUND_contour.sdf.

13. Ensure both Contour Layers are added to the map.

Page 5: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

5 [email protected]

14. Run the MAPGISOVERLAY command or click Analyze table and choose Feature Overlay.

15. For the Source, choose Ground_contour layer. 16. For the Overlay, choose Building_contour layer. 17. For Type, choose Intersect.

18. Create the GROUND_BUILDING_CONTOUR_INTERSECT.sdf – this will contain both the Ground heights and the Building heights in the same SDF file.

19. Make sure you have the Buildings.sdf added to your map that you created in Step #2.

20. Perform another Overlay using the MAPGISOVERLAY command. 21. For Source, use the GROUND_BUILDING_CONTOUR_INTERSECT and for the

Overlay, use the Buildings.sdf. 22. Call the resulting file HEIGHTS_BUILDING_INTERSECT.sdf.

Page 6: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 6

23. Right-click the HEIGHTS_BUILDING_INTERSECT layer in Display manager and choose Create A Calculation.

24. For Name, enter Actual_Building_Height 25. For Calculation, enter: Elevation_2 - Elevation_1 26. Click OK.

27. The FeatID is the actual ID from the original Parcels.sdf and the Actual_Building_Height is the height subtracting the absolute building height from the absolute ground height.

Page 7: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

7 [email protected]

28. Open the Data Table and select all the records. 29. Under Options, choose Export. 30. Export the list to HEIGHTS.csv.

31. Import the HEIGHTS.csv into Access or any other database. The last two columns

should be FeatID (from original buildings) and Actual_Building_Height (your calculated field). The other columns can be deleted.

32. You will need to group the data together to get the maximum height of each building. An example query looks like this: SELECT HEIGHTS.FEATID, Max(HEIGHTS.HEIGHT) AS HEIGHT FROM HEIGHTS GROUP BY HEIGHTS.FEATID;

33. Save your Query or View as BUILDING_HEIGHT 34. Create an ODBC to connect to new Access file using odbcad32.exe. (Note you may

need the Microsoft Access 2010 Runtime if you do not have 64bit Access installed (http://www.microsoft.com/en-us/download/details.aspx?id=10910)

35. In AutoCAD Map 3D, right-click your original Buildings.sdf in Display Manager, and choose JOIN.

Page 8: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 8

36. Create a Join between the FeatId in the Buildings.sdf and the FeatId in the BUILDING_HEIGHT view or query in the database.

37. Right-click the Building Layer > choose Export Layer Data to SDF to make a new SDF with Permanent Heights.

The final SDF file will have your Building Polygons and the height as part of the file. This file will be used in both InfraWorks 360 and Autodesk Infrastructure Map Server.

Page 9: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

9 [email protected]

Add Sketchup Model to InfraWorks 360 1. Find Models (i.e. http://3dwarehouse.sketchup.com)

2. From within Sketchup, export model as DAE format.

3. Drag and drop new DAE file into InfraWorks 360.

4. In InfraWorks, open the Data Sources tab.

Page 10: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 10

5. Double-click the New DAE file you dragged-and-dropped to open the Data Source

Configuration.

6. Change the Type to “Buildings”.

7. In the Geo Location tab, click Interactive Placing to locate the model in your map.

8. Choose the location and click on the map.

9. Click Close & Refresh once the model is located on the map.

Page 11: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

11 [email protected]

10. To adjust rotation, click on the model. Right-click and choose Properties.

11. Rotate 45 degrees, under 3D Model, in the Rotate Z, enter: 45

12. Click Update button in the Properties Pane to see results.

Page 12: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

[email protected] 12

Code to Show 3D Parcels in HTML with CesiumJS <!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0,

user-scalable=no">

<meta name="description" content="">

<meta name="author" content="">

<title>AIMS Rest - Cesium Example </title>

<script src="/mapserver2015/rest/assets/cesium/Cesium.js"></script>

<style>

@import url(/mapserver2015/rest/assets/cesium/Widgets/widgets.css);

#cesiumContainer {

position: absolute;

top: 0;

left: 0;

height: 100%;

width: 100%;

margin: 0;

overflow: hidden;

padding: 0;

font-family: sans-serif;

}

body {

padding: 0;

margin: 0;

overflow: hidden;

}

</style>

<script type="text/javascript">

var viewer;

window.onload = function() {

viewer = new Cesium.Viewer('cesiumContainer');

viewer.extend(Cesium.viewerEntityMixin);

var buildingSource = new Cesium.CzmlDataSource();

viewer.dataSources.add(buildingSource);

buildingSource.loadUrl("/mapserver2015/rest/library/NANAIMO/2_LAYERS/BUILDING

S.LayerDefinition/features.czml?TransformTo=LL84");

viewer.scene.camera.flyTo({

destination: Cesium.Cartesian3.fromDegrees(-123.93412, 49.16591, 1000.0)});

};

</script>

</head>

<body>

<div id="cesiumContainer"></div>

</body>

</html>

Page 13: AU2014 GS5030 The Life of a Building Footprint - Autodeskaucache.autodesk.com/au2014/sessionsFiles/5030/4095/handout_5030_AU2014... · The Life of a Building Footprint (from AutoCAD

The Life of a Building Footprint (from AutoCAD to InfraWorks to the Web)

13 [email protected]

City of Nanaimo Data

Data Catalog: http://data.nanaimo.ca/

Building Footprints: http://data.nanaimo.ca/DataBrowser/nanaimo/BuildingFootprint

LIDAR Data: http://data.nanaimo.ca/DataBrowser/nanaimo/Lidar

Ortho Data: http://www.nanaimo.ca/ortho

MapGuide-Rest Project

Main Site: https://github.com/jumpinjackie/mapguide-rest

Download: https://github.com/jumpinjackie/mapguide-rest/releases/download/v0.10-

pre/mapguide-rest-0.10.zip

IIS Application Request Routing: http://www.iis.net/downloads/microsoft/application-request-

routing

MapGuide Maestro

Main Site: http://trac.osgeo.org/mapguide/wiki/maestro

Download: http://download.osgeo.org/mapguide/maestro/MapGuideMaestro-Release-6.0a3-

Setup.exe

Cesium 3D Web Library Main Site: https://cesiumjs.org

Demos: https://cesiumjs.org/demos.html

MapGuide/rest/Cesium Demo: http://mapguide.ca/nanaimo.htm