Commit Graph

67 Commits (master)

Author SHA1 Message Date
Oliver Tonnhofer ae4197a147 writer: do not use GEOS for LineString geometries 2017-11-21 15:27:10 +01:00
Oliver Tonnhofer a367850f6f writer: do not check for validity of simple polygons
Skips slow GEOS IsValid calls for polygons with only 4 corners.
They can be invalid, but its more unlikely to get simple polygons
wrong and even if, it should affect only small polygons like buildings.
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 8a2d37a74e no need to prepare relations before matching 2017-05-09 11:42:25 +02:00
Oliver Tonnhofer 42b147c118 do not close ways with gap; check to match befor loading ways 2017-04-03 15:19:01 +02:00
Oliver Tonnhofer 4de5d987d7 do not expire clipped ways/relations 2017-02-01 11:59:41 +01:00
Oliver Tonnhofer 10847c43c4 do not expire tiles for nodes within limitto_cache_buffer 2017-02-01 11:19:37 +01:00
Oliver Tonnhofer 3453b13af2 write expire tiles; add first tests 2016-11-23 14:43:38 +01:00
Oliver Tonnhofer bba7d68380 allways call Expire with wgs84 coords 2016-11-22 17:06:58 +01:00
Oliver Tonnhofer 3c271279b2 do not log NotFound errors when collecting relations for relation members
(other NotFounds are already discarded)
2016-04-27 09:45:28 +02:00
Oliver Tonnhofer 766118b324 update relations when member node changed 2016-01-08 16:08:00 +01:00
Oliver Tonnhofer 3baf2b482f refactor relation writing 2016-01-08 09:35:54 +01:00
Oliver Tonnhofer 423390ea71 Add new relation_members table type 2016-01-08 09:35:53 +01:00
Oliver Tonnhofer 7f1a5cb999 validate polygons from ways 2015-11-21 18:10:20 +01:00
Oliver Tonnhofer 7c438fb867 remove Geom from OSMElem
removes GEOS depenency from pbf parser
2015-04-30 09:42:49 +02:00
Oliver Tonnhofer 0a311d62d7 close open ways when end-nodes are close to each other but not identical 2014-10-22 13:36:06 +02:00
Oliver Tonnhofer e440ca7489 close open rings when end-nodes are close to each other but not identical 2014-10-21 17:21:48 +02:00
Oliver Tonnhofer 3f3c12ece1 add use_single_id_space mapping option
Mangle way and relation IDs so that they don't colide with
node IDs for imports into a single table.
Way IDs are negated, relation IDs are negated and shifted by -1e17.
2014-08-11 10:18:08 +02:00
Oliver Tonnhofer 3b73f91a0d make go gettable 2014-08-04 15:19:35 +02:00
Oliver Tonnhofer e9363ddf4e add support for 4326 2014-06-30 08:58:22 +02:00
Oliver Tonnhofer a9ccec143c add support for single table imports
- support type=geometry
- allow to load all tags
2014-06-25 16:46:42 +02:00
Oliver Tonnhofer 088a4d89f3 refactored tag matching from database to writer
tag matching is independent of the database and can belong to the writer
package. also cleans up the database.Inserter interface.
2014-06-25 16:46:42 +02:00
Oliver Tonnhofer f2d40b047b log more sql errors during import and diff updates 2014-04-28 11:43:25 +02: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 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 2d1c98022f remove go vet warnings 2013-11-13 15:41:34 +01:00
Oliver Tonnhofer 390edea938 add new Expireor interface 2013-11-08 16:22:41 +01:00
Oliver Tonnhofer 6ad5a535a1 insert rels with negative IDs to be able to distinguish rels from ways during delete 2013-11-07 16:09:08 +01:00
Oliver Tonnhofer 063c48b8c3 report clipping that takes more than a minute 2013-11-07 15:49:40 +01:00
Oliver Tonnhofer 97854f4277 use logging.Warn instead of log.Println/fmt.Prinln 2013-11-07 15:48:55 +01:00
Oliver Tonnhofer af6510b008 enable concurrent writing explicitly 2013-11-04 14:33:32 +01:00
Oliver Tonnhofer 93edef2681 refactored database API 2013-10-29 16:32:16 +01:00
Oliver Tonnhofer d387f3cd24 remove unused InsertBuffer 2013-10-29 15:07:26 +01:00
Oliver Tonnhofer ce962c785e remove tagmatcher from Writer 2013-10-28 11:37:58 +01:00
Oliver Tonnhofer 748354ba18 move tag matching into database package 2013-10-28 11:28:56 +01:00
Oliver Tonnhofer 1cba6ad9a3 db.Insert takes OSMElem instead of row 2013-10-28 08:42:51 +01: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 4ec962f002 renamed geom/clipper to geom/limit 2013-07-30 08:17:47 +02:00
Oliver Tonnhofer 07f4009033 refactored progress statistics (display progress in percent) 2013-07-29 15:47:09 +02:00
Oliver Tonnhofer 7e5e2ce86d skip ways without tags 2013-07-15 11:41:03 +02:00
Oliver Tonnhofer 198f2d925f filter by relation tags before finishing the multipolygon 2013-07-15 11:39:43 +02:00
Oliver Tonnhofer f65b23a1c7 only expire tiles when way/rel was inserted 2013-07-15 11:14:03 +02:00
Oliver Tonnhofer 79afd6514f expire nodes 2013-07-12 15:12:56 +02:00
Oliver Tonnhofer 766bc6ebc1 removed old code 2013-07-12 14:59:51 +02:00
Oliver Tonnhofer bc7b22da61 write out expired tile coordinates 2013-07-12 14:57:06 +02:00
Oliver Tonnhofer 003e5f8f0b Revert "unmarshal items in writer"
This reverts commit c314f01886.
2013-06-21 11:05:29 +02:00
Oliver Tonnhofer c314f01886 unmarshal items in writer 2013-06-20 14:21:20 +02:00