Commit Graph

160 Commits (master)

Author SHA1 Message Date
Oliver Tonnhofer 0ca34413d6 rename to imposm 2018-04-17 21:06:55 +02:00
Oliver Tonnhofer 16e9c1dbef protobuf: recommit .pb.go file for updated timestamps to fix make errors 2018-04-16 18:10:01 +02:00
Oliver Tonnhofer b7f02225f2 protobuf: set syntax to proto2 to avoid warning 2018-04-16 17:40:49 +02:00
Oliver Tonnhofer 25b4c01917 cache: support new leveldb (>=1.21) max-file-size option
requires build/install with -tags="ldbpost121"
2017-11-21 14:43:20 +01:00
Oliver Tonnhofer 3ac986a498 code: remove unused functions/conversions 2017-11-21 14:43:20 +01:00
Oliver Tonnhofer e79386a1af writer: remove old-style-multipolygon handling 2017-11-21 14:43:11 +01:00
Oliver Tonnhofer 88bca58fd1 update to github.com/gogo/protobuf 2017-11-15 13:57:30 +01:00
Oliver Tonnhofer ee59cf2896 fix encoding of empty keys (#122) 2016-10-12 11:03:28 +02:00
Oliver Tonnhofer 4a472f563a escape commonKey/tagCodePoint runes in key (closes #122) 2016-10-10 09:31:11 +02:00
Oliver Tonnhofer 368c6699a7 fix import of relations without way members when using -limitto 2016-02-09 11:23:21 +01:00
Oliver Tonnhofer 766118b324 update relations when member node changed 2016-01-08 16:08:00 +01:00
Oliver Tonnhofer b25774d891 fix race condition triggered with new relation_members handling 2016-01-08 09:35:54 +01:00
Oliver Tonnhofer c419d9b2c2 fix test for extended elemen.Member 2016-01-08 09:35:53 +01:00
Oliver Tonnhofer b3110b3bb5 add benchmarks for deltacoords 2015-11-21 18:05:07 +01:00
Oliver Tonnhofer f5d16e170b remove unused deltacoords proto code 2015-11-20 23:07:26 +01:00
Oliver Tonnhofer b8530cb803 remove freeBuffer/freeNode hack 2015-11-20 22:54:53 +01:00
Oliver Tonnhofer 838123acc2 fix Benchmarks 2015-11-20 15:03:08 +01:00
Oliver Tonnhofer 593f252504 rebuild .pb.go files 2015-05-15 10:47:29 +02:00
Oliver Tonnhofer cd5b89c119 update goprotobuf and lib/pq dependencies 2015-05-15 10:42:30 +02:00
Oliver Tonnhofer 8ba96c9327 improve error checking/handling 2015-01-05 09:56:39 +01:00
Oliver Tonnhofer 3b73f91a0d make go gettable 2014-08-04 15:19:35 +02:00
Oliver Tonnhofer 7d9ddfd7d4 fixed cache/binary test for go1.3 2014-06-23 15:03:23 +02:00
Oliver Tonnhofer e99c35f699 fix deserializing of cached tags with empty key 2014-06-23 14:40:16 +02:00
Oliver Tonnhofer 96b5f1c394 fix updating nodes in DeltaCoordsCache
Updating an existing node in the DeltaCoordsCache resulted in duplicate
nodes instead of a single updated node. GetCoord returned the first node,
depending on the sort order.
2014-04-25 11:18:20 +02:00
Oliver Tonnhofer 3affe43808 improve inserted_ways handling
compare destination tables for each way instead of only comparing
if the tags are similar
2013-12-16 09:57:47 +01:00
Oliver Tonnhofer a4ea44acb1 pool idRefs/bytes in diff cache 2013-11-20 09:21:26 +01:00
Oliver Tonnhofer c3a7be1ab2 don't set cache to nil after flushing 2013-11-19 15:47:33 +01:00
Oliver Tonnhofer 1309a2f478 add Flush to diff cache 2013-11-19 15:07:40 +01:00
Oliver Tonnhofer b86ecff037 close levigo.Read/WriteOptions 2013-11-19 15:07:26 +01:00
Oliver Tonnhofer 95aa490208 use binary.Varint instead of binary.ReadVarint in UnmarshalIdRefsBunch 2013-11-19 08:41:39 +01:00
Oliver Tonnhofer 596f4de970 marshal length as unsigned varint 2013-11-19 08:40:27 +01:00
Oliver Tonnhofer fbbf29d167 use binary.Varint instead of binary.ReadVarint in UnmarshalDeltaNodes 2013-11-18 17:24:31 +01:00
Oliver Tonnhofer ee8d50addd reset cached bunches when flushing DeltaCoordsCache 2013-11-13 13:29:33 +01:00
Oliver Tonnhofer ca7d7efe7d set cache.BlockSizeK in KB not MB 2013-11-13 13:20:06 +01:00
Oliver Tonnhofer 4eecb7fb94 reuse freeNodes 2013-11-13 13:17:54 +01:00
Oliver Tonnhofer c3f9992f18 initialize coordsBunch map with capacity size 2013-11-13 13:17:24 +01:00
Oliver Tonnhofer 9d02c24ea0 limit ways and relations as well
only cache ways if the first coord is cached, only cache relations
if the first member is cached.

we need to sync the read process so that we have all coords cached
before the first way gets checked for limitto.
2013-11-12 09:21:17 +01:00
Oliver Tonnhofer 59a14b7c9d remove skipped nodes before accessing first ID; skip empty node lists 2013-11-08 15:09:24 +01:00
Oliver Tonnhofer d7806c6cfd fix closing of nodes iter channel 2013-11-08 15:03:20 +01:00
Oliver Tonnhofer 129799328d fix race condition where leveldb is closed before the iterator
should solve assertion errors like:
db/version_set.cc:710: leveldb::VersionSet::~VersionSet(): Assertion `dummy_versions_.next_ == &dummy_versions_' failed
2013-11-08 10:18:14 +01:00
Oliver Tonnhofer e8f3e50dcf do not cache skipped nodes 2013-11-07 17:28:42 +01:00
Oliver Tonnhofer 2d2dad7b7e limit cache to -limitto 2013-11-04 08:51:21 +01:00
Oliver Tonnhofer 8e0665aa12 rename internal environment switches 2013-09-02 13:09:26 +02:00
Oliver Tonnhofer 52fb1dfd6e add package descriptions 2013-09-02 10:26:29 +02:00
Oliver Tonnhofer 9e454714b8 name package to imposm3 2013-08-29 15:44:31 +02:00
Oliver Tonnhofer 5866471a07 test delta cache with SetLinearImport 2013-08-07 13:18:07 +02:00
Oliver Tonnhofer d6fcfc6c23 more refactoring 2013-08-06 17:22:31 +02:00
Oliver Tonnhofer ef3db821be refactored IdRefs mashaling into cache/binary 2013-08-06 16:14:29 +02:00
Oliver Tonnhofer 9df027e29b refactored diff cache 2013-08-06 15:39:42 +02:00
Oliver Tonnhofer 7d78ff85de removed unused functions 2013-08-06 15:36:21 +02:00