org.openstreetmap.osmosis.pgsnapshot.common.NodeLocationStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmosis-pgsnapshot Show documentation
Show all versions of osmosis-pgsnapshot Show documentation
Osmosis is a Java application and library for processing OSM data.
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