All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstreetmap.osmosis.pgsnapshot.common.NodeLocationStore Maven / Gradle / Ivy

The newest version!
// This software is released into the Public Domain.  See copying.txt for details.
package org.openstreetmap.osmosis.pgsnapshot.common;

import org.openstreetmap.osmosis.core.lifecycle.Closeable;


/**
 * A node location store is used for caching node locations that are
 * subsequently used to build way geometries.
 * 
 * @author Brett Henderson
 */
public interface NodeLocationStore extends Closeable {
	/**
	 * Adds the specified node location details.
	 * 
	 * @param nodeId
	 *            The node identifier.
	 * @param nodeLocation
	 *            The geo-spatial location details.
	 */
	void addLocation(long nodeId, NodeLocation nodeLocation);
	
	
	/**
	 * Gets the location details of the specified node.
	 * 
	 * @param nodeId
	 *            The node identifier.
	 * @return The geo-spatial location details. If the node doesn't exist, the
	 *         valid flag will be set to false.
	 */
	NodeLocation getNodeLocation(long nodeId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy