public
Description: Imports data from the NASA Shuttle Radar Topography Mission into a PostGIS database (and other databases in the futue).
Homepage: http://wiki.openstreetmap.org/index.php/Route_altitude_profiles_SRTM#SRTM_import
Clone URL: git://github.com/Sjors/srtm2postgis.git
Download Australian tiles from server. Test a few tiles.
Sjors (author)
Mon May 26 00:41:06 -0700 2008
commit  78c7d35c14b9c4f259248e80b3eaa59e25d0c8a2
tree    30d94eab338e4fff9a4fe32122d5b0f95ba38b4b
parent  a74ce159f8c281f55e70fa6cb636b98b4d95994e
0
...
1
 
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
0
@@ -1,3 +1,33 @@
0
-Script that imports the SRTM data in a PostGIS (PostgreSQL) database. I will use the source code of Srtm2Osm for inspiration. 
0
+Script that imports the SRTM data in a PostGIS (PostgreSQL) database.  
0
 
0
 http://wiki.openstreetmap.org/index.php/Route_altitude_profiles_SRTM#SRTM_import
0
+
0
+Usage:
0
+First run the tests that come with this script:
0
+
0
+$ cd test
0
+$ python test_download.py
0
+$ cd ..
0
+
0
+Then download the SRTM source files (635 MB):
0
+
0
+$ python download.py
0
+
0
+Verify that the download went correctly:
0
+
0
+$ python verify_download.py
0
+
0
+Unzip the files (adds 3 GB):
0
+$ for f in `ls *.zip`; do unzip $f; done
0
+
0
+Create a PostGIS database (you may need to change some things here depending on 
0
+your system):
0
+
0
+$ createdb srtm
0
+$ createlang plpgsql srtm
0
+$ psql -d srtm -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql
0
+$ psql -d srtm -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
0
+
0
+Run test script:
0
+$ cd test
0
+$ python test_read_data.py

Comments