logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

AW: AW: Koordinaten umwandeln: msg#00093

gis.opengeodb

Subject: AW: AW: Koordinaten umwandeln

Ist zwar etwas viel drin aber ich denk kdu kannst das meiste gebrauchen
Falls du das formular auch noch willst sag bescheid

<?php
echo $_POST["1Breite1"]."<br>"; // 50
echo $_POST["1Breite2"]."<br>"; // 06
echo $_POST["1Breite3"]."<br>"; // 44
echo $_POST["1BreiteDirection"]."<br>"; // Nord
echo $_POST["1LangeDirection"]."<br>"; // Ost
echo '<hr><br>'; //
echo $_POST["2Breite1"]."<br>"; // 52
echo $_POST["2Breite2"]."<br>"; // 31
echo $_POST["2Breite3"]."<br>"; // 20
echo $_POST["2BreiteDirection"]."<br>"; // Nord
echo $_POST["2LangeDirection"]."<br>"; // Ost
echo '<hr><br>'; //
echo $_POST["Berechnen"]."<br>"; //
echo '<hr><br>'; //

function proAdd($n1,$n2)
{
$ergebnis = $n1 / 100;
$ergebnis1 = $ergebnis * $n2;
$ergebnis2 = $n1 + $ergebnis1;
return $ergebnis2;
}


/*
z.B.: Frankfurt 50°06'44"Nord 08°40'55"Ost und Berlin 52°31'20"Nord
13°17'51"Ost
Breite Frankfurt: 50 + (06 / 60) + (44 / 3600) = 50,11222°
Laenge Frankfurt: 08 + (40 / 60) + (55 / 3600) = 08,68194°
Breite Berlin...: 52 + (31 / 60) + (20 / 3600) = 52,52222°
Laenge Berlin...: 13 + (17 / 60) + (51 / 3600) = 13,29750°
*/
// Umrechnen in Kommazahl
// Breite 1
$Breite1Komma =
bcadd(bcadd($_POST["1Breite1"],bcdiv($_POST["1Breite2"],60,5),5),bcdiv
($_POST["1Breite3"],3600,5),5);
$Lange1Komma =
bcadd(bcadd($_POST["1Lange1"],bcdiv($_POST["1Lange2"],60,5),5),bcdiv
($_POST["1Lange3"],3600,5),5);
// Breite 2
$Breite2Komma =
bcadd(bcadd($_POST["2Breite1"],bcdiv($_POST["2Breite2"],60,5),5),bcdiv
($_POST["2Breite3"],3600,5),5);
$Lange2Komma =
bcadd(bcadd($_POST["2Lange1"],bcdiv($_POST["2Lange2"],60,5),5),bcdiv
($_POST["2Lange3"],3600,5),5);
echo $Breite1Komma."<br>";
echo $Lange1Komma."<br>";
echo $Breite2Komma."<br>";
echo $Lange2Komma."<br>";
echo "<br><hr><br>";
$AbstandKMeter = 111.13384 * acos( cos($Breite2Komma * (M_PI/180)) *
cos($Breite1Komma * (M_PI/180)) * cos(($Lange2Komma - $Lange1Komma) *
(M_PI/180))+sin($Breite2Komma * (M_PI/180)) * sin($Breite1Komma *
(M_PI/180)))/ (M_PI/180);
echo "<br><hr><br>";

$AbstandMeter=$AbstandKMeter * 1000;
$AbstandNMeilen=proAdd(($AbstandKMeter/2),10);


/*



*/
//0,54 Nautische Meilen
echo "Abstand Kilometer= ".$AbstandKMeter." km<br>";
echo "Abstand Nautische Meilen= ".$AbstandNMeilen." NM<br>";
echo "Abstand Meter= ".$AbstandMeter." NM<br>";
echo "<br><hr><br>";


?>

> -----Ursprüngliche Nachricht-----
> Von: opengeodb-bounces-r1mDYR0DdAyzQB+pC5nmwQ@xxxxxxxxxxxxxxxx
> [mailto:opengeodb-bounces-r1mDYR0DdAyzQB+pC5nmwQ@xxxxxxxxxxxxxxxx] Im Auftrag
> von one
> Gesendet: Dienstag, 12. April 2005 20:05
> An: opengeodb-r1mDYR0DdAyzQB+pC5nmwQ@xxxxxxxxxxxxxxxx
> Betreff: [opengeodb] AW: Koordinaten umwandeln
>
> danke,
> so was hab ich gesucht
>
> den link, und di emethode
>
> merci
> Guido
>
>
> --
> Mailingliste OpenGeoDB
> Listenadresse: opengeodb-r1mDYR0DdAyzQB+pC5nmwQ@xxxxxxxxxxxxxxxx
> Informationen: http://opengeodb.de
> Mit freundlicher Unterst|tztung von php::bar (http://phpbar.de)
>



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo