|
-
Jun 5th, 2002, 07:18 PM
#1
Position on Map - GPS
Hey guys,
I have successfully interfaced to my GPS, and extracting Lat/Long etc.
My next phase is to introduce a scanned .bmp Map into the app.
I'm seeking anyones advice who may have done this or has any
words of wisdom .
I'm anticipating palcing the .bmp into a picture control. The size
of which is determined by the scan size of the .bmp.
This area (of the .bmp) will consist of (screen) co-ordinates like,
(0,0) for top Left, (0, ?) for top Right, (?,0) for bottom Left, and
(?,?) for bottom right.
Then I can 'set (calibrate)' the position of say (0,0) to a known
Lat/Long position (read from the Map), and do the same with at
least 2 other co-ordinates.
Cheers,
Bruce.
-
Jun 5th, 2002, 07:32 PM
#2
Hyperactive Member
I think that you would have to have point on the map that are actual coordinates and then do some math to figure where on the map the coordinates from the GPS are.
That would probably work better.
-
Jun 5th, 2002, 07:38 PM
#3
Originally posted by crpietschmann
I think that you would have to have point on the map that are actual coordinates and then do some math to figure where on the map the coordinates from the GPS are.
That would probably work better.
yep, thems what I'm thinking
-
Jun 5th, 2002, 07:42 PM
#4
Frenzied Member
Is this for a wireless handheld device? Cuz I'm going to be creating something very similar over the coming months.
-
Jun 5th, 2002, 07:57 PM
#5
-
Jun 5th, 2002, 08:14 PM
#6
Hyperactive Member
sorry but i will not offer any help as i dunno what you guys are talking about. but bruce, your program sounds interesting.. any pointers for me on the project you're working on?? how do you interface with GPS? i haven't got the slightest clue
-
Jun 5th, 2002, 08:32 PM
#7
Originally posted by ongtw
bruce, your program sounds interesting.. any pointers for me on the project you're working on?? how do you interface with GPS? i haven't got the slightest clue
I am using the MSCOMM (that comes with VB6).
Connect ur GPS via RS-232 Serial cable to ur PC, open the apropriate
port (using MSCOMM), and wamo - ur done 
With the GPS I have, u can send / receive Waypoint, Track data
etc. This is done with no NMEA mode (on the GPS) selected.
However, I'm using the GPS in a NMEA Mode that provides a
continuos stream of (serial) data. I'll split up that data stream
into Lat/Long (and UTC) components, and display a cursor
on a map at that location
-
Jun 6th, 2002, 07:40 AM
#8
Ok, making progress, however before I get to far with the math
calcs, what (if any) settings should I use. ie
a. Twips v pixels, (maybe pixels for future API use?)
b. Scale Modes
Anything like that.
Cheers,
Bruce.
-
Jun 6th, 2002, 09:41 AM
#9
Member
I have all this code written already...I don't have it now, but will post later today. Or contact me view email [email protected]
I have a program which plots data on a bmp. It uses an error correcting algorithm which I designed to correct for coordinate systems that aren't exactly square. (Like on satellite imagery)
Works very well. I have used this program to plot data in real time while I was driving. I have also used this program to plot previously recorded data.
I also have created an OCX control which connects to GPS units through comm port. Simply drop onto your form! The sentenceArrival event is raised when new data has arrived. You can read the sentence as it arrived, or access individual fields such as lat, long, speed, heading, etc.
Still somewhat under construction, but it could save you lots of time. It is functional, but support for some NMEA and Garmin sentences is not yet implemented, such as satellites in view, and waypoint stuff.
Sorry I can't post the code now...I'm at work.
-
Jun 6th, 2002, 09:43 AM
#10
Retired VBF Adm1nistrator
Pixels pixels pixels all the way
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 6th, 2002, 04:38 PM
#11
Member
GPS Mapping Util
This software is functional, but by no means finished.
It should give you all the stuff you need. I'm going to start a new version soon. (I didn't finish this one because I decided to change the architecture)
Code is attached. Also, the executable should run with the attached image, data file, and configuration file. Unzip to a folder and run the executable, then select Plot Trip from Tools menu, select the .gps file and watch!
Download here
-
Jun 6th, 2002, 04:43 PM
#12
Member
GPS OCX Control
Here's the OCX control that I created.
As I said before, support for some NMEA and Garmin sentences has not yet been implemented.
This thing is cool, cuz you can just add it to your project, and all the sentence parsing etc. is already done!!
download here
I've seen something similar to this going for $150 on the net!!!!
Please give feedback!
Enjoy
-
Jun 6th, 2002, 05:35 PM
#13
crpietschmann, Jamie and lerouxc1,
Thanks for you comments.
lerouxc1 I'll definitly have a good look at those examples/codes.
Thanks for that 
I have just about finished, I'm implimenting Lat/Long conversion
to get all values to one type (ie decimal nautical miles), to enable
positioning data etc.
Thanks again lerouxc1 - I'll post feedback 
Cheers,
Bruce.
-
Jun 7th, 2002, 02:27 AM
#14
Retired VBF Adm1nistrator
Originally posted by Bruce Fox
crpietschmann, Jamie and lerouxc1,
Thanks for you comments.
lerouxc1 I'll definitly have a good look at those examples/codes.
Thanks for that 
I have just about finished, I'm implimenting Lat/Long conversion
to get all values to one type (ie decimal nautical miles), to enable
positioning data etc.
Thanks again lerouxc1 - I'll post feedback 
Cheers,
Bruce.
]
This sounds pretty damn cool man!
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
May 25th, 2005, 07:48 AM
#15
Re: Position on Map - GPS
I was doing this recently but I went for the whole handshaking protocol. The handshaking for a Garmin GPS device is a complete nightmare. Talk about overkill.
Anyway I might just try the one-way text output like bruce did. First thing I'll do is create an onscreen realtime compass on my laptop, fullscreen!! I'll be doing it in VB.Net though.
I don't live here any more.
-
May 25th, 2005, 09:05 AM
#16
Hyperactive Member
Re: Position on Map - GPS
I would think scale mode would make life much easier.
Couldn't you set the scale to approximate lat/lon coords?
Just might have to convert degrees,minutes,seconds into a real number,
e.g. 50 30 00 = 50.5
Sounds like fun, DaveBo (I have both Garmin & Magellan handhelds)
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
May 25th, 2005, 03:55 PM
#17
Re: Position on Map - GPS
Wow, this is old...
Annyways, It has been extreamly successful. I scan a chart, calibrate it (3 points) and store the calibration data at the head of the scanned image jpg and save that as a custom file type. Later, when the chart is selected for loading I strip off the calibration data and then I am left with the jpg image data which gets loaded into a picturebox. As the mouse moves over the chart, the Lat/Long values are displayed in a statusbar.
Parsing the NMEA was simple enough, then it was just a matter of converting that data.
My GPS data then provides point track info to move a symbol (aircraft) over the charrt as required.
Bruce.
-
May 25th, 2005, 03:58 PM
#18
Re: Position on Map - GPS
 Originally Posted by wossname
