Properties
ReferencedNodes
#Gets a hash set of all the nodes currently being referenced by at least one way.
Methods
AddToRhinoDocument
#Add the entire map to a rhino document.
public Guid[] AddToRhinoDocument()
document,
Document to populate.
mapping,
Mapping function or null to use 1:1 mapping.
settings
Insertion settings.
Returns: Array of Rhino object IDs that were added.
FindNode
#Find the node with the specified id.
Returns: Node with given id or null if no such node can be found.
FindNodesByTag
#Find all nodes that pass a custom test.
Returns: Enumeration of nodes.
FindWay
#Find the way with the specified id.
Returns: Way with given id or null if no such way can be found.
FindWaysByTag
#Find all nodes that pass a custom test.
Returns: Enumeration of ways.
GetWayGeometry
#Get the actual geometry of a way.
Returns: Polyline geometry.
MergeWays
#Merge ways into single ways.
public int MergeWays()
retainDirection,
If true, ways will not be reversed in order to be merged.
mergeParent,
Determines which way comes out 'on top' when two ways merge.
combineAllTags,
If true, tags will be copied from all ways, not just the parent way.
exemptIds
Optional collection of exempt way ids to not be merged. May be null.
Returns: Number of ways that disappeared.
ParseFile
#Parse an OpenStreetMap xml file.
public static OsmFile ParseFile()
file,
File.
filter,
Optional filter.
messages
Array of messages encountered during parsing.
Returns: Loaded map.
ParseFile
#Parse an OpenStreetMap xml document. If the document contains more than one osm node, only the first one will be loaded.
public static OsmFile ParseFile()
doc,
Document.
filter,
Optional filter.
messages
Array of messages encountered during parsing.
Returns: Loaded map.
RemoveWays
#Remove a set of ways from this file.
public void RemoveWays()
wayIds,
Ways to remove.
removeOrphanedNodes
If true, all nodes currently orphaned will also be removed.
ToString
#Get a short description of this file.
Returns: String description.
Overrides: Object.ToString