public class OSMMap extends Object implements OpenStreetMapContentHandler
Constructor and Description |
---|
OSMMap() |
Modifier and Type | Method and Description |
---|---|
void |
addNode(OSMNode node)
OpenStreetMapContentHandler Interface |
void |
addRelation(OSMRelation relation)
Stores a relation.
|
void |
addWay(OSMWay way)
Stores a way.
|
void |
doneFirstPhaseRelations()
Called after the first phase, when all relations are loaded.
|
void |
doneSecondPhaseWays()
Called after the second phase, when all ways are loaded.
|
void |
doneThirdPhaseNodes()
Called after the third and final phase, when all nodes are loaded.
|
OSMNode |
getNodeForId(long nodeId) |
Map<Long,OSMNode> |
getNodes() |
OSMWay |
getWayForId(long wayId) |
Map<Long,OSMWay> |
getWays() |
void |
pruneUnusedNodes() |
public OSMNode getNodeForId(long nodeId)
public OSMWay getWayForId(long wayId)
public void pruneUnusedNodes()
public void addNode(OSMNode node)
OpenStreetMapContentHandler
InterfaceaddNode
in interface OpenStreetMapContentHandler
public void addWay(OSMWay way)
OpenStreetMapContentHandler
addWay
in interface OpenStreetMapContentHandler
public void addRelation(OSMRelation relation)
OpenStreetMapContentHandler
addRelation
in interface OpenStreetMapContentHandler
public void doneFirstPhaseRelations()
OpenStreetMapContentHandler
doneFirstPhaseRelations
in interface OpenStreetMapContentHandler
public void doneSecondPhaseWays()
OpenStreetMapContentHandler
doneSecondPhaseWays
in interface OpenStreetMapContentHandler
public void doneThirdPhaseNodes()
OpenStreetMapContentHandler
doneThirdPhaseNodes
in interface OpenStreetMapContentHandler
Copyright © 2018. All rights reserved.