Loading

Site Modeling in Context

Obtaining And Transfroming Elevation Data

Place-Based design projects benefit from an understanding and representation of the local terrain. Terrain data is surprisingly easy to obtain and convert into useful representations that may be used in GIS and also popular CAD and 3d modeling formats. This page discusses the how to obtain georeferenced terrain data for nearly anywhere in the world and georeferencd aerial photography within the United States. A few tools are presented for transforming these raster terrain models into: synthetic shaded relief images; contours for laser cutting; surfaces for 3d visualization, and editable breaklines that serve as the basis of earthwork and grading studies.

Some things you can do with digital elevation models

Digital Elevation Models (DEMs) are a type of raster GIS layer. Raster GIS represents the world as a regular arrangement of locations. In a DEM, each cell has a value corresponding to its elevation. The fact that locations are arranged regularly permits the raster GIS to infer many interesting associations among locations: Which cells are upstream from other cells? Which locations are visible from a given point? Where are the steep slopes? One of the most powerful applications of DEMs is adding synthetic hillshading to maps so that the map reader may see the relationship between terrain and other things you may be mapping.

A Digital Elevation Model (DEM) is a raster of elevation values. Rasters represent the world as regular arrangements of pixels (cells). Rasters lend themselves to systematic analysis of the relationships among places and their properties.

For example, a Raster GIS can calculate many useful derivitives of elevation, such as: Slope or Aspect -- the direction of slopes or Visibility -- what is visible from a spot?

Synthetic Hillshade calculated from a DEM is a great way to create visualizations of terrain with other semi-transparent themes. DEMs can also be used to create 3-D scenes or to create contour which may be exported to CAD programs.

Download the Sample Dataset

To save time in this tutorial, and to eliminate crazy variables that may cascade from oddities of your particular download, the rest of this tutorial will use the following sample dataset:

Deeper Reading

... from the GSD GIS Manual


Finding Free DEM and Land Use Data on the Web

National Elevation Dataset and NLCD, National Land Cover Characterization Dataset are a complete seamless coverage of DEM and Land Cover. These are available for free download via USGS Seamless Data Viewer THis web site makes liberal use of popups which seem to be very difficult to pass through Microsoft Internet Explorer. I recommend that you use Mozilla Firefox. YOu should also make sure that if you have google toolbar, that you shut off its popup blocker for this particular site. YOu will see the USGS Seamless Tutorial linked at the top of the browse page. You should open this in a new window for reference while you are using the browser. I won't bother to repeat the instructions for downloading DEMs here.

Hint: The 1/3 ArcSecond Elevation data are not available for all areas. For this tutorial, I recommend that you download the 1/3 Arc Second NED Data -- or use the tutorial dataset, linked above.

For international data, the NASA Shuttle Radar Topography Mission has produced a nearly workld-wide elevation model that you can download in tiles from the CGIAR-I Google Earth - Based Browser for SRTM Data click the Google Earth link at the bottom to view and select tiles from the world wide elevatioopn dataset to download in geotiff format. These should work easily with the techniques discussed below.

If you are willig to go through a rather annoying registration process you may download a slighltly higher quality elevation data for anywhere in the world from the Aster Global Digital Elevation Model. The Aster DEM Extraction Tool. About the Aster Global DEM .

Each of the elevation models we have discussed are collected from the sky with technology that does not penetrate the water reliably. Therefore, in these terrain models, the surface of the water registers asd elevation. If your site is on the coast and you want to know the elevations of the underwater landscape, you may want to check out The NOAA Estuarine Bathymetry download site

References:

Download your Elevation Model and Orthophotograph

  • Use the seamless browser to download an Elevation Model, and if you like, you can also download orthophotos and a land use raster.
  • Zoom into a Modest sized area -- to start with, keep the scale of your browser window less than 1:100,000.
  • Click on and off layers in the display tab to find out if they exist for your area of interest.
  • Use the Download tool to drag a box around your area of interest.
  • Up pops the Request Summary Page. Note that you can use the Modify Data Request options to changing the image format to JPEG (to save space) and set the "maximum Size per Piece" to 250 mb (To reduce the amount of tiling that will be required.)
  • Create a working folder in c:\temp\your_username\downloads to hold these datasets.
  • Use Windows Explorer to extrac ther contents of the zip archives.

