MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




compare longitude and latitude values of two tables

This is a discussion on compare longitude and latitude values of two tables within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; compare longitude and latitude values of two tables advance thanks to all i want to do one report based on ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-29-2008
Junior Member
Yellow Belt
 
Join Date: Mar 2008
Posts: 12
compare longitude and latitude values of two tables

compare longitude and latitude values of two tables
advance thanks to all
i want to do one report based on long and lat values.can anybody help me the logic behind this????

one eg

i have one table in my sql db which contain lon and lat values of vehicle movement.
eg:
lon is 58.549315555555559 and lat is 23.619708888888891
this table does not contain any location name.
...........................
i have another table which contain location name and corres lang and lat values.
In this table exact value of vehicle long and lat is not there

but i have nearly 10 records that long and lat values are near to above values(first table)

from this how i will select one location?
using which formula i want to do this?
nearly 20 meters differ is there then i can select.
..........
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-31-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: compare longitude and latitude values of two tables

Hi,

to find the distance between 2 latitude / longitude positions is very easy. For Latitude 1 arc second is exact 1 sea mile. For Longitude you have to multiply with Cosine(Latitude).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-31-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 742
Re: compare longitude and latitude values of two tables

Wilfried: That would give you what I was calling a "corrected Pythagoras". It is quick, but not hugely accurate. Might be good enough for this query though.

iirc, the nautical mile is defined for a specific latitude - the Earth is not a sphere, so the length of an arc second of latitude varies between the Equator and the Poles.

On top of that you have to correct for the geoid, but this will be a smaller (and more difficult!) correction.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-02-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,017
Re: compare longitude and latitude values of two tables

Thanks Richard for clarify. I saw your reply in another thread after I replied to this one
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/compare-longitude-latitude-values-two-tables-7385.html

Posted By For Type Date
Pushpin Tool Add-in - MP2K Magazine This thread Refback 03-31-2008 03:28 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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

BB 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
compare longitude and latitude values of two tables meenu MapPoint 2006/2009 Discussion 12 04-09-2008 11:39 PM
Latitude and Longitude virgilar MapPoint 2006/2009 Discussion 1 03-21-2005 01:01 PM
Latitude and Longitude Anonymous MapPoint 2006/2009 Discussion 1 11-25-2003 12:52 PM
NMEA latitude/longitude and mappoint latitude/longitude muurman MapPoint 2006/2009 Discussion 3 11-22-2003 04:42 AM
How do I get the latitude and longitude values of .... Anonymous MapPoint 2006/2009 Discussion 1 03-21-2001 01:22 AM


All times are GMT -5. The time now is 08:03 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Ski Holidays Bulgaria
Ski holidays in Bulgaria offer beautiful scenery, friendly locals and exceptionally low prices. Book at Holiday Hypermarket for great value ski holidays.

Business Travel Agent
Book your business travel with a specialist business travel agent. Travel Counsellors are an award winning travel agent.

Holiday Jamaica
What springs to mind when you hear the word Jamaica? Bob Marley and Rum? Think again. Book a low cost holiday in Jamaica to explore this island for yourself.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Cheap Travel
Travel.co.uk is a travel comparison service which makes it easy to search and find your cheap travel options.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


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 38 39 40 41 42 43 44 45 46 47