I am creating a field application that will allow a user to place a point on a map based on their current location which will be determined from a GPS unit. The GPS receiver is sending data to the computer via a COM port as a NMEA Output.
Is there an example or sample showing how to use thinkgeo to read this data and get the GPS coordinates for display on the map?
Thanks.
Shayne.
Reading from a GPS receiver
Hello Shayne,
There is not a direct sample to catch the GPS coordinates and then show the location on the map. The difficult part is difference GPS device have difference Api to catch the GPS coordinates.
Once we get the coordinates, there are a lot of sample to display it on the map. like GPS to Google Map(Desktop), even it built on Desktop, but the key codes are the same with Wpf.
Just think it might be help you, we have a new featurelayer to support the GPX format which your GPS Device might support it. More details please refer to
thinkgeo.com/forums/Ma…t.aspx#gpx
wiki.thinkgeo.com/wiki/Map_S…atureLayer
Hope it helps and any question, don’t hesitate to let us know.
Thanks,
Troy
There is abundant data on the Internet on how to decode NMEA information. The official specification is available from the National Marine Electronics Association. As you may know, NMEA data consists of ASCII strings, each beginning with ‘$’ and a 5-character identifier. Decoding involves monitoring for a string that contains position (there are several), verifying the checksum and the data valid flag, and extracting and converting the characters containing the latitude and longitude.
Bob
New Generation Video
Hi Robert,
Thanks for the information, if any questions, please feel free to to let us know.
Thanks,
Troy