Professional Documents
Culture Documents
User:JaneVannin/translations/topographic
Introductory notes
The aim of this tutorial is to show how to create a vector graphics topographic map from DEMs resulting from
NASA's Shuttle Radar Topography Mission (SRTM) by using the GIS programs 3DEM [1] andGRASS GIS.
There are several advantages in using
DEMs from the SRTM in that the data
are free (in the public domain), are
freely accessible on NASA's website,
are precise (to a resolution of 31 m at
the equator), cover practically all
inhabited land surfaces (80% of
emerged terrain), and come from a
reliable source. There is also less
chance of making an error in, for
example, a contour line trace than from
one produced from a scanned map;
digitally produced maps are easier to
make than hand-drawn ones, and
above all for the ends of Wikipedia,
the data are instantly accessible to all,
saving a huge amount of time in
documentary research for freely reusable sources. It is also worth noticing that the maps are in "SVG" format,
(except for relief shading images), which can be used at any size without loss of quality.
Those interested in a map produced more simply and in bitmap format can consult the bitmap relief map creation
tutorial.
GRASS GIS does not allow the re-projection of a map "on the fly": each map project is precisely defined from its
creation (geographical localisation, resolution, projection etc) and may not be modified afterwards. On the other
hand it is not possible to import a DEM into a project if the projections are not the same, which obliges us to first
create a project using the native projection of the DEM and then a second in the projection which will be used during
the final map.
The creation of this type of map is comprised of various stages, but the process is quite simple:
• Fusion of the DEMs and filling in of voids[2] in 3DEM;
• Creation of a project using the native projection of the DEMs and importation of the map into GRASS;
• Creation of a second project using a UTM projection and re-projection of the map;
• Extraction of the altitude segments;
• Vectorisation of each segment of altitude in Inkscape;
• Importation of the coastal map;
• Reframing of the map;
• Colorisation of each level;
• Creation and integration of the map of optimized relief shading;
• Creation and integration of the bathymetry map;
• Finalisation of the map with the latitude and longitude grids and scales.
User:JaneVannin/translations/topographic 2
The tools
• 3DEM [1] (version used: 20.3): free
and easy to use GIS editor with
which the SRTM voids will be
filled;
or:
• GRASS GIS official site [3] (version
used: winGRASS 6.3.0RC6): free
powerful multi platform GIS
program used to edit the digital
elevation models (DEMs) and
extract from them the altitude Simulated example of geological topographical map of the Falkland Islands
• GIMP (version used: 2.4.5): bitmap editor which allows optimization of relief shading
• Inkscape (version used: 0.46): SVG editor with which the DEM and SWBD data will be vectorised.
Remarks:
• This tutorial presents the most rapid method for creating the initial map by using 3DEM which is not designed
for other than 32 bit Microsoft Windows platforms. Editors using another operating system can load SRTM
files into GRASS GIS and fill the voids using its r.fillnulls module.
• It is possible to use 3DEM to create and directly extract each altitude segment using a UTM projection, but
during tests this program was shown to introduce reasonably large errors into altitudes during the
re-projection which makes it unsuitable for this task.
Data sources
For other available resources, consult Wikipedia Map resources
• NASA Shuttle Radar Topography Mission (SRTM) DTMs:
These are the files released into the public domain, compressed into .zip format, which contain the digital
topographic data of the region considered. The zone covered by the DEMs resulting from the SRTM extend
from latitude 56° South to latitude 60° North. These files must be decompressed before being used in 3DEM.
There are three SRTM file types:
User:JaneVannin/translations/topographic 3
• SRTM1 (download here [8]): the most precise data with a resolution of one arcsecond (31 m at the equator),
but which are only available for the United States and its dependencies. Each file represents a rectangle of a
degree of an arc to a side referenced according to the coordinates of the bottom left corner.[9] .
• SRTM3 (download here [10]): a precision of three arcseconds (93 m at the equator) which covers all emerged
land between the latitudes indicated above. Filetypes and references identical to SRTM1. These are the
datasets which will be of most use for the needs of Wikipedia.
• SRTM30 (download here [11]): a precision of 30 arcseconds (926 m at the equator), adapted for maps covering
more than one country or a continent.
Each map covers a region of 50° of latitude by 40° of longitude, referenced according to the coordinates
of the upper left corner. Each map is contained in a specific folder which contains 12 separate files.
Only 10 of these will be of use to us; the remaining files *.jpg.zip and *.gif.zip are just
preview files. These 10 files must each be downloaded and decompressed before being used in 3DEM.
In the program, select the GTOPO30 Tile option, then in the new window representing the map of
the world, centre the frame on the region of interest and specify a Lat/Lon projection. Navigate
through the menu and select the .DEM file.
• NASA SRTM Water Body Data (SWBD) (download page [12]) : complementary files to the SRTM containing the
precise outline of coasts, lakes and watercourses of a certain size
9. If your map covers more than one UTM zone and 3DEM
cannot re-project it as a UTM, reopen your map and, only
selecting the DEM of the central zone or which contains the
most data, proceed with the re-projection. Check the UTM
coordinates of this portion of the map, note them, then close
3DEM.
• Example: Let us suppose that we have a map extending from 17°E to 26°E (regardless of latitude), thus 1° in
the 33 zone, 6° in the 34 zone (all of its width) and 2° in the 35 zone.
By only selecting in 3DEM the SRTM of zone 34 (which is our main zone) and by re-projecting this
part of the map as a UTM, we can see in Operation -> Show DEM Specs the coordinates East:
< 240120 > and< 759690 >.
The map completely overlapping by a degree to the West, we can subtract 111,120 m from 240120,
which gives 129000. To the East, the map overlaps by two degrees, so we add
2 x 111,120 m =222,240 m to 759690 which gives 981930. These are the two values which will be
specified for the westerly and easterly limits during the creation of the project of this map as a UTM in
GRASS.
The zone for the map in GRASS will certainly be too wide because the more one increases in latitude,
the shorter is the length on the ground of a degree of an arc, but this is not important.
18. Enter the values in degrees of the North, South, East and
West limits of the zone covered by your map. Press ENTER
to change field.
Opposite, the fields filled in for the example of the Falkland
Islands which extend from 53°S to 50°S and from 062°W to
057°W.
19. GRID RESOLUTION: the two fields represent the
desired resolution in pixels for the map. In the case of SRTM3, the native resolution is 3 arc seconds (1 arc
second for the SRTM1 data covering the United States). These values can be entered in decimal form
(0.00XX) or sexagesimal (0:00:XX) which is the most practical in our case. For a map using the DEMS of
SRTM3 at their native resolution, enter the value 00:00:03 (corresponding to 0 deg. 0 min. 03 sec.) for
each field. Confirm all of the values with ESC then ENTER. GRASS reconfirms the values you have entered.
If you are happy with these, press ENTER.
In the example on the right below one can check that the native resolution of the SRTM3 DEMs has been
specified: the map extending over 5° of width and 3° of height, its size in pixels is, as it should be, 5 x 1,200 by
3 x 1,200 (1,200px x 1,200px being the native size of an SRTM3[14]
21. You will now see again the graphic interface window
with, in the field Project Location the folder you have just
created (Falkland_Islands in our example). By
clicking on this name, you will see in the Accessible
Mapsets field the subfolder PERMANENT which has been
created. Select it. The grey button Enter GRASS on the
left at the bottom of the window will then become green and
active. Click on it to enter GRASS.
23. Select the Required tab(1). Click on the folder button (2)
and navigate through the menu to select the GeoTiff map
created in 3DEM which can be found in the
C:\GRASS\GIS DataBase folder. Enter a name for the
map in the field Name for output raster map (3).
User:JaneVannin/translations/topographic 10
31. For the geodesic system, enter wgs84 once again and
then press ENTER.
34. Enter the number of the UTM zone of the map and then
press ENTER.
39. You will see the startup window of GRASS again with,
in the field Project Location, the name of the folder which
has just been created (Falkland_Islands_UTM in our
example). Click on this then on PERMANENT in the field
Accessible Mapsets and finally on the Enter GRASS button
to enter the program.
43. You can change the default colours by going in the main
window into the menu Raster -> Manage map colors ->
Color tables which opens the r.colors module window. Go
into the Required tab, and click on the coloured button then
select your map.
User:JaneVannin/translations/topographic 15
44. On the Colors tab, select, for example, < srtm > from the
Type of color table: drop down menu. Click on the Run
button then close this module window.
47. Export the bitmap map: go into File -> Export raster
map -> PNG. In the exportation module window, click on
the button in the field Raster file to be converted: and select
your map. In the field Name for new PNG file, replace
<rasterfilename> with < View_topo_GRASS > then click
Run. Your image will be stored by default in the root folder
of the program: C:\GRASS. Keep the module open.
-500 white
50 white
50 black
10000 black
Save. This file is a table of colours which can be used for a map. As it is here presented, the table specifies that
for the altitudes from -500 m to +50 m the map will be white and from 50 m to 10 000 m black. The line
< 50 white > produces a distinct colour transition. If this line was not present, the transition would be made
with a gradient of grey like that which may be observed by previewing a map using the srtm colour table. The
value < 50 > indicates that this table will be used to extract the altitude segment from 50 m. Keep the file open.
3. Modify the colorimetric table applied to the map: open
once again the module r.colors (Raster -> Manage map
colors -> Color tables). On the Required tab, select your
map and on the Colors tab, the table < Black&White.txt >
which you have just created. Click on Run to launch the
operation. In the Map Display 1 window, click on the
Redraw all layers button to refresh the display.
4. Export (File -> Export raster map -> PNG) this altitude
segment: specify as PNG the filename < 50_m > then click
on Run.
User:JaneVannin/translations/topographic 18
Save the file in .txt format under a specific name. Apply this new colour table to your map and export it in png
format. The colour of the sea is here the same as that of the first altitude segment to correct the imprecisions of the
line of the coast of the SRTM[4] . The definitive coastline will be realised from the SWBD.
Scale of a map and simplification of the paths: The native resolution of an SRTM3 is 93 m per pixel at the
equator. By taking as a standard of precision 0,25 mm when the map is printed, the native scale of this type of
DEM is 1:372 000e (see the tutorial Calculation of the scale of a map). If during the simplification of the paths
these do not become distanced from the original trace by more than a pixel, the spatial precision will then be to
two pixels (+/- 1 pixel), or 186 m which equates to a scale of 1:744 000e. It is thus necessary to adapt the
threshold of simplification of the paths as a function of the precision required for the map.
User:JaneVannin/translations/topographic 22
Simplification threshold too high producing a distorted outline Acceptable simplification with a valid outline
2. Activate the < Coast > layer and import the SWBD map
created using the Aquatic surface vector mapping tutorial.
This layer usually contains a group of two paths, one for the
coastline and one for the lakes and large rivers. Align it perfectly
above the preview of 3DEM. Increase the zoom to 300 % to verify
this as this stage is extremely important to avoid any discrepancy
between the SWBD map and the different relief levels which
might cause, for example, a lake to appear to be on the slope of a
hill. Save.
3. Ungroup (CTRL + SHIFT + G) the two paths of the
SWBD map (coastline/lakes and rivers). Select only that for
the lakes and rivers and move it to the < Lakes > layer.
4. Check that all of the layers are visible and unlocked. With
the F1 tool activated, select all of the objects contained
within the map (CTRL + ALT + A). Click on the map to
go into Rotation mode.
User:JaneVannin/translations/topographic 25
9. Close all the layers except for < Coast > layer and fill it
with black. Delete its contour. Export this map, which
represents emerged land surfaces, in PNG format, for
example as < Coast_black.png > and which will be used to
delimit the shaded relief. After the exportation, close the
dialogue window then delete the fill of the path and apply a
contour.
2. « Show » the < 50 m > layer, select the path and fill it with
green according to the colour convention (#94BF8B).
Delete its contour which will otherwise visually overload
the map. Proceed in the same fashion for the other levels.
6. Once again select the Color to Alpha… tool (1) and this
time specify the colour white (2). Confirm: the whites (ie
illuminated zones) become transparent and all that remains
is the shading which is applied as a "Multiply" fusion.
Proceed in this order: grey then white to alpha channel,
which gives the best results.
2. Make the < Legend > layer visible in order to see the
frame that it contains. Make the < Preview 3DEM > layer
visible, then create a new layer < Coordinates > above. With
the straight line tool (SHIFT + F6), draw using two points
the segments above the grid of the preview of 3DEM. For
the curved latitude lines, activate the F2 tool, select the two
nodes of the segment and add a new node in the middle (1).
Select only this last node, and then click on the Make
selected nodes symmetric button (2) and move it upwards or
downwards to superimpose it on the grid of the map from
3DEM (3). Add the numerical values of the coordinates at
the borders of the map.
To produce a scale in miles reasonably easily, move the kilometric scale so that it is aligned with the edge of
the page (X = 0). With the F1 tool, select, for example, the 100 km point and from the Position X field, read
the value of its position in pixels.
Knowing that 1 mile = 1,609 km (approximate value), if the 100 km point is placed at 200px, you can
say that you need to position the 100 mile point at 200 x 1,609 = 321,8px.
4. Finally, create an altimetric scale by filling in the
different boxes with the colours used in your map. Save.
Remember to delete the < View topo GRASS > and
< Preview 3DEM > layers before importing the map into
Wikipedia.
The map is now ready to receive additional data (rivers, frontiers,
towns, roads, geodesic points etc). For these operations, see the
relevant tutorial.
Notes
[1] http:/ / www. visualizationsoftware. com/ 3dem. html
[2] One of the problems with SRTM files is that, in spite of the fact that practically all emerged terrain has been overflown at least twice, certain
zones have remained hidden from the oblique radar ray due to the sharply accidented relief, giving rise to voids in the map information.
[3] http:/ / grass. itc. it
[4] A defect of SRTM files is their lack of precision in coastal areas, particularly as a result of wave action which can produce a false radar
reading. The SRTM Water Body Data (SWBD) files provided by NASA are intended to resolve this problem.
[5] Demis Mapper only works on Windows 95 or higher (Windows NT 4.0 or higher recommended).
[6] http:/ / support. demis. nl/ files/ folders/ demiswms/ entry2081. aspx
[7] http:/ / support. demis. nl/ files/ folders/ demiswms/ entry1333. aspx
[8] http:/ / dds. cr. usgs. gov/ srtm/ version2_1/ SRTM1/
[9] Example: the file N48E001.hgt.zip, (decompressed: N48E001.hgt), covers the zone between the 48° and 49° North and 001° and 002° East.
[10] http:/ / dds. cr. usgs. gov/ srtm/ version2_1/ SRTM3/
[11] http:/ / dds. cr. usgs. gov/ srtm/ version2_1/ SRTM30/
[12] http:/ / dds. cr. usgs. gov/ srtm/ version2_1/ SWBD/
[13] http:/ / www. digitalmappingsolutions. com/ utm-geographic-coordinate-conversion-tool
[14] In reality 1,201px x 1,201px, but the reference of SRTMs being placed at the centre of each pixel, a half-pixel each side is lost.
[15] The DEMs are not exact to the nearest metre. Therefore the highest value found may differ from that which you may already know from
topographic reference maps. In the example shown by the screen capture, GRASS has found in the DEM a maximum altitude of 701 m. In
reality, the highest summit of the Falkland Islands is Mount Usborne at 705 m.
[16] This example is a special case with its maximum altitude established at 701 m in the DEM, a level which will carry very little information.
[17] http:/ / fr. wikipedia. org/ wiki/ Aide:Cartographie#Carte_topographique|
[18] Variable figure depending on your map.
[19] Variable figure depending on the number of nodes on the path. Try different values to see which is the most suitable.
[20] For older versions of GIMP, go into Filters -> Colors -> Color to Alpha....
Sources
This article incorporates information from the equivalent article on the French Wikipedia.
Article Sources and Contributors 34
License
Creative Commons Attribution-Share Alike 3.0 Unported
http:/ / creativecommons. org/ licenses/ by-sa/ 3. 0/