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.
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.
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.
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.
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.
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.