MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




pushpin problem

This is a discussion on pushpin problem within the Development forums, part of the MapPoint Desktop Discussion category; Hi all, I am using Delphi 2006 and mappoint 2006 Europe. there is a customer table with longtitude latitude, my ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion > Development

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-16-2010
Junior Member
White Belt
 
Join Date: Apr 2009
Posts: 6
pushpin problem

Hi all,

I am using Delphi 2006 and mappoint 2006 Europe. there is a customer table with longtitude latitude, my program will show the customer's pushpin on the map. all the customers are in UK, but sometimes, the customer's longtitude latitude was wrong, and the pushpin will show in the other country. it's wrong. Does any one know how to verify if the customer's longtitude/latitude is in the UK area?

Thanks in advance

David
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-16-2010
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,463
Blog Entries: 40
Re: pushpin problem

You could look on a map and come up with a simple box, and then check against that.

West it is going to be something like -10deg; and about 3 deg east (don't take these for granted!)
I don't know if you need Northern Ireland; but watch out for Ardnamurchan and the Hebrides.
The Ardnamurchan peninsular in Scotland is further west than Land's End. (shhh! don't tell the Lands End tourists!)

London is ~51deg N, so about 50deg for the southern boundary.
If you don't need the Orkneys and Shetlands, then 60N is just off the coast of Scotland (I know that one because I remember everyone being impressed by '60N' when I was in Alaska, but I didn't think much of it as I'd been that far north before...)

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
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-17-2010
Junior Member
White Belt
 
Join Date: Apr 2009
Posts: 6
Re: pushpin problem

Thanks Richard,


I wrote a function to check the longitude and latitude as below:

function CheckLongLat(Latitude, Longtitude: Double):boolean;
begin
Result := False;
if (Latitude< ?) or (Latitude >?) then
begin
Result := False;
exit;
end;
if (Longtitude < ?) or (Longtitude >?) then
begin
Result := False;
exit;
end;
Result := True;
end;

I don't know the values of the ?, not sure if it's ok for check the longitude/latitude in the UK area.
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 03-17-2010
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,463
Blog Entries: 40
Re: pushpin problem

All it is, is looking the values up on a map or a website (eg. CIA World Factbook; or the Ordnance Survey's own interactive maps).

I actually live in Texas but I do have some national geological maps of the UK.
From these, the northern tip of the Shetlands is about 60.8N
For the south, the Scily Isles are just below 50N, so 49.8N would give a margin.

For the west, the map goes as far west as 7.3W but that does not include all of Northern Ireland. 8W includes all of the Outer Hebrides - this probably gives enough margin for the far west of Northern Ireland. (the map is drawn to the National Grid which is based on a Transverse Mercator System - grid north and true north differ quite a bit in the far NW).

For completeness, Rockall is close to 13.5W and 57.5N; and St Kilda is at 8.5W and 57.8N.

The Eastern margin is within 2E.

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-20-2010
Senior Member
Black Belt
 
Join Date: Nov 2004
Location: Belgium
Posts: 2,407
Re: pushpin problem

Hi,

You can check first if given coordinates are within the country to make a polygon that encasulated more or less roughly. You can check this artikle, written in Delphi to determine what you try to do: Determing Whether A Point Is Located Inside Polygon - MapPoint Articles - MP2K Magazine
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

Tags
problem, pushpin


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
Pushpin problem Mani MapPoint Desktop Discussion 5 03-03-2009 11:21 PM
Mappoint Pushpin problem benlaw81 Development 4 06-17-2008 09:03 AM
Pushpin Problem PeterLeeds MapPoint Desktop Discussion 7 01-15-2008 01:11 PM
MAPPOINT - Problem : Pushpin is NOT displayed Transit MapPoint Desktop Discussion 8 01-15-2008 01:07 PM
Problem: Pushpin -> Polyline Michelin MapPoint Desktop Discussion 1 02-26-2004 12:31 PM


All times are GMT -5. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3
MP2K Magazine
Visitor Map



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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70