org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Interface NodeLocationStore

All Superinterfaces:
Releasable
All Known Implementing Classes:
InMemoryNodeLocationStore, PersistentNodeLocationStore

public interface NodeLocationStore
extends Releasable

A node location store is used for caching node locations that are subsequently used to build way geometries.

Author:
Brett Henderson

Method Summary
 void addLocation(long nodeId, NodeLocation nodeLocation)
          Adds the specified node location details.
 NodeLocation getNodeLocation(long nodeId)
          Gets the location details of the specified node.
 
Methods inherited from interface org.openstreetmap.osmosis.core.lifecycle.Releasable
release
 

Method Detail

addLocation

void addLocation(long nodeId,
                 NodeLocation nodeLocation)
Adds the specified node location details.

Parameters:
nodeId - The node identifier.
nodeLocation - The geo-spatial location details.

getNodeLocation

NodeLocation getNodeLocation(long nodeId)
Gets the location details of the specified node.

Parameters:
nodeId - The node identifier.
Returns:
The geo-spatial location details. If the node doesn't exist, the valid flag will be set to false.