-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML- function astergdem(lat,lng) {
- /*
Elevation - Aster Global Digital Elevation Model Parameters : lat,lng; sample are: ca 30m x 30m, between 83N and 65S latitude. Result : a single number giving the elevation in meters according to aster gdem, ocean areas have been masked as "no data" and have been assigned a value of -9999 */
- var url = "http://ws.geonames.org/astergdem?lat="+lat+"&lng="+lng;
- var response = UrlFetchApp.fetch(url);
- var str = response.getContentText();
- return str;
- }
-
- function srtm3(lat,lng) {
- /*
Elevation - SRTM3 Shuttle Radar Topography Mission (SRTM) elevation data. The dataset covers land areas between 60 degrees north and 56 degrees south. This web service is using SRTM3 data with data points located every 3-arc-second (approximately 90 meters) on a latitude/longitude grid. Parameters : lat,lng; sample area: ca 90m x 90m Result : a single number giving the elevation in meters according to srtm3, ocean areas have been masked as "no data" and have been assigned a value of -32768 */
- var url = "http://ws.geonames.org/srtm3?lat="+lat+"&lng="+lng;
- var response = UrlFetchApp.fetch(url);
- var str = response.getContentText();
- return str;
- }
-
- function gtopo30(lat,lng) {
- /*
Elevation - GTOPO30 GTOPO30 is a global digital elevation model (DEM) with a horizontal grid spacing of 30 arc seconds (approximately 1 kilometer). Result : a single number giving the elevation in meters according to gtopo30 */
- var url = "http://ws.geonames.org/gtopo30?lat="+lat+"&lng="+lng;
- var response = UrlFetchApp.fetch(url);
- var str = response.getContentText();
- return str;
- }​
|