项目作者: shixiongfei

项目描述 :
very simple gpx/kml file loader library
高级语言: C
项目地址: git://github.com/shixiongfei/libgps.git
创建时间: 2014-03-04T09:57:06Z
项目社区:https://github.com/shixiongfei/libgps

开源协议:

下载


libgps

A very simple GPX/KML track file loader library. It’s written in C.

The library features:

  • Simple interface
  • Time string matching coordinate
  • Works on most POSIX-like systems (including Linux, Mac OS X, etc.)
  • Support Windows (including Cygwin, MinGW, and Visual Studio)

Sample Code

  1. struct GPSData* gps_test = load_gpsfile("sample.gpx");
  2. if ( gps_test ) {
  3. const char query_time[] = {"2009-10-17 18:37:28"};
  4. struct GPSPoint* p = gps_match(gps_test, query_time);
  5. if ( p ) {
  6. printf("%s [At] (%lf, %lf, %lf)\n", query_time, p->x, p->y, p->z);
  7. }
  8. gpsfile_free(gps_test);
  9. }