Our tutorial dataset includes a USGS_Downloads folder that contains an aerial photo and an elevation model as downloaded from the USGS Seamless Browser. If your images come back as multiple file s that have large balack areas, you can mosaic these together using the Mosaic Tool which can be found in the Geoprocessing Toolbox under Data Management>Raster>Raster Datsset tool set.


Choose an Appropriate Coordinate System

IN the next several steps we will explore the the data we have downloaded in Windows Explorer and in ArcMap. The coordinate system used for the elevation rasters used Decimal Degrees of latitude and longitude for X and Y and meters for the elevations (Z). Most of the things we want to do with elevation -- such as creating a hillshade raster or exporting contours to CAD require us to transform this coordinate system so that X, Y and Z are in the same units. More details about geographic coordinate systems are discussed on the page, Principles of Geospatial Referencing Systems. To make a long story short, we need to choose an apropriate projected coordinate system for the location we are studying. The simplest guideline to follow in choosing a local coordinate system is to use the appropriate zone of the Universal Transverse Mercator Coordinate System. The tutorial dataset includes a utm.shp layer that will help you determine which UTM zone your location falls inside. This same UTM shape file can be found in your c:\program files\arcgis\reference systems folder.

References:

Choose a Local Coordinate System

  • Turn on your UTM layer
  • Zoom out until you can see the red lines that define the UTM zones.
  • Click on your zone with the Info tool to reveal its number. Our tutorial dataset falls in UTM Zone 19.
  • Lets set our data frame projection to project our data apropriately, by double-clicking on the heading that says Layers at the top of your ArcMap table of contents.
  • Now lets set the geoprocessing environment so that all of the outputs of our operations will come out in UTM meters.
  • Do this set this in Tools > Options > Geoprocessing Options > Environments > General Settings
  • Set the coordinate system to the aporpriate UTM Coordinate system. If your study area is in the United States, consider choosing a coordinate system using NAD83 (the north american datum of 1983. If your study area is outside the US an easy choice is WGS84 (world Geodetic Spheroid of 1984.

Reproject and Reformat your Elevation Model

By default the elevation rasters that the USGS gives you are formatted as ArcInfo Grid datasets, which are not files, but inter-related directories (or folders) information which have to be handled carefully, lest they become corrupted. So while we are reprojecting our elevation model, we will also transform its format to the nice, simple Imagine Image format. The next step will accomplish

References:

Explore and Copy Your Raster Datasets

  • Right-click on your elevation raster and choose Data>Export Data
  • In the Export Data Dialog, click the option in the upper right corner to export using the same Spatial Reference as the data fram.
  • Note that you can use the options for extent in the upper left to clip the output to the current view extent (which could be useful.
  • Use the Location chooser to declare the folder that you will be exporting to. I recommend a folder named usgs in your data collection.
  • Use the Name blank to choose a name. For example, ned_10m.img for national elevation dataset, 10 meter resolution. The .img suffix assures that your new data will be an .img image which is easier to handle than a GRID.
  • If you have downloaded a geotiff from the CGIAR site, you should use the same technique to copy it to an img file, but I suggest naming it, srtm_30m for shuttle radar topography mission, 30 meter cell size.
  • Click here to see a screenshot of the export data dialog.

Transforming Rasters with Geoprocessing Tools

Digital terrain models are interesting to look at, but more importantly, they can be transformed into other forms of data that are useful for many things. We can calculate slope and aspect, we can make shaded relief that makes the terrain model much more informative graphically. We can even create contours at whatever contour interval we want. Contours are also useful graphically, for laser cutting and exchange of three dimensional models with other programs. Probably the most efficient ways to terrain information out of GIS and into a 3d modeling package is as a trangulated surface. This is also quite easy to do!

We will begin by transforming our elevation raster to a shaded relief map and an aspect layer using wizards form the ArcGIS Geoprocessing Toolbox. You will see how to use the individual wizards in the toolbox. A the end of this document, you will see how geoprocessing tools can be chained together to create custom tools that will let us create custom wizards to automate useful tasks!

Note! if you try to use a function, as is suggested below, and get an error to the effect This Tool is not Licensed you should go to Tools->Extensions and check the boxes next to 3d Analyst and Spatial Analyst


Transforming Elevation to Hillshade and Aspect

These two tasks will allow us to introduce the toolbox and a few simple wizards.

References

Create Hillshade and Aspect Rasters

  1. Make sure you have the Spatial Analyst and 3d Analyst extensions enabled in Tools->Extensions
  2. Open the Toolbox Panel in ArcMap by clicking the little red toolbox icon raster.
  3. Use the Search Tab at the bottom of the tool boc to find the Hillshade Tool.
  4. Create a hillshade raster.
  5. Take a look at the Display properties of the raster. Try adjusting the transparency of the hillshade to 60 percent and displaying it over your photograph.
  6. note that if your hillshade raster appears to be very high contrast, it is because you are using the unprojected raster that uses decimal degrees for X and Y and meters for Z. Click Here to see an example.

Making Maps with Terrain Shading

The trick of synthetic relief shading demonstrates a fascinating phenomena of visual communication. Even though the default sun azimuth for the hillshade tool (315 degrees, northwest) may never actually occur at your site, you should use this (or some other northern angle.) Setting your synthetic illumination to be in the north is an important convention because shading works because your eye can easily imagine bumps sticking out of the maps, are being highligeted by the source of light in the room (which is normally overhead.) If the illumination is coming from below, the eye and brain still assume that things are highlighed from below, so the map will appear inside-out.

Check out these examples: Mouse over the words in the left column to change the image

Conventional Illumination This sun angle, 315 degrees, never occurs in Oregon, but the hillshading makes the mountains appear to pop out appropriately. Note that the stream is running through the valley to the river.

Natural Illumination This sun angle, 135 degrees, (Southeast) may simulate a mid-morning condition for the site, but the trick of synthetic hillshading makes the valleys, not the mountains appear to pop out! Hillshading is an optical illusion that takes advantage of our assumption that the illumination is from overhead and shadows occur underneath things, not on top of them.

Natural Sun Angle, map oriented north-down With this map we can have a natural sun angle -- and effective relief shading -- at the expense of the cartographic convention for keeping north at the top of the map.


Making Contours

The next set of steps covers the creation of contours. The "Create Contours" tool in the surtface toolbox makes it straightforward to choose a contour interval and to scale the vertical units using a Z-Factor. These contours can also be exported to CAD. The references and processing steps listed below cover the basic tools for creating contours. For a more nuanced approach, take a look at the DEM to DXF Contours tool described in the next section.

References

Create Contours

  1. Go to Tools->Geoprocessing->Environment and set the environment General Settings for Workspace and Scratch Workspace and Output Extent and Output Projection. Choose an appropriate projection (e.g. your local UTM zone) for your output projection.
  2. Open the 3d Analyst->Raster Surface->Contours tool.
  3. Open the help panel on the wizard, and mouse over the different fields.
  4. Click the Help link at the top to look at the entire help document.
  5. Take a look at the environment general settings of the contour tool. Keep in mind that the Output Coordinate System determines what your X and Y units are going to be.
  6. If you want to change the Z units to feet, use a Z-Factor of 3.28.
  7. Take a look at your new contour layer.
  8. To convert your contours to CAD, use the Conversion Tools -> To CAD toolbox to generate a cad file form your contours.

Using Models to Chain Together Series of Geoprocessing Steps

The following parts of this tutorial demonstrate how chains of geoproceesing steps can be put together in models, which are essentially custom tools. In addition to providing a means of pulling several wizards into a single tool. These models allow you to chain the output of one wizard into the next, and also let you fill in the blanks in some of the wizards, and expose other wizard options and environments to the user through a simple interface.

We aren't going to go into all of the techniques of building models here. One of the neat things about models, is if they are designed well, the user doesn't necessarily need to know what is going on inside. Another really good thing about them is that they allow an expert to very suscinctly document a procedure so that users can see exactly what is going on if they are interested. There are some very useful models included with this tutorial, that do things like creating generalized contours and clipped out Triangulated Mesh Models this will be a good occaision to take a look at them and see how they work. We will get to that, but first lets create a simple model to create contours to introduce the basic contents of a model.

References

Geoprocessing Tip Sheet

  1. Create a model that smooths your raster using focal statistics before you make contours
  2. Add a function to your model that eliminates needless vertices by adding a Simplify Line tool to your model.

A One-Step Process for Converting Raster Terrain Models to CAD

Most GSD students think that they have to do everything in CAD -- even though CAD applications are really bad at dealing with very large models and real coordinate systems... Anyway, if you really want to have a terrain model in a CAD package, GIS can help. As you will see from the references above, converting 3d contours to AutoDesk formats involves a couple of steps. Luckily thanks to Geoprocessing models, I have been able to wrap all of the smoothing, a raster turniong it into contours and simplifying them and finally turning it into a DXF file -- all in one step!

References

Turn Raster Terrain Models to Contours with any given contour interval

And Excess Vertices that make your CAD meshes needlessly complex can be Removed!

and the resulting contours are converted to DXF!

YOu may also be interested in the superior meshes that are created directly from raster terrain models These can be made with a tolerance that lets you get the essential information from the terrain model without any excess polygons.

these meshes can be exported to Sketchup and in turn exported to dxf of 3ds formats.

Note! if you try to use a function, as is suggested below, and get an error to the effect This Tool is not Licensed you should go to Tools->Extensions and check the boxes next to 3d ANalyst and Spatial Anayst

Using the GSD Terrain Tools

  1. Make sure your data frame coordinate system properties to a projected coordinate system as described above. These tools will crash if you fail to project your dataframe accordingly.
  2. Look for the GSD Terrain Tools toolbox Then simply double click on the tool you want to use. If you don't know what values to fill into the blanks, simply click on the blanks and look for the tool-tips in the help panel on the right.
  3. If the modeel seems to be giving you error messages that don;t make any sense, try right-clicking on the model and choosing edit here you can check out, and set the parameters in the blue ovals and then choose Model->Run Entire Model.
  4. If after trying the previous step, if the model is still refusing to run -- make sure your dataframe is projected appropriately, save-as your arcmap document with a new name, quit arcmap and start it again.
  5. You may want to try this tool several times with different settings to get the reults you want.

Converting to TIN and Exporting to Sketchup

To export your mesh to sketchup, install the sketchup arcgis plugin into ArcMap. If you are on a computer in room 516, this can be accomplished by choosing Tools->Customize and simply check the box for Sketchup 6 Tools. If you need to install the sketchup5 plugin for ArcGIS on your computer, go to the the winapps/sketchup directory, and follow the instructions.

TO export your TIN to sketchup, simply push the sketchup button, and go to the TIN tab, and uncheck the box that says 'Exclude form Export.'


Visualizing your Terrain Data in 3d

Apologies for this cursory teeaser here, but it will have to do for now. It is surprisingly easy to create visualizations of your terrain data in 3d uusing ArcGlobe. YOu will find useful information about this in the Using ArcGIS 3d Analyst User Guide..

If you open the dem_demo_pt2.mxd in the gis/pbcote/docs folder of your sample dataset, yoiu will see a nice project that makes a nice image overlay using the raster elevation model and contours portrayed in nice colors to indicate land and water, and overlayed transparently on top of the areial photograph. This image was exported as a jpg withg a world file from ArcMap using File->ExportMap. This jpeg will be georeferenced with a world file, and will inherit the projection of the data frame from which it was exported. You wil lhave to use arcCatlog to uypdate the spatial refernce properties of this image before it will open in arcglobe. All of this is worth it, as you will see, if you open the fp_3d.3dd file in gis/pbcote/docs. Consult the 3d Analyst use guide to see how this file can be used to visualize your terrain and buildings in 3d! Hint: movew the DEM layer to the elvation layers group!