Anyway I might just try the one-way text output like bruce did. 
Yeh, for this type of application it makes sense. On the other hand, if your developing a desktop 'waypoint'/'route planner' you would need to go both ways.
Bruce.
-
May 11th, 2006, 04:17 AM
#19
New Member
Re: Position on Map - GPS URGENT!!!!!
!!Urgent...Urgent...Urgent...Urgent...Urgent...Urgent...
Hi Guys,
The software downloads posted by lerouxc1 above are not working (his email as well)...
Can someone send them to me please. I need help in building my GPS tracking application...
Many thanks....
Kaddour
-
May 23rd, 2006, 05:06 PM
#20
Re: Position on Map - GPS
What parts do you need?
I don't have his ocx anymore, but what I wrote at the time I have tucked away somewhere.
-
Jun 28th, 2006, 09:29 AM
#21
New Member
Re: Position on Map - GPS
Thanks Bruce Fox for your reply.
I need the mapping bit, please - thanks - Kad
-
Oct 3rd, 2006, 05:34 AM
#22
New Member
Re: Position on Map - GPS
Hello,"Bruce Fox" please upload the files of "lerouxc1" again
i need them plz
-
Dec 4th, 2006, 03:17 AM
#23
Re: Position on Map - GPS
 Originally Posted by h_1985
Hello,"Bruce Fox" please upload the files of "lerouxc1" again
i need them plz
Like I said, I don't have them anymore.
I had completly written my app from scratch and it worked quite well.
It was a long time ago.....
I had described how I did it at the time, and it functioned as expected.
Once I loaded the scanned Map, I then calibrated it at three points.
The calibration data was stored in the first 100 bytes of a file that also contained the bitmap Map (this is the Calibrated Map).
When loaded, the first 100 bytes were read and held as calibration data, the remaining bytes were the bitmap which was extracted to a temp file prior to loading
into the PictureBox.
Bruce.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|