Re: GPS Map
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 20 May 2008 20:25:06 -0400
Part of the problem is that maps are projections of spherical surfaces onto flat 2-D
surfaces. This introduces a set of distortions. The Mercator projection is the most
popular. The problem is that if you have an x,y in d,m,s, you have to convert it to a
planar x,y under some appropriate projection. I dabbled with the math several years ago
(there's a ton of articles available on the Internet) but then I found a mapping site that
would create what I needed--a world map--in uniform x,y coordinates. But for other maps,
you will need to do the projection transformation, which is mildly hairy if I recall the
articles.
So the real problem is not figuring out how to put an image on a bitmap, but how to
convert a GPS coordinate system to a planar x,y under whatever projection your map is
using. google will be a big help in locating these articles.
You can download my Locale Explorer and go to the LatLong tab, and I have the URL of one
of the mapping sites there.
joe
On Tue, 20 May 2008 14:49:31 -0700, Henryk Birecki <soaringpilot@xxxxxxxxxxxxx> wrote:
Peter <pvrequiz@xxxxxxxxx> wrote:Joseph M. Newcomer [MVP]
Hello Everyone, I am need to idea how to build an application which
display a icon (car) in a map. Like the GPS application out there.
So far I can read the GPS and get the position on grade or grade and
minutes, from my NMEA protocol
But I need to plot that information into a map.
There are many ways one might do that. What I do is to create a DC
which holds image of the icon (or bitmap), DC of identical size for
temporary storage and BitBlt to and from the DC that has the map.
1) from map DC to tempDC so image can be retrieved.
2) from icon DC to map DC to place icon
3) from tempDC to map DC to erase the icon
and so on.
Cheers,
Henryk
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: GPS Map
- From: Peter
- Re: GPS Map
- From: Peter
- Re: GPS Map
- References:
- GPS Map
- From: Peter
- Re: GPS Map
- From: Henryk Birecki
- GPS Map
- Prev by Date: Re: Adding Win 32 to a MFC program
- Next by Date: Re: My app's window class
- Previous by thread: Re: GPS Map
- Next by thread: Re: GPS Map
- Index(es):
Relevant Pages
|