| | Database Administration Database installation, creation, administration and related topics. |  | 
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 | | | 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-- | 
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 | | | 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?? | 
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 | | | Re: Lat / Long I think it is the GEO_POSTAL_POINT table, hope that helps. | 
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 | | | 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 | 
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 | | | 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... | 
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 | | | 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. | 
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 | | | 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 | 
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 | | 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 | | The Following User Says Thank You to Stefano For This Useful Post: | | 
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 | | | 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 |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |