aus Wikipedia, der freien Enzyklopädie
| Diese Datei wird aus dem zentralen, mehrsprachigen Dateiarchiv Wikimedia Commons eingebunden. Sämtliche Informationen unter dem roten Trennstrich stammen von der dortigen Beschreibungsseite der Datei.
|
|
[edit] Beschreibung
Density of 6.1 Mio. entries in www.geonames.org
Source-code:
<?php
header ("Content-type: image/png");
$fa=addslashes($_GET[fa]);
if ($fa==""){$fa=4;}
// connection to database
require("db.inc.php");
$im = @ImageCreate (360*$fa, 180*$fa) or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 0, 0, 0);
for($i = 0; $i <= 255; $i++) {$t_color = ImageColorAllocate ($im,$i , $i, $i);}
$sql="SELECT ROUND($fa*`lat`,0)/$fa ,ROUND($fa*`lon`,0)/$fa,COUNT(*) FROM `all3` GROUP BY ROUND($fa*`lat`,0)/$fa,ROUND($fa*`lon`,0)/$fa HAVING COUNT(*)>0";
$qres = mysql_query($sql);
while($res = mysql_fetch_array($qres)) {
if ($res[2]>0){
$colo=380*log10(1+log10($res[2]+10)+0.2);
imagesetpixel ($im,$fa*180+$fa*$res[1],$fa*90-$fa*$res[0],imagecolorclosest($im,$colo,$colo,$colo));
}
}
ImagePNG ($im);
imagedestroy ($im);
?>
thanks to: http://www.geonames.org
Comparisons with: Image:Imageworld-artphp3.png and Image:Earthlights dmsp.jpg
[edit] Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
You may select the license of your choice.
|
Dateiversionen
Klicke auf einen Zeitpunkt, um diese Version zu laden.
| Version vom | Maße | Benutzer | Kommentar |
aktuell | 22:06, 6. Dez. 2006 | 1.440×720 (169 KB) | Kolossos | |
Verwendung
Die folgende Seite verwendet diese Datei: