Documente Academic
Documente Profesional
Documente Cultură
Geo-visualization assignments GRS-60312 ArcGIS 9.3 (ArcMap & ArcScene) - version 2008/2009 -
WUR-CGI-2009
Index
Introduction....................................................................................................................... 3 Assignment 1 Cartography: Bertins theory ............................................................... 3 Assignment 2 The 3rd dimension: using DEM............................................................. 8 Assignment 3 Aerial Photo Drape ................................................................................ 9 Assignment 4 Bookmarks: different views .................................................................. 9 Assignment 5 Extrusion: the 3rd dimension of features............................................ 11 Assignment 6 Transformation of visualisations ........................................................ 13 Assignment 7 Texture mapping for more realistic scenes........................................ 14 Assignment 8 3D Marker Symbol using 3D objects ................................................. 15 Assignment 9 Animation to show changes................................................................. 17
NOTE: This practical manual is a fully updated version of the practical manual (2007, by Verhagen, Ruijten, van Lammeren & Weitkamp)
WUR-CGI-2008/2009
Introduction
This manual is intended for students following the course Remote Sensing & GIS Integration (GRS-60312). The assignments, as known from previous versions of this course (GRS-31209, GRS-50809) have been updated for ArcGIS 9.3. This manual gives guidelines to fulfil the geo-visualization assignments related to the use of ArcMap and ArcScene.. For differences between ArcScene and ArcGlobe have a look at
http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Choosing_the_3D_display_env ironment
The ArcGIS extensions 3D analyst, spatial analyst and data operability will be used too. We assume that students did follow GRS-10306 and are able to work with ArcMap. Questions related to ArcMap could be answered via the GRS-10306 practical manual. The GRS-10306 practical manual is available during this course.
Via the course website you may find the data in need to run the assignments. The names of disks and folders ( named workspaces by ArcGIS) as used in the following examples have to be replaced by the names of your disks and folders you do use during the practical.
After opening the ArcMap software, click on add data located in the upper toolbar (figure 1). Select the data you wish to add to a new project and dataframe (including a viewer) and click add. The data is now loaded into your viewer. You can locate your data under layers on the left side of the screen (default ArcMap)..
When you open the attribute table (by right-clicking on layer), you will notice that the descriptions of the fields are defined by a TDN_code. These codes are explained in the dBase-table: top10_code_description. Before assigning colours to the fields, you need to join the attribute table of top10.shp with the dBase-table. Right click on the layer and select properties. Locate the tab Joins & Relates(figure 2).
Figure 2: Join/relate table
Click on add in the Join column (figure 3). The field that the join will be based (1) on is the TDNcode. The table that you want to join to the layer (2) is the description table (dBase file). Finally you select the field with the descriptions (3): tdncode2. Click OK.
WUR-CGI-2008/2009
Now you can start thinking of an appropriate colour scheme to assign to the different parcels on your map. Note: colours are grouped in certain colour schemes. If you want to visualize values of the same attribute or attributes then select colours in the same scheme (eg. http://colorschemedesigner.com/ 05/2009 and http://en.wikipedia.org/wiki/Color_scheme ). Lit: Brown, A., W. Ferringa, Colour basics for GIS Users, Pearson Education, 2003 To assign the colour, go to the layer properties and select the tab Symbology (figure 4). Instead of Features select Categories unique values in the left column Show. Select the field with the descriptions in the box Value Field and click Add All Values. Now you can select the best colour scheme for the parcels according to the theory of Bertin. NOTE: You can assign custom colours or textures by double clicking on the colour related to the value. If you wish to group different values into one value (e.g. mixed forest and pine forest into Forest) select multiple values (use crtl) and right-click on it. Select Group Values. Change the label to the desired name (Forest).
WUR-CGI-2008/2009
Create a map lay-out via the map lay-out options you could activate via View > Lay out View. ArcGIS offers via ArcMap and ArcScene options to create your own visualisation style via the Style Manager. The Style manager is a tool to define your own sets of visualization variables (figure 5)
Style references and Style managers can be found via Tools > Styles (figure 6)
WUR-CGI-2008/2009
You could easily create your own style items via for example a Right Mouse Click in North Arrows properties window (Name, Category) which offer you options to select and create your own graphic symbold and attributes (figure 7).
After finishing the map lay-out store your results as a layer file (.LYR) via select layer; click right mouse button; select Save as Layer file.
In fact you may do all the same in the ArcScene mode. Unfortunately, ArcScene does not support the use of map lay-out options which includes a legend, north arrow, scale bar etc.
WUR-CGI-2008/2009
You can remove your DEM layer from the view by making it invisible in the Scene layer window.
NOTE: ARC Scene may reply with an error when trying to import a raster file, such as your DEM. To solve this problem, go to the ARC toolbox, located under the red toolbox icon (figure 9) and select the Reclassify tool. This tool is located under Spatial Analyst Tools > Reclass. Input a raster file in the Input raster field and press OK. You need to do this only for one raster file. After this procedure, ARC Scene is again able to handle any raster file.
Figure 9: Toolbox
WUR-CGI-2008/2009
Bookmarks in ArcGis predefine viewpoints (perspective, orthogonal). Bookmarks could be created and managed via the related functions (fig.11).
WUR-CGI-2008/2009
NOTE: Bookmarks may be used in any view window. Make use of the Add Viewer and Viewer Manager functions to subsequently create and manage extra view windows (figure 12)
Via View >View settings (figure 13) you could easily change between viewers and view settings. By activating the Stereo radio button you may have a real 3D view if you make use of a stereo glasses (in this case the one with a red and a blue glass) to stimulate stereopsis (see: http://en.wikipedia.org/wiki/Stereopsis ).
WUR-CGI-2008/2009
10
B
We start with extruding build up areas. Add the layer with build up areas to the viewer. Right click on the layer and select properties. First, move to the tab base heights and drape the layer over the DEM (see exercises 2 & 3). Next, move to the tab extrusion (figure 14). Give a value to the field Extrusion value or expression (figure 8; A): for example 10 (meters).
You can also add a field with height values to the attribute table of your layer and then select this field for extrusion by pressing the calculator icon (figure 14; B). You have now created a classic extrusion for your build up areas. To extrude the forest area we are going to make an alternative extrusion. The reason for this is that you will end up with a horizontal forest roof when applying the previous extrusion method. However, the forest roof has to follow the height of the DEM, especially in case of a large forest polygon. First, we have to make a separate forest layer. To do this, select the tool Select in the toolbox. This tool is located under Analysis Tools > Extract. Input your top10 shapefile and state an expression by clicking the SQL button. (e.g. run the query "TDN_CODE" = '05053' OR "TDN_CODE" = '05223' , in which the numbers represent the codes of different types of forests.) Click OK. The shapefile we just created we use later on to make the roof of the forest. Now, we have to make a separate layer which includes the surroundings of the forest shapefile. So, we have to extract the line features. To do this, convert the forest polygon into a line feature. This tool is located in Data Management Tools > Features >
WUR-CGI-2008/2009
11
Feature to Line. The shapefile we just created we use later on to make the walls of your forest. Add both newly created shapefiles to your viewer. Right click the forest polygon shapefile and select properties. Drape the shapefile over the DEM (see exercise 2, also figure 15; A) and give the shapefile an Offset of 20 (figure 15; B). You can assign colours to the shapefile under the tab Symbology. Click OK. You have now a forest roof floating above your aerial photograph.
Figure 15: Base Heights (poly)
Next, right click the forest line shapefile and select properties. Drape the shapefile over the DEM (see exercise 2, also figure 15; A) and give the shapefile an Offset of 10 instead of 20 (figure 15; B). Go to the tab Symbology and click the Symbol. In the next window click Properties. Select in the next window (figure 16) the type 3D Simple Line Symbol. Choose an appropriate colour, select the style Wall and give Width the value 20. Close all windows by pressing OK. You have now created an alternative extrusion for your forest area.
WUR-CGI-2008/2009
12
VRML files could be viewed via VRML viewers, like Cortona. Besides Lay-outs, maps and scenes could be transformed into a KML (Keyhole Markup Language) file. ArcGIS offers this transformation (figure 18) via Arctoolbox to KML to convert multiple layers (map) or single layer (layer).
KML files could be viewed via the Globe viewer, Google Earth, and Map viewer, Google Maps. NOTE: KML files may also be created out of ArcGIS data via plugins like Shape2KML.
WUR-CGI-2008/2009
13
You are now prompted to import an image file that will be used as a texture. Choose for example bark for the walls of your forest and green vegetation for the roof of the forest (figure 20). Give the walls of the forest a vertical orientation and a width of 20 (note: you have to set the offset of your forest walls back to 0). You have now created texturized 3d extrusions.
WUR-CGI-2008/2009
14
Open ARCMap and import your new shapefile as well as the aerial photograph. Right click your point shapefile and select Open Attribute Table. In the next window (figure 21), click Options > Add field. Type in a name for the new field and select type Text (figure 22). Click OK and close the attribute table.
Figure 21: Add Field
Now we start to input new points. Select your point shapefile and click View > Toolbars > Editor. In the toolbar (figure 23) click Editor and select Start editing. Next, select the pencil tool (figure 23; B) and click on the map where you want your 3d marker symbol to be located.
Click the selection tool in the editor toolbar (figure 23; A) and right click on your newly created point. Select Attributes and double click the value behind the property you previously added to the attribute table (figure 21, 22).
WUR-CGI-2008/2009
15
Type in the appropriate name for your point feature (figure 24). Repeat the previous steps to add more point features. When finished click Editor > Stop editing in the editor toolbar. Save your edits and close ARCMap.
Import your point shapefile in ARC Scene. Right click the shapefile and select Properties. Drape your shapefile onto the DEM in the tab Base Heights. Go to the tab Symbology and select Categories > Unique values (figure 25). In Value Field select the description field you added to the attribute table of the point shapefile (figure 25). Double click the symbol next to the feature that you want to give a 3d marker symbol. Click Properties.
Figure 25: Symbology point features
Select in the new window (figure 26) the type 3d marker symbol. You are now prompted to import a 3d model. This can be a 3D Studio (*.3ds) file, an Open Flight (*.flt) file, a SkechUp (*.skp) file, or a VRML (*.wrl) file. Many 3d models are available for free on the internet. For example http://sketchup.google.com/3 dwarehouse
Figure 26: 3d marker symbols
NOTE: The Zip file GESOSKP.ZIP consists of some SKP files that you may use also. These file shave been created for the Dutch GESO (Google Earth based visualisation of the Sustaibable Outlook)-project Select your model and change the dimensions, placement and rotation angle according to your preferences.
WUR-CGI-2008/2009
16
Return to the layer properties window (figure 25) and repeat previous steps for the other point features. When finished click OK. You have now created a point layer with 3d marker symbols. NOTE: The creation of a point feature layer to be able to use 3D marker symbols is also possible by using the ArcToolbox > data management tools > Features by which you could adapt the feature type of available layers.
WUR-CGI-2008/2009
17
Select Camera in the field Key frame of type (figure 28). Click Create. In the next window (figure 29), choose type camera, make a new destination track and give your key frame an appropriate name. Click Create.
Change the camera view to the next scene and repeat the previous steps for every key frame to create your flight path. To play your animation press the animation control button on the animation toolbar (figure 27).
Another way to make a flight path is by drawing a line with the 3d graphic toolbar (figure 30). This Figure 30: 3d graphic toolbars toolbar is located under View > Toolbars > 3d Graphics. Draw your flight path. Then, select Camera Flyby from Path in the animation toolbar (figure 27) and fill in the specified parameters. Play with these parameters to see how they affect your animation.
WUR-CGI-2008/2009
18
You can easily change the length between the key frames by dragging them in the tab Time view in the Animation manager (figure 31).
Layer animation works similarly to camera animation. You only need to specify your source object (layer you want to move) when creating your first key frame in the animation manager. Change the properties (translation x, y, z; scale; etc.) of the different key frames to establish (the illusion of) an animation (figure 32). Figure 32: Properties of layer animation Similar to camera animation you can also move your layer along a path created with 3d graphics. To do this, select Move Layer Along Path in the Animation toolbar (figure 32).
You can save your animation file (click Save animation file in the animation toolbar) but you can also export your animation to a standard movie format. Click Export to Video in the animation toolbar (figure 27). Type in a name for your movie and click export. You are prompted to specify compression properties. Fill them in like in figure 33.
Figure 33: Compression properties
NOTE: Exporting takes a long time, but do not change programs and wait until exporting is finished.
WUR-CGI-2008/2009
19