View of /trunk/map_reader/srtm3/chk.php
Parent Directory
|
Revision Log
Revision 2 -
(download)
(annotate)
Tue Jun 1 02:41:12 2010 UTC (2 years, 11 months ago) by tuis
File size: 703 byte(s)
Tue Jun 1 02:41:12 2010 UTC (2 years, 11 months ago) by tuis
File size: 703 byte(s)
first
<?php
require_once './config.php';
require_once '../func.php';
$size = 256;
$name = "534030";
/*
if (isset($_GET["size"])) {
$size = $_GET["size"];
}
if (isset($_GET["name"])) {
$name = $_GET["name"];
}
*/
if (!ctype_digit($size)) exit();
if (!ctype_digit($name)) exit();
if ($size<0) $size = 256;
$len = strlen($name);
$name = substr($name, $len-6, 6);
if (!preg_match('/^[1-9][0-9][1-9][0-9][0-7][0-7]$/', $name)) exit();
$m = make_mapname_50m($name);
print $m[0]."<br />\n";
print $m[1]."<br />\n";
print $m[2]."<br />\n";
print $m[3]."<br />\n";
$d = read_geo_data($m, $size);
for ($j=0; $j<$size; $j++) {
for ($i=0; $i<$size; $i++) {
print($d[$j][$i]." ");
}
print "\n";
}
?>
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

