简体   繁体   English

开源C ++程序,可接收GPS(NMEA)句子或x,y坐标并在地图上播放位置

[英]Open source c++ program that receives GPS (NMEA) sentences or x,y coordination and play a location on a map

My program reads GPS (NMEA) sentences from the serial port. 我的程序从串行端口读取GPS(NMEA)语句。 I want to be able to see the location in those sentences (some of which contain x,y coordinates) in a map. 我希望能够在地图上查看这些句子(其中一些包含x,y坐标)中的位置。

Is there a library (preferable open source) I can use to to that? 是否可以使用该库(最好是开源)?

(It would really help me if it will work on both Linux and Windows, but if not, Windows is OK too) (如果它可以同时在Linux和Windows上运行,那将对我有很大帮助,但是如果没有,Windows也可以)

Is the map component for system integration or just for diagnostic purposes? 地图组件是用于系统集成还是仅用于诊断目的? If just for diagnostic purposes, it might be easier to load the points into a web GIS solution such as Google Maps API or Esri's ArcGIS Explorer . 如果仅出于诊断目的,将点加载到Web GIS解决方案(例如Google Maps APIEsri的ArcGIS Explorer)可能会更容易。 ArcGIS Explorer is stand-alone, but Google Maps can be embedded. ArcGIS Explorer是独立的,但可以嵌入Google Maps。 With Google, you'll have to use JavaScript to design the control. 使用Google,您必须使用JavaScript来设计控件。

In the Java world, OpenMap is popular. 在Java世界中, OpenMap很流行。

If you need an open source C++ library, consider OpenStreetMap . 如果需要开源C ++库,请考虑使用OpenStreetMap It is a collaborative project that provide users and developers tools for mapping. 这是一个协作项目,可为用户和开发人员提供映射工具。 In particular, checkout the frameworks wiki for a list of widgets and tools to use their framework. 特别是,请查看框架Wiki ,以获得使用其框架的小部件和工具的列表。 I believe they have C++ widgets you can leverage (although I haven't tried it myself). 我相信他们拥有可以利用的C ++小部件(尽管我自己还没有尝试过)。

For OSM, the widget controls for C++ are COSMCtrl (MFC), Marble (Qt), and QMapControl (Qt). 对于OSM,C ++的窗口小部件控件为COSMCtrl (MFC), Marble (Qt)和QMapControl (Qt)。

I'm certain there are other open source C++ widgets out there, but I don't have experience with them. 我敢肯定还有其他开源C ++小部件,但是我没有使用它们的经验。

Did you try this : 您是否尝试过这个:

http://nmea.sourceforge.net/#platforms ? http://nmea.sourceforge.net/#platforms

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM