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 OpenStreetMapContentHandlerpublic void addWay(OSMWay way)
OpenStreetMapContentHandleraddWay in interface OpenStreetMapContentHandlerpublic void addRelation(OSMRelation relation)
OpenStreetMapContentHandleraddRelation in interface OpenStreetMapContentHandlerpublic void doneFirstPhaseRelations()
OpenStreetMapContentHandlerdoneFirstPhaseRelations in interface OpenStreetMapContentHandlerpublic void doneSecondPhaseWays()
OpenStreetMapContentHandlerdoneSecondPhaseWays in interface OpenStreetMapContentHandlerpublic void doneThirdPhaseNodes()
OpenStreetMapContentHandlerdoneThirdPhaseNodes in interface OpenStreetMapContentHandlerCopyright © 2018. All rights reserved.