GPSBabel

司机简称

GPSBabel

生成依赖项

(读取支持需要GPX驱动程序和libexpat)

现在的GPSBabel驱动程序依赖于 GPSBabel 用于访问各种GPS文件格式的实用程序。

必须通过路径访问GPSBabel可执行文件。

驱动程序功能

Supports Create()

This driver supports the GDALDriver::Create() operation

Supports Georeferencing

This driver supports georeferencing

读取支持

司机需要 GPX 驱动程序要完全配置为具有读取支持(通过Expat库),以便能够解析GPSBabel的输出,因为GPX用作中间数据透视格式。

返回的图层可以是航路点、航路、航路点、航迹、航迹点,具体取决于输入数据。

指定输入数据源的语法为: [GPSBabel:gpsbabel_file_format[,gpsbabel_format_option]] : [features=[waypoints,] [音轨,] [路线] :]文件名*其中:

  • gpsbabel_file_format 是其中之一 file formats 由GPSBabel处理。

  • gpsbabel_format_option 任何选项是否由指定的GPSBabel格式处理(请参阅每个GPSBabel格式的文档)

  • features= 可用于修改GPSBabel将导入的功能的类型。航路点匹配gpsbabel命令行的-w选项、tracks matches-t和routes matches-r。此选项可用于要求从速度较慢且gpsbabel默认情况下仅获取航路点的GPS接收机进行完整数据导入。请参阅上的文档 Route and Track modes 了解更多详细信息。

  • 文件名 可以是实际的磁盘文件、通过GDAL虚拟文件API处理的文件,也可以是由GPSBabel处理的特殊设备,如“usb:”、“/dev/ttyS0”、“COM1:”等。。实际支持的内容取决于使用的GPSBabel格式。

或者,对于一些选定的GPSBabel格式,仅指定文件名可能就足够了。目前的名单包括:

  • garmin_txt

  • gtrnctr

  • gdb公司

  • 麦哲伦

  • 地图发送

  • 地图源

  • nmea公司

  • OSM

  • 奥齐

  • igc公司

The USE_TEMPFILE =YES configuration option can be used to create an on-disk temporary GPX file instead of a in-memory one, when reading big amount of data.

写入支持

驱动程序依赖于GPX驱动程序创建一个中间文件,该文件最终将由GPSBabel转换为所需的GPSBabel格式。(不需要将GPX驱动程序配置为对GPSBabel write支持的读支持。)。

支持几何、选项和其他创建问题是GPX驱动程序的问题。请参考its documentation 了解更多详细信息。

指定输出数据源的语法为: [GPSBabel:gpsbabel_file_format[,gpsbabel_format_option]] :filename*其中:

  • gpsbabel_file_format 是其中之一 file formats 由GPSBabel处理。

  • gpsbabel_format_option 任何选项是否由指定的GPSBabel格式处理(请参阅每个GPSBabel格式的文档)

或者,您可以只传递一个文件名作为输出数据源名称,并指定数据集创建选项GPSBABEL_DRIVER=GPSBABEL_file_format [,gpsbabel_format_option] *

The USE_TEMPFILE =YES configuration option can be used to create an on-disk temporary GPX file instead of a in-memory one, when writing big amount of data.

实例

从Garmin USB接收器读取航路点:

ogrinfo -ro -al GPSBabel:garmin:usb:

将shapefile转换为Magellan mapssend格式:

ogr2ogr -f GPSBabel GPSBabel:mapsend:out.mapsend in.shp

也见