Commit Graph

41 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 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 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 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 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 e449183225 only skip import of polygons if way was inserted as multipolygon 2014-01-13 08:52:15 +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 97854f4277 use logging.Warn instead of log.Println/fmt.Prinln 2013-11-07 15:48:55 +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 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 f65b23a1c7 only expire tiles when way/rel was inserted 2013-07-15 11:14:03 +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
Oliver Tonnhofer 6579da5526 set SRID in AddGeometryColumn; write geoms as EWKB 2013-06-19 09:19:21 +02:00
Oliver Tonnhofer 8a9fe9bf2f first import with single transaction per table 2013-06-11 14:12:45 +02:00
Oliver Tonnhofer 773cbaac94 write coords->way index 2013-05-30 12:00:11 +02:00
Oliver Tonnhofer b3d1dbdbd0 log steps 2013-05-28 14:07:06 +02:00
Oliver Tonnhofer ac3810e17c refactored writer package 2013-05-28 12:54:19 +02:00
Oliver Tonnhofer 4739fcc484 add -limitto option 2013-05-28 08:59:59 +02:00
Oliver Tonnhofer 40b4fffc4f allow submappings 2013-05-27 11:24:22 +02:00
Oliver Tonnhofer 4ee257bf81 refactored Geos/Wkb/Wkt type/func names 2013-05-24 10:08:38 +02:00
Oliver Tonnhofer f07b970951 match on Tags and not OSMElem 2013-05-23 13:09:47 +02:00
Oliver Tonnhofer 18eadb0f51 refactored nodes/ways/relation writing in to wtire package 2013-05-21 09:50:10 +02:00