void node(const osmium::Node& node) {
     hash.Update(node.data(), node.byte_size());
     bounds.extend(node.location());
     ++nodes;
 }
 void way(const osmium::Way& way) {
     hash.Update(way.data(), way.byte_size());
     ++ways;
 }
 void relation(const osmium::Relation& relation) {
     hash.Update(relation.data(), relation.byte_size());
     ++relations;
 }
Example #4
0
void ProjectChecksum::Checksum(char *buf,int buf_len)
{
	CryptoPP::SHA sha;
	sha.Update((const unsigned char *)buf,buf_len);
	sha.Final((unsigned char *)m_sha1);
}