How to project an icon to the map taken from gps at com port

Topics: Algorithms
Mar 27, 2007 at 12:25 PM
Dear all
Can anyone help me to solve this problem?
I need to project a point on the map with an icon and the world cordinate will be taken from GPS connected at com port/ serial port.
How to read the serial port data and use it to find any point on the image box.
help me,I need it badly.
Apr 1, 2007 at 11:18 AM
Are you working on a Pocket-PC or Desktop-Application? But whatever your platform is, I'm sure there are some libraries which will help you to read out the GPS data. For Pocket-PC there is for example the PocketGPSLib or if you are developing for Windows Mobile 5.0 it has a library for that purpose.

The GPS coordinates are in WGS84. To display your gps position in the map you have to use picture coordinates. There is a worldToImage function in SharpMap, which converts your world coords into picture coords.

Someone correct me if I'm wrong, because I'm not as versed in SharpMap as I would like to be.
Apr 3, 2007 at 10:33 AM
Hi!

I'm working in a Pocket PC's project and I need to do the same as caesaris.

I use OpennetCF library to work with GPS and get latitud and logitude. The url is http://www.opennetcf.org/download.asp?product=OpenNETCF.IO.Serial. You only need the Serial component of the library. If you have questions, ask me. It's work perfect on Compact Framework 2.0.

And now I have another question. How can I obtain a map of the area where I'm working on it? I need to collect the data of the area that I'm working and make de files that sharpmap reads to render the map. But I don´t know how to generate this files.

Thanks.
Coordinator
Apr 3, 2007 at 10:58 AM

But I don´t know how to generate this files.


I'm guessing you would like to create shapefiles of the data that you collect via GPS. SharpMap v0.9 doesn't have this capability, but v2.0 does. It isn't production quality code, however. It also only updates shapefiles currently, not other providers.
Apr 3, 2007 at 11:46 AM

You are right!

Where can I find v2.0? I'll look for it.

Thanks!
Coordinator
Apr 3, 2007 at 12:08 PM
Edited Apr 3, 2007 at 12:08 PM
You'll probably have better luck with 2.0 Alpha here on CodePlex. There is a defect in that DBaseWriter which still isn't fixed, but the fix will show up within the next few weeks, since I need it myself.
Apr 4, 2007 at 10:52 AM

I'm programming for Pocket PC 2003. Is there a especific version for it?

I've been using Sharpmobile from PocketTerra.

Thanks.
Apr 16, 2007 at 5:23 AM
I am working on PC and that is for me to use in my laptop, I need to know how to project the point that i got from gps , lets say I got lat , lon , now how can i show that point in the map with an icon and how can i draw a line on my path, my points are lat,lon, can you help me


Madison wrote:
Are you working on a Pocket-PC or Desktop-Application? But whatever your platform is, I'm sure there are some libraries which will help you to read out the GPS data. For Pocket-PC there is for example the PocketGPSLib or if you are developing for Windows Mobile 5.0 it has a library for that purpose.

The GPS coordinates are in WGS84. To display your gps position in the map you have to use picture coordinates. There is a worldToImage function in SharpMap, which converts your world coords into picture coords.

Someone correct me if I'm wrong, because I'm not as versed in SharpMap as I would like to be.

May 5, 2007 at 1:35 PM
Hello All,
Do we get any solution to get gps data and display it on map, with desktop or web application ?
Thanks
Coordinator
Jun 20, 2007 at 1:07 AM
Check out the GPX Provider.