Commit Graph

846 Commits (master)

Author SHA1 Message Date
Oliver Tonnhofer f2d40b047b log more sql errors during import and diff updates 2014-04-28 11:43:25 +02:00
Oliver Tonnhofer 90154d7c51 only accept 32bit ints for Integer type, closes #21 2014-04-25 11:32:40 +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 e4d1156ff8 make location of last.state.txt configuratble 2014-04-01 13:16:27 +02:00
Oliver Tonnhofer 62cdbcc3e3 allow to overwrite -limitto config with NONE 2014-04-01 10:48:34 +02:00
Oliver Tonnhofer 251e5c9941 fix for mappings where key and name of field differ 2014-03-28 11:14:02 +01:00
Oliver Tonnhofer d1b2c2796b quote column names when creating generalized tables 2014-03-28 10:36:03 +01:00
Oliver Tonnhofer dab06de51c do not use \r in -quiet mode when printing status messages 2014-02-25 08:33:38 +01:00
Oliver Tonnhofer ff6207d200 add failing test-case for #18
multipolygons that are not closed (topological) can be handled by
using GEOS LineMerge function. It's expected to be slower than the
node ID based merger. Maybe it's feasible to use LineMerge as a
fallback.
2014-02-05 10:04:00 +01:00
Oliver Tonnhofer 48486e7280 do not validate all generalized geometries by default
validation with st_buffer fails for linestrings
add new validated_geometry column type that validates geometries
(st_buffer) on generalization
2014-01-30 10:31:34 +01:00
Oliver Tonnhofer fed6c026cd validate simplified geometries 2014-01-29 10:06:07 +01:00
Oliver Tonnhofer 07897d5402 fix tag matching for elems with __any__ and exact matches
this allows you to have a table with mapping foo=__any__ and another
one with foo=bar and an element with foo=bar will be inserted in
both tables
2014-01-22 11:35:53 +01:00
Oliver Tonnhofer d41b108959 use test_mapping.json in filter_test 2014-01-22 11:35:33 +01:00
Oliver Tonnhofer de4ec76ed8 handle ways without refs/nodes in ring builder
fixes 'index out of range' panics
2014-01-14 12:06:43 +01:00
Oliver Tonnhofer f08ac11f68 rename FilterRelationPolygons to SelectRelationPolygons 2014-01-13 09:06:40 +01:00
Oliver Tonnhofer e449183225 only skip import of polygons if way was inserted as multipolygon 2014-01-13 08:52:15 +01:00
Oliver Tonnhofer 07c11bf4da tweak limitto grid parameters 2013-12-18 13:29:32 +01:00
Oliver Tonnhofer 7c039ecb63 realy change production schema to public 2013-12-18 10:49:23 +01:00
Oliver Tonnhofer eb216b4392 refactored filtering of inserted_ways 2013-12-16 16:54:42 +01: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 b7144dd0d8 change production schema to public 2013-12-16 09:57:47 +01:00
Oliver Tonnhofer 1c0e08a129 use perl to update buildVersion string; sed -i is not portable 2013-12-16 09:57:47 +01:00
Oliver Tonnhofer bb0cea1064 fix db schemas options with empty config 2013-12-16 09:57:47 +01:00
Oliver Tonnhofer 69d08caec1 optimize number of goroutines during reading 2013-12-12 20:14:52 +01:00
Oliver Tonnhofer 2cce36c31f fix automatic version numbering 2013-12-02 15:08:22 +01:00
Oliver Tonnhofer fdb34b7b4c remove duplicate geojson reader code 2013-12-02 14:13:53 +01:00
Oliver Tonnhofer e8f4098e18 automatically transform GeoJSON in WGS84 to webmercator 2013-12-02 14:13:31 +01:00
Oliver Tonnhofer 804da8614b return errors from newTxRouter 2013-12-02 14:01:58 +01:00
Oliver Tonnhofer 3901c5d8c4 make db schema configurable from cmd-line and config.json 2013-12-02 13:10:42 +01:00
Oliver Tonnhofer 122bfc4f31 do not auto destroy BoundsPolygon 2013-12-02 11:43:44 +01:00
Oliver Tonnhofer 34cf674fa0 read geojson with z-values 2013-11-26 09:47:00 +01:00
Oliver Tonnhofer 7e57c6047b do not leak Ticker in closed stats reporter 2013-11-25 09:12:41 +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 83405d2e4b move command handling to cmd package 2013-11-19 15:39:57 +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 287ba72f42 make main callable from outside for testing 2013-11-15 11:11:12 +01:00
Oliver Tonnhofer 1feff96db8 use lib/pq for postgres 2013-11-14 09:15:16 +01:00
Oliver Tonnhofer 2d1c98022f remove go vet warnings 2013-11-13 15:41:34 +01:00
Oliver Tonnhofer 9e0fd75fb3 improve logger
print level, do not display stopped progress
2013-11-13 15:26:34 +01:00
Oliver Tonnhofer 9e5e60abc4 handle diff update errors outside of Update 2013-11-13 15:26:22 +01:00
Oliver Tonnhofer d4dd4731d9 add VERBOSE option to test Makefile 2013-11-13 13:30:41 +01:00
Oliver Tonnhofer 62234d49b1 import with -optimize in test-system 2013-11-13 13:30:19 +01:00
Oliver Tonnhofer a9b490419c ANALYSE table after CLUSTER 2013-11-13 13:30:00 +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