GpxOptions

GpxOptions class

Driver-specific options for GPX format.

public class GpxOptions : DriverOptions

Constructors

Name Description
GpxOptions() Create new instance.

Properties

Name Description
LinearizationTolerance { get; set; } A tolerance to use to linearize curve geometries.
MAttribute { get; set; } Determines which GPX attribute will be exported as ‘M’ coordinate of waypoints, route points and track points. Behavior is same with ZAttribute, defaults to null.
MPrecisionModel { get; set; } A PrecisionModel that will be applied to M coordinate when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.
NestedAttributeSeparator { get; } A string to separate nested attribute name and its indexes. Defaults to double underscore “__”.
ReadNestedAttributes { get; set; } Determines if GPX points, such as ’trkpt’ and ‘rtept’, contain inner attributes and if it should be read. Defaults to false.
ValidateGeometriesOnWrite { get; set; } Determines if geometries should be validated when they are added to the layer. If set to true, IsValid is called for each geometry when it’s added to the layer, and if validation fails (IsValid is false), GisException is thrown.
WritePolygonsAsLines { get; set; } Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to false.
XYPrecisionModel { get; set; } A PrecisionModel that will be applied to X and Y coordinates when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.
ZAttribute { get; set; } Determines which GPX attribute will be exported as ‘Z’ coordinate of waypoints, route points and track points. If null - no attribute will be exported as ‘Z’ coordinate. Defaults to “ele”. Possible values are names of all GPX XML attribute that can be represented as double (e.g. “speed”, “magvar”, “geoidheight” etc.)
ZPrecisionModel { get; set; } A PrecisionModel that will be applied to Z coordinate when geometries are added to the VectorLayer or when they are read from the VectorLayer. The default value is Exact.

See Also