Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Convert data help please

Author
Message
OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 4th Aug 2009 15:16
Give PLEASE LEARN HOW distance from point to point on the Earth\\\\\\\'s surface
If the point given in the FORMAT

Latitude:
Denomination - the degree, minutes & seconds (hDDD, MM, SS.sssss) OR
Packed - small second-degrees (hDDDMMSS.sssss) OR
Decimal number - degree (hDDD.ddddddddd) OR

Longitude:
Denomination - the degree, minutes & seconds (hDDD, MM, SS.sssss) OR
Packed - small second-degrees (hDDDMMSS.sssss) OR
Decimal number - degree (hDDD.ddddddddd) OR



A RESULT OF NEED IN METRE

forall
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 4th Aug 2009 17:27
Sorry, I don't understand... Please elaborate.

TheComet


Make the path of your enemies easier with Waypoint Pro!
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 4th Aug 2009 18:00
He wants to know how to figure out the distance in metres between two points given in some packed format resembling longitude and latitude.

Sorry, can't help you there.

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Aug 2009 20:17
The "great-circle" distance. Some use the haversine formula.
Here's what I used recently for a website I'm doing which requires me to find the distances between zip codes(given I have the zip code's long and lat.



[url="http://dbcc.zimnox.com"][/url]
OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 4th Aug 2009 21:03
THANKS Phaelax
toRad() - WHAT IS FUNCTION ?

forall
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Aug 2009 21:12
DB doesn't have one, it just converts from degrees into radians. A quick google search will show you the formula.

[url="http://dbcc.zimnox.com"][/url]
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 4th Aug 2009 21:16
You dont need to convert to radians, DBs trig commands use degrees.

OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 4th Aug 2009 21:39 Edited at: 4th Aug 2009 23:25
Thank you very much once again - very helpful



forall
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 6th Aug 2009 18:18
You dont need to convert to radians! DBPro uses degrees!

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 6th Aug 2009 21:24
He wants one: radians = (degree) * (pi/180.0f)


Your signature has been erased by a mod
OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 7th Aug 2009 00:24
I solved this problem.
required plug STYX for DBpro as atan (), tan (), atanfull () not working correctly
Here's the code:


forall
Mahoney
17
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 7th Aug 2009 04:30
Apollo: Perfect English NOT requiring.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 7th Aug 2009 18:19 Edited at: 7th Aug 2009 18:20
Quote: "atan (), tan (), atanfull () not working correctly "


For the third time. THEY USE DEGREES!!

Styx is probably working because it uses radians.

DBPro trig commands are 100s of times faster than styxs/

this code should work



OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 7th Aug 2009 21:22

this is not working
atanfull() is a problem

different results

forall
OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 7th Aug 2009 21:45
lat1# = 0
lat2# = 0
lon2# = 45
lon1# = -45

should be 10018 km
check out? if it means I get something from DBPro

forall
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 7th Aug 2009 21:51
Alright.

Try your code with DBPros atan command.

DBPros atan command is alot faster as styxes gets sent to styx in a string, and needs to be ran through loads of code just to find out what you want it to do, then finds the variables then sends the atan command to the CPU.

DBPro compiles the atan command into machine code to be sent directly to the CPU, without having to process any strings.

OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 7th Aug 2009 21:57
not work.
with DBPros atan command result is -574019....

forall
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 7th Aug 2009 22:08 Edited at: 7th Aug 2009 22:18
are you absolutely, 100% sure that your using radians? I've used ALL of dbpro's trig commands without any problem whatsoever.

change phalaex's example to this:



[edit]

uhh, also, the example you posted does work... but the answer is in kilometers.
OldPMan
TGC Store Seller
16
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 7th Aug 2009 22:16
sorry
this is work


forall

Login to post a reply

Server time is: 2025-06-04 18:28:57
Your offset time is: 2025-06-04 18:28:57