Class GpxReaderSettings
A bag of properties used to configure how GpxReader produces GPX data objects that correspond to the original XML elements.
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.IO.GPX.dll
Syntax
public sealed class GpxReaderSettings
Properties
| Improve this Doc View SourceBuildWebLinksForVeryLongUriValues
Gets or sets a value indicating whether or not to build GpxWebLink objects for strings whose lengths are greater than or equal to 65520 characters. Older versions of this library would throw exceptions for such strings (see dotnet/runtime#1857 and NetTopologySuite/NetTopologySuite.IO.GPX#39), and the workaround involves relaxing an invariant of GpxWebLink, so it is guarded by an opt-in flag to avoid a breaking change.
Declaration
public bool BuildWebLinksForVeryLongUriValues { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
DefaultCreatorIfMissing
Gets or sets the value to fill in for Creator if a value was not given. Provided to help work around a bug from an old version of Israel Hiking Map (see NetTopologySuite/NetTopologySuite.IO.GPX#23).
Declaration
public string DefaultCreatorIfMissing { get; set; }
Property Value
Type | Description |
---|---|
String |
ExtensionReader
Gets or sets the GpxExtensionReader instance to use to convert GPX extension elements into (potentially) more idiomatic .NET types. Default is an instance of the base class (see its summary documentation for details).
Declaration
public GpxExtensionReader ExtensionReader { get; set; }
Property Value
Type | Description |
---|---|
GpxExtensionReader |
IgnoreBadDateTime
Gets or sets a value indicating whether or not to ignore files with timestamps that do not parse, even though such files would not pass XSD validation (see NetTopologySuite/NetTopologySuite.IO.GPX#29).
Declaration
public bool IgnoreBadDateTime { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IgnoreUnexpectedChildrenOfTopLevelElement
Gets or sets a value indicating whether or not to ignore child elements of the top-level
<gpx>
element that are not expected to appear where they do, even though
such files would not pass XSD validation (see
NetTopologySuite/NetTopologySuite.IO.GPX#41).
This covers elements whose names are completely unrecognized, but also:
<metadata>
somewhere other than the first child element of<gpx>
<metadata>
or<extensions>
appearing more than once
Declaration
public bool IgnoreUnexpectedChildrenOfTopLevelElement { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IgnoreVersionAttribute
Gets or sets a value indicating whether or not to ignore files that do not contain
version="1.1"
exactly, even though such files would not pass XSD validation (see
NetTopologySuite/NetTopologySuite.IO.GPX#27 and #28).
Declaration
public bool IgnoreVersionAttribute { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
TimeZoneInfo
Gets or sets the TimeZoneInfo instance that the system should use to interpret timestamps in the GPX file, when the file itself does not contain time zone information. Default is Utc.
null is treated as Utc, but please prefer null so that ClearCachedData() does not affect our correctness.
Declaration
public TimeZoneInfo TimeZoneInfo { get; set; }
Property Value
Type | Description |
---|---|
TimeZoneInfo |