otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Database Administration Database installation, creation, administration and related topics.

Tags: , , ,

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 31st, 2008, 04:11
Member
 
Join Date: May 2007
Posts: 89
Thanks: 16
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
rj5316 is on a distinguished road
Lat / Long

Hi ,

when we create locations and specify the lat long of the locationm, in which table does this get stored.

Also what is "other lat/long" in geography within the power data of transport planning and execution AND what is its use? It looks as though these are cities created in the public domain. But if so then why does it allow me to create a same city with diff lat / long ... and any ways the city is not a manadtory feild when creating locations...

rgds--
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old January 31st, 2008, 07:30
Member
 
Join Date: Dec 2007
Posts: 66
Thanks: 5
Thanked 10 Times in 10 Posts
Groans: 1
Groaned at 1 Time in 1 Post
Rep Power: 2
james_foran is on a distinguished road
Re: Lat / Long

LAT and LON fields are in the GLOGOWNER.LOCATION table...

I am not sure what Other Lat/Lon is for though. Looks like a set of defaults or something??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old January 31st, 2008, 17:11
Member
 
Join Date: Nov 2007
Posts: 32
Thanks: 34
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
otmrookie is on a distinguished road
Re: Lat / Long

I think it is the GEO_POSTAL_POINT table, hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old February 1st, 2008, 05:49
Junior Member
 
Join Date: Jun 2007
Posts: 21
Thanks: 0
Thanked 5 Times in 5 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
oliver is on a distinguished road
Re: Lat / Long

lat/long gets stored in the location-table, in fields "lat" and "lon" (Number 10,5).
On the "same city with diff lat/long", usually cities have more then one lat/long, take "Chennai" as an example.
The city isnt mandatory (neither is lat/long), because OTM wont necessarily need it to calculate transit times. But if you want OTM to calculate the distance between 2 Loc's, it needs lat/long to do so; in the background it uses a formula to include the curve of the surface and all these things to calculate the most realistic distance between to pairs of lat/long.


Rgds
Oliver
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old February 1st, 2008, 06:55
Member
 
Join Date: May 2007
Posts: 89
Thanks: 16
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
rj5316 is on a distinguished road
Re: Lat / Long

Thanks OM,

Understand that the other lat /long are cities created in the public domain and cities have diff lat / longs...but when planning does OTM pick up the lat long from the location table ( i.e as recorded by the user) or from the other lat long (the city one)......

alternatively what is the purpose of the other lat / long....

thanks...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old February 4th, 2008, 23:04
Junior Member
 
Join Date: Aug 2007
Posts: 9
Thanks: 1
Thanked 2 Times in 2 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
EmergeNow is on a distinguished road
Re: Lat / Long

If you create a new location with lat/long, it gets stored in the location table. If you populate the other lat/long tables (GEO_POSTAL_POINT, GEO_CITYPROV_POINT), the location refers to them to look up the lat/long and populate the location table.

For example, I have worked with clients that have purchased the lat/long for every US zip code and I loaded that information in the GEO_POSTAL_POINT table. When a new location was entered with a valid zip code and saved, the lat/long is defined for the location.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old October 3rd, 2008, 06:52
Junior Member
 
Join Date: Mar 2008
Posts: 28
Thanks: 3
Thanked 1 Time in 1 Post
Groans: 1
Groaned at 0 Times in 0 Posts
Rep Power: 0
njoyotm is on a distinguished road
Re: Lat / Long

Hi,

Can anyone help me out in finding wat formula does OTM use for calculating distance using LAT / LON?
I find that the Great Circle Distance Formula is not bringing out the same results as OTM does.

Regards,
njoyotm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old October 7th, 2008, 16:13
Member
 
Join Date: Mar 2007
Location: Italy
Posts: 34
Thanks: 4
Thanked 6 Times in 6 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
Stefano is on a distinguished road
Send a message via MSN to Stefano Send a message via Skype™ to Stefano
Thumbs up Re: Lat / Long

Hi
looking in Database PL/SQL PACKAGES you can find in schema GLOGOWNER
Package GPOINT
inside it the function:
"function estimate_distance(fromLat number, fromLon number, toLat number, toLon number) return number"

this function referring to java code in db (DbGPoint.calculateEstimateDistance), you could open (with TOAD or something similar) and check also the java code .

I haven't test if this function return same values returned by UI, but I imagine yes.

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Stefano For This Useful Post:
njoyotm (October 8th, 2008)
  #9 (permalink)  
Old October 8th, 2008, 07:50
Junior Member
 
Join Date: Mar 2008
Posts: 28
Thanks: 3
Thanked 1 Time in 1 Post
Groans: 1
Groaned at 0 Times in 0 Posts
Rep Power: 0
njoyotm is on a distinguished road
Re: Lat / Long

Hi

Thank you very much for the useful information.
I tested the function estimate_distance but there are variations
in the value returned by this function and the value returned via UI.
However many thanks,I am looking into it.
Any suggestions are always welcome.

Regards,
njoyotm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OTM Functional long term consulting opportunity jdillon Positions Available 0 December 4th, 2007 20:02
[SOLVED] Automatically Killing Long-Running Reports chrisplough Reports / FTI and Other Analytics 0 October 5th, 2007 22:39



All times are GMT. The time now is 18:29.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37