OsmSettings

References
public class OsmSettings
Settings class used for converting OpenStreetMap data into Rhino geometry.

Properties

Default

#
public static OsmSettings Default { get; }
Gets the minimal settings.

IncludeEntities

#
public OsmEntity IncludeEntities { get; set; }
Gets or sets all entities that are included.

IncludeLooseNodes

#
public bool IncludeLooseNodes { get; set; }
Gets or sets whether loose nodes ought to be included in the conversion.

IncludeNodesWithoutTags

#
public bool IncludeNodesWithoutTags { get; set; }
Gets or sets whether loose nodes without tags ought to be included.

IncludeWayNodes

#
public bool IncludeWayNodes { get; set; }
Gets or sets whether nodes that are part of ways ought to be included in the conversion.

IncludeWays

#
public bool IncludeWays { get; set; }
Gets or sets whether ways ought to be included in the conversion.

IncludeWaysWithoutTags

#
public bool IncludeWaysWithoutTags { get; set; }
Gets or sets whether ways without tags ought to be included.

Maximal

#
public static OsmSettings Maximal { get; }
Gets the maximal settings.

TagAttachment

#
public OsmTagAttachment TagAttachment { get; set; }
Gets or sets whether (and how) OSM tags need to be attached.

Methods

AddNodeFilter

#
public void AddNodeFilter(Predicate<OsmNode> predicate)
Add a node filter predicate.
predicate (Predicate<OsmNode>)Predicate filter method.

AddNodeFilter

#
public void AddNodeFilter(string nameFilter, string valueFilter)
Add a node filter rule based on wildcard tag matches.
nameFilter (string)Match for tag names. If a tag name matches, it will be omitted.
valueFilter (string)Match for tag values. If a tag value matches, it will be omitted.

AddWayFilter

#
public void AddWayFilter(Predicate<OsmWay> predicate)
Add a way filter predicate.
predicate (Predicate<OsmWay>)Predicate filter method.

AddWayFilter

#
public void AddWayFilter(string nameFilter, string valueFilter)
Add a way filter rule based on wildcard tag matches.
nameFilter (string)Match for tag names. If a tag name matches, it will be omitted.
valueFilter (string)Match for tag values. If a tag value matches, it will be omitted.

ValidateNode

#
public bool ValidateNode(OsmNode node)
Validates a node to see if it ought to be included.
node (OsmNode)Node to test.
True if node ought to be included in the output.

ValidateWay

#
public bool ValidateWay(OsmWay way)
Validates a way to see if it ought to be included.
way (OsmWay)Way to test.
True if way ought to be included in the